10 #include <linux/device.h>
18 #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
32 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
34 #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE)
37 .
name =
"bootloader(spi)",
42 .name =
"linux kernel(spi)",
46 .name =
"file system(spi)",
54 .parts = bfin_spi_flash_partitions,
55 .nr_parts =
ARRAY_SIZE(bfin_spi_flash_partitions),
65 #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
72 #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE)
76 .max_speed_hz = 25000000,
79 .platform_data = &bfin_spi_flash_data,
80 .controller_data = &spi_flash_chip_info,
85 #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE)
88 .max_speed_hz = 3125000,
94 #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
96 .modalias =
"mmc_spi",
97 .max_speed_hz = 20000000,
100 .controller_data = &mmc_spi_chip_info,
107 static struct resource bfin_spi0_resource[] = {
135 .num_resources =
ARRAY_SIZE(bfin_spi0_resource),
136 .resource = bfin_spi0_resource,
138 .platform_data = &bfin_spi0_info,
143 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
150 #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
159 static struct resource smc91x_resources[] = {
162 .end = 0x20200300 + 16,
173 .num_resources =
ARRAY_SIZE(smc91x_resources),
174 .resource = smc91x_resources,
176 .platform_data = &smc91x_info,
181 #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
184 static struct resource smsc911x_resources[] = {
186 .
name =
"smsc911x-memory",
188 .end = 0x20308000 + 0xFF,
207 .num_resources =
ARRAY_SIZE(smsc911x_resources),
208 .resource = smsc911x_resources,
210 .platform_data = &smsc911x_config,
215 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
216 #ifdef CONFIG_SERIAL_BFIN_UART0
217 static struct resource bfin_uart0_resources[] = {
250 static unsigned short bfin_uart0_peripherals[] = {
257 .num_resources =
ARRAY_SIZE(bfin_uart0_resources),
258 .resource = bfin_uart0_resources,
260 .platform_data = &bfin_uart0_peripherals,
266 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
267 #ifdef CONFIG_BFIN_SIR0
268 static struct resource bfin_sir0_resources[] = {
289 .num_resources =
ARRAY_SIZE(bfin_sir0_resources),
290 .resource = bfin_sir0_resources,
295 #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
296 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
297 static struct resource bfin_sport0_uart_resources[] = {
315 static unsigned short bfin_sport0_peripherals[] = {
321 .
name =
"bfin-sport-uart",
323 .num_resources =
ARRAY_SIZE(bfin_sport0_uart_resources),
324 .resource = bfin_sport0_uart_resources,
326 .platform_data = &bfin_sport0_peripherals,
330 #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
331 static struct resource bfin_sport1_uart_resources[] = {
349 static unsigned short bfin_sport1_peripherals[] = {
355 .
name =
"bfin-sport-uart",
357 .num_resources =
ARRAY_SIZE(bfin_sport1_uart_resources),
358 .resource = bfin_sport1_uart_resources,
360 .platform_data = &bfin_sport1_peripherals,
366 #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
367 static struct resource isp1362_hcd_resources[] = {
388 .int_edge_triggered = 0,
389 .remote_wakeup_connected = 0,
390 .no_power_switching = 1,
391 .power_switching_mode = 0,
395 .
name =
"isp1362-hcd",
398 .platform_data = &isp1362_priv,
400 .num_resources =
ARRAY_SIZE(isp1362_hcd_resources),
401 .resource = isp1362_hcd_resources,
406 #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
407 static struct resource net2272_bfin_resources[] = {
410 .end = 0x20300000 + 0x100,
422 .num_resources =
ARRAY_SIZE(net2272_bfin_resources),
423 .resource = net2272_bfin_resources,
429 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
432 .
name =
"bootloader(nor)",
436 .name =
"linux+rootfs(nor)",
444 .parts = para_partitions,
448 static struct resource para_flash_resource = {
455 .
name =
"physmap-flash",
458 .platform_data = ¶_flash_data,
461 .resource = ¶_flash_resource,
467 static const unsigned int cclk_vlev_datasheet[] =
482 .tuple_tab = cclk_vlev_datasheet,
484 .vr_settling_time = 25 ,
490 .platform_data = &bfin_dmpc_vreg_data,
498 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
499 #ifdef CONFIG_SERIAL_BFIN_UART0
504 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
505 #ifdef CONFIG_BFIN_SIR0
510 #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
511 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
512 &bfin_sport0_uart_device,
514 #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
515 &bfin_sport1_uart_device,
519 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
523 #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
527 #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
531 #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
535 #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
536 &net2272_bfin_device,
539 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
543 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
548 static int __init cm_bf533_init(
void)
552 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
561 #if defined(CONFIG_SERIAL_BFIN_CONSOLE) || defined(CONFIG_EARLY_PRINTK)
562 #ifdef CONFIG_SERIAL_BFIN_UART0
567 #if defined(CONFIG_SERIAL_BFIN_SPORT_CONSOLE)
568 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
569 &bfin_sport0_uart_device,
571 #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
572 &bfin_sport1_uart_device,