| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 | /* * Copyright 2004-2009 Analog Devices Inc. *           2008-2009 Cambridge Signal Processing *                2005 National ICT Australia (NICTA) *                      Aidan Williams <aidan@nicta.com.au> * * Licensed under the GPL-2 or later. */#include <linux/device.h>#include <linux/platform_device.h>#include <linux/mtd/mtd.h>#include <linux/mtd/partitions.h>#include <linux/spi/spi.h>#include <linux/spi/flash.h>#if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)#include <linux/usb/isp1362.h>#endif#include <linux/ata_platform.h>#include <linux/irq.h>#include <linux/interrupt.h>#include <linux/usb/sl811.h>#include <asm/dma.h>#include <asm/bfin5xx_spi.h>#include <asm/reboot.h>#include <asm/portmux.h>#include <linux/spi/ad7877.h>/* * Name the Board for the /proc/cpuinfo */const char bfin_board_name[] = "CamSig Minotaur BF537";#if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE)static struct resource bfin_pcmcia_cf_resources[] = {	{		.start = 0x20310000, /* IO PORT */		.end = 0x20312000,		.flags = IORESOURCE_MEM,	}, {		.start = 0x20311000, /* Attribute Memory */		.end = 0x20311FFF,		.flags = IORESOURCE_MEM,	}, {		.start = IRQ_PF4,		.end = IRQ_PF4,		.flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,	}, {		.start = IRQ_PF6, /* Card Detect PF6 */		.end = IRQ_PF6,		.flags = IORESOURCE_IRQ,	},};static struct platform_device bfin_pcmcia_cf_device = {	.name = "bfin_cf_pcmcia",	.id = -1,	.num_resources = ARRAY_SIZE(bfin_pcmcia_cf_resources),	.resource = bfin_pcmcia_cf_resources,};#endif#if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)static struct platform_device rtc_device = {	.name = "rtc-bfin",	.id   = -1,};#endif#if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)#include <linux/bfin_mac.h>static const unsigned short bfin_mac_peripherals[] = P_MII0;static struct bfin_phydev_platform_data bfin_phydev_data[] = {	{		.addr = 1,		.irq = IRQ_MAC_PHYINT,	},};static struct bfin_mii_bus_platform_data bfin_mii_bus_data = {	.phydev_number = 1,	.phydev_data = bfin_phydev_data,	.phy_mode = PHY_INTERFACE_MODE_MII,	.mac_peripherals = bfin_mac_peripherals,};static struct platform_device bfin_mii_bus = {	.name = "bfin_mii_bus",	.dev = {		.platform_data = &bfin_mii_bus_data,	}};static struct platform_device bfin_mac_device = {	.name = "bfin_mac",	.dev = {		.platform_data = &bfin_mii_bus,	}};#endif#if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)static struct resource net2272_bfin_resources[] = {	{
 |