9 #include <linux/device.h>
11 #include <linux/export.h>
33 #if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE)
34 static struct resource bfin_pcmcia_cf_resources[] = {
55 .
name =
"bfin_cf_pcmcia",
57 .num_resources =
ARRAY_SIZE(bfin_pcmcia_cf_resources),
58 .resource = bfin_pcmcia_cf_resources,
62 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
69 #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
78 static struct resource smc91x_resources[] = {
80 .
name =
"smc91x-regs",
82 .end = 0x20300300 + 16,
95 .resource = smc91x_resources,
97 .platform_data = &smc91x_info,
102 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
104 static const unsigned short bfin_mac_peripherals[] =
P_RMII0;
115 .phydev_data = bfin_phydev_data,
117 .mac_peripherals = bfin_mac_peripherals,
121 .
name =
"bfin_mii_bus",
123 .platform_data = &bfin_mii_bus_data,
130 .platform_data = &bfin_mii_bus,
135 #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
136 static struct resource net2272_bfin_resources[] = {
139 .end = 0x20300000 + 0x100,
151 .num_resources =
ARRAY_SIZE(net2272_bfin_resources),
152 .resource = net2272_bfin_resources,
156 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
159 #if defined(CONFIG_MTD_M25P80) \
160 || defined(CONFIG_MTD_M25P80_MODULE)
163 .
name =
"bootloader(spi)",
168 .name =
"linux kernel(spi)",
172 .name =
"file system(spi)",
174 .offset = 0x00100000,
180 .parts = bfin_spi_flash_partitions,
181 .nr_parts =
ARRAY_SIZE(bfin_spi_flash_partitions),
191 #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
197 #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE)
200 .vref_delay_usecs = 50,
203 .pressure_max = 1000,
205 .stopacq_polarity = 1,
206 .first_conversion_delay = 3,
207 .acquisition_time = 1,
209 .pen_down_acc_interval = 1,
214 #if defined(CONFIG_MTD_M25P80) \
215 || defined(CONFIG_MTD_M25P80_MODULE)
218 .modalias =
"m25p80",
219 .max_speed_hz = 25000000,
222 .platform_data = &bfin_spi_flash_data,
223 .controller_data = &spi_flash_chip_info,
228 #if defined(CONFIG_SND_BF5XX_SOC_AD183X) \
229 || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE)
231 .modalias =
"ad183x",
232 .max_speed_hz = 3125000,
237 #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
239 .modalias =
"mmc_spi",
240 .max_speed_hz = 25000000,
243 .controller_data = &mmc_spi_chip_info,
247 #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE)
249 .modalias =
"ad7877",
250 .platform_data = &bfin_ad7877_ts_info,
252 .max_speed_hz = 12500000,
261 static struct resource bfin_spi0_resource[] = {
289 .num_resources =
ARRAY_SIZE(bfin_spi0_resource),
290 .resource = bfin_spi0_resource,
292 .platform_data = &bfin_spi0_info,
297 #if defined(CONFIG_FB_BF537_LQ035) || defined(CONFIG_FB_BF537_LQ035_MODULE)
299 .
name =
"bf537-lq035",
303 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
304 #ifdef CONFIG_SERIAL_BFIN_UART0
305 static struct resource bfin_uart0_resources[] = {
338 static unsigned short bfin_uart0_peripherals[] = {
345 .num_resources =
ARRAY_SIZE(bfin_uart0_resources),
346 .resource = bfin_uart0_resources,
348 .platform_data = &bfin_uart0_peripherals,
352 #ifdef CONFIG_SERIAL_BFIN_UART1
353 static struct resource bfin_uart1_resources[] = {
386 static unsigned short bfin_uart1_peripherals[] = {
393 .num_resources =
ARRAY_SIZE(bfin_uart1_resources),
394 .resource = bfin_uart1_resources,
396 .platform_data = &bfin_uart1_peripherals,
402 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
403 #ifdef CONFIG_BFIN_SIR0
404 static struct resource bfin_sir0_resources[] = {
425 .num_resources =
ARRAY_SIZE(bfin_sir0_resources),
426 .resource = bfin_sir0_resources,
429 #ifdef CONFIG_BFIN_SIR1
430 static struct resource bfin_sir1_resources[] = {
451 .num_resources =
ARRAY_SIZE(bfin_sir1_resources),
452 .resource = bfin_sir1_resources,
458 #if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE)
459 &bfin_pcmcia_cf_device,
462 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
466 #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
470 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
475 #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
476 &net2272_bfin_device,
479 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
483 #if defined(CONFIG_FB_BF537_LQ035) || defined(CONFIG_FB_BF537_LQ035_MODULE)
487 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
488 #ifdef CONFIG_SERIAL_BFIN_UART0
491 #ifdef CONFIG_SERIAL_BFIN_UART1
496 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
497 #ifdef CONFIG_BFIN_SIR0
500 #ifdef CONFIG_BFIN_SIR1
506 static int __init pnav_init(
void)
510 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
520 #if defined(CONFIG_SERIAL_BFIN_CONSOLE) || defined(CONFIG_EARLY_PRINTK)
521 #ifdef CONFIG_SERIAL_BFIN_UART0
524 #ifdef CONFIG_SERIAL_BFIN_UART1