10 #include <linux/device.h>
16 #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
25 #include <asm/reboot.h>
34 #if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE)
35 static struct resource bfin_pcmcia_cf_resources[] = {
56 .
name =
"bfin_cf_pcmcia",
58 .num_resources =
ARRAY_SIZE(bfin_pcmcia_cf_resources),
59 .resource = bfin_pcmcia_cf_resources,
63 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
70 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
72 static const unsigned short bfin_mac_peripherals[] =
P_MII0;
83 .phydev_data = bfin_phydev_data,
85 .mac_peripherals = bfin_mac_peripherals,
89 .
name =
"bfin_mii_bus",
91 .platform_data = &bfin_mii_bus_data,
98 .platform_data = &bfin_mii_bus,
103 #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
104 static struct resource net2272_bfin_resources[] = {
107 .end = 0x20300000 + 0x100,
119 .num_resources =
ARRAY_SIZE(net2272_bfin_resources),
120 .resource = net2272_bfin_resources,
124 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
127 #if defined(CONFIG_MTD_M25P80) \
128 || defined(CONFIG_MTD_M25P80_MODULE)
131 #define FLASH_SIZE 0x00400000
132 #define PSIZE_UBOOT 0x00030000
133 #define PSIZE_INITRAMFS 0x00240000
137 .
name =
"bootloader(spi)",
142 .name =
"initramfs(spi)",
143 .size = PSIZE_INITRAMFS,
144 .offset = PSIZE_UBOOT
147 .size =
FLASH_SIZE - (PSIZE_UBOOT + PSIZE_INITRAMFS),
148 .
offset = PSIZE_UBOOT + PSIZE_INITRAMFS,
154 .parts = bfin_spi_flash_partitions,
155 .nr_parts =
ARRAY_SIZE(bfin_spi_flash_partitions),
165 #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
172 #if defined(CONFIG_MTD_M25P80) \
173 || defined(CONFIG_MTD_M25P80_MODULE)
176 .modalias =
"m25p80",
177 .max_speed_hz = 25000000,
180 .platform_data = &bfin_spi_flash_data,
181 .controller_data = &spi_flash_chip_info,
186 #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
188 .modalias =
"mmc_spi",
189 .max_speed_hz = 5000000,
192 .controller_data = &mmc_spi_chip_info,
205 static struct resource bfin_spi0_resource[] = {
226 .num_resources =
ARRAY_SIZE(bfin_spi0_resource),
227 .resource = bfin_spi0_resource,
229 .platform_data = &bfin_spi0_info,
234 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
235 #ifdef CONFIG_SERIAL_BFIN_UART0
236 static struct resource bfin_uart0_resources[] = {
269 static unsigned short bfin_uart0_peripherals[] = {
276 .num_resources =
ARRAY_SIZE(bfin_uart0_resources),
277 .resource = bfin_uart0_resources,
279 .platform_data = &bfin_uart0_peripherals,
283 #ifdef CONFIG_SERIAL_BFIN_UART1
284 static struct resource bfin_uart1_resources[] = {
317 static unsigned short bfin_uart1_peripherals[] = {
324 .num_resources =
ARRAY_SIZE(bfin_uart1_resources),
325 .resource = bfin_uart1_resources,
327 .platform_data = &bfin_uart1_peripherals,
333 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
334 #ifdef CONFIG_BFIN_SIR0
335 static struct resource bfin_sir0_resources[] = {
356 .num_resources =
ARRAY_SIZE(bfin_sir0_resources),
357 .resource = bfin_sir0_resources,
360 #ifdef CONFIG_BFIN_SIR1
361 static struct resource bfin_sir1_resources[] = {
382 .num_resources =
ARRAY_SIZE(bfin_sir1_resources),
383 .resource = bfin_sir1_resources,
388 #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
391 static struct resource bfin_twi0_resource[] = {
405 .
name =
"i2c-bfin-twi",
407 .num_resources =
ARRAY_SIZE(bfin_twi0_resource),
408 .resource = bfin_twi0_resource,
410 .platform_data = &bfin_twi0_pins,
415 #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
416 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
417 static struct resource bfin_sport0_uart_resources[] = {
435 static unsigned short bfin_sport0_peripherals[] = {
441 .
name =
"bfin-sport-uart",
443 .num_resources =
ARRAY_SIZE(bfin_sport0_uart_resources),
444 .resource = bfin_sport0_uart_resources,
446 .platform_data = &bfin_sport0_peripherals,
450 #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
451 static struct resource bfin_sport1_uart_resources[] = {
469 static unsigned short bfin_sport1_peripherals[] = {
475 .
name =
"bfin-sport-uart",
477 .num_resources =
ARRAY_SIZE(bfin_sport1_uart_resources),
478 .resource = bfin_sport1_uart_resources,
480 .platform_data = &bfin_sport1_peripherals,
487 #if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE)
488 &bfin_pcmcia_cf_device,
491 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
495 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
500 #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
501 &net2272_bfin_device,
504 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
508 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
509 #ifdef CONFIG_SERIAL_BFIN_UART0
512 #ifdef CONFIG_SERIAL_BFIN_UART1
517 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
518 #ifdef CONFIG_BFIN_SIR0
521 #ifdef CONFIG_BFIN_SIR1
526 #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
527 &i2c_bfin_twi_device,
530 #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
531 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
532 &bfin_sport0_uart_device,
534 #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
535 &bfin_sport1_uart_device,
541 static int __init minotaur_init(
void)
545 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
556 #if defined(CONFIG_SERIAL_BFIN_CONSOLE) || defined(CONFIG_EARLY_PRINTK)
557 #ifdef CONFIG_SERIAL_BFIN_UART0
560 #ifdef CONFIG_SERIAL_BFIN_UART1
565 #if defined(CONFIG_SERIAL_BFIN_SPORT_CONSOLE)
566 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
567 &bfin_sport0_uart_device,
569 #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
570 &bfin_sport1_uart_device,