9 #include <linux/device.h>
17 #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
21 #include <linux/i2c.h>
32 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
43 #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
52 static struct resource smc91x_resources[] = {
54 .
name =
"smc91x-regs",
56 .end = 0x20310300 + 16,
68 .resource = smc91x_resources,
70 .platform_data = &smc91x_info,
75 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
78 .
name =
"bootloader(nor a)",
82 .name =
"linux kernel(nor a)",
90 .parts = ezkit_partitions_a,
94 static struct resource ezkit_flash_resource_a = {
101 .
name =
"physmap-flash",
104 .platform_data = &ezkit_flash_data_a,
107 .resource = &ezkit_flash_resource_a,
112 .
name =
"file system(nor b)",
120 .parts = ezkit_partitions_b,
124 static struct resource ezkit_flash_resource_b = {
131 .
name =
"physmap-flash",
134 .platform_data = &ezkit_flash_data_b,
137 .resource = &ezkit_flash_resource_b,
141 #if defined(CONFIG_MTD_PLATRAM) || defined(CONFIG_MTD_PLATRAM_MODULE)
147 static struct resource sram_resource_a = {
157 .platform_data = &sram_data_a,
160 .resource = &sram_resource_a,
168 static struct resource sram_resource_b = {
178 .platform_data = &sram_data_b,
181 .resource = &sram_resource_b,
185 #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE)
188 .
name =
"bootloader(spi)",
193 .name =
"linux kernel(spi)",
197 .name =
"file system(spi)",
205 .parts = bfin_spi_flash_partitions,
206 .nr_parts =
ARRAY_SIZE(bfin_spi_flash_partitions),
217 #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE)
220 .modalias =
"m25p80",
221 .max_speed_hz = 25000000,
224 .platform_data = &bfin_spi_flash_data,
225 .controller_data = &spi_flash_chip_info,
230 #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE)
232 .modalias =
"ad183x",
233 .max_speed_hz = 3125000,
238 #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)
240 .modalias =
"spidev",
241 .max_speed_hz = 3125000,
248 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
250 static struct resource bfin_spi0_resource[] = {
278 .num_resources =
ARRAY_SIZE(bfin_spi0_resource),
279 .resource = bfin_spi0_resource,
281 .platform_data = &bfin_spi0_info,
286 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
287 #ifdef CONFIG_SERIAL_BFIN_UART0
288 static struct resource bfin_uart0_resources[] = {
321 static unsigned short bfin_uart0_peripherals[] = {
328 .num_resources =
ARRAY_SIZE(bfin_uart0_resources),
329 .resource = bfin_uart0_resources,
331 .platform_data = &bfin_uart0_peripherals,
337 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
338 #ifdef CONFIG_BFIN_SIR0
339 static struct resource bfin_sir0_resources[] = {
360 .num_resources =
ARRAY_SIZE(bfin_sir0_resources),
361 .resource = bfin_sir0_resources,
366 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
367 #include <linux/input.h>
378 .
buttons = bfin_gpio_keys_table,
385 .platform_data = &bfin_gpio_keys_data,
390 #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
396 .sda_is_open_drain = 0,
397 .scl_is_open_drain = 0,
405 .platform_data = &i2c_gpio_data,
410 static const unsigned int cclk_vlev_datasheet[] =
425 .tuple_tab = cclk_vlev_datasheet,
427 .vr_settling_time = 25 ,
433 .platform_data = &bfin_dmpc_vreg_data,
438 #if defined(CONFIG_FB_BFIN_7393) || defined(CONFIG_FB_BFIN_7393_MODULE)
445 #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE)
448 .id = CONFIG_SND_BF5XX_SPORT_NUM,
453 #if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE)
456 .id = CONFIG_SND_BF5XX_SPORT_NUM,
461 #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE)
464 .id = CONFIG_SND_BF5XX_SPORT_NUM,
473 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
474 &ezkit_flash_device_a,
475 &ezkit_flash_device_b,
478 #if defined(CONFIG_MTD_PLATRAM) || defined(CONFIG_MTD_PLATRAM_MODULE)
483 #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
487 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
491 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
495 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
496 #ifdef CONFIG_SERIAL_BFIN_UART0
501 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
502 #ifdef CONFIG_BFIN_SIR0
507 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
508 &bfin_device_gpiokeys,
511 #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
515 #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE)
519 #if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE)
523 #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE)
528 static int __init ezkit_init(
void)
541 #if defined(CONFIG_SERIAL_BFIN_CONSOLE) || defined(CONFIG_EARLY_PRINTK)
542 #ifdef CONFIG_SERIAL_BFIN_UART0