9 #include <linux/device.h>
28 #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE)
30 static struct resource bfin_isp1760_resources[] = {
33 .end = 0x203C0000 + 0xfffff,
48 .dack_polarity_high = 0,
49 .dreq_polarity_high = 0,
56 .platform_data = &isp1760_priv,
58 .num_resources =
ARRAY_SIZE(bfin_isp1760_resources),
59 .resource = bfin_isp1760_resources,
63 #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
66 static struct resource isp1362_hcd_resources[] = {
87 .int_edge_triggered = 0,
88 .remote_wakeup_connected = 0,
89 .no_power_switching = 1,
90 .power_switching_mode = 0,
94 .
name =
"isp1362-hcd",
97 .platform_data = &isp1362_priv,
99 .num_resources =
ARRAY_SIZE(isp1362_hcd_resources),
100 .resource = isp1362_hcd_resources,
104 #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
105 static struct resource net2272_bfin_resources[] = {
108 .end = 0x2C000000 + 0x7F,
123 .num_resources =
ARRAY_SIZE(net2272_bfin_resources),
124 .resource = net2272_bfin_resources,
132 #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
141 static struct resource smc91x_resources[] = {
143 .
name =
"smc91x-regs",
145 .end = 0x2C010300 + 16,
158 .num_resources =
ARRAY_SIZE(smc91x_resources),
159 .resource = smc91x_resources,
161 .platform_data = &smc91x_info,
166 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
167 #ifdef CONFIG_SERIAL_BFIN_UART0
168 static struct resource bfin_uart0_resources[] = {
201 static unsigned short bfin_uart0_peripherals[] = {
208 .num_resources =
ARRAY_SIZE(bfin_uart0_resources),
209 .resource = bfin_uart0_resources,
211 .platform_data = &bfin_uart0_peripherals,
217 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
218 #ifdef CONFIG_BFIN_SIR0
219 static struct resource bfin_sir0_resources[] = {
240 .num_resources =
ARRAY_SIZE(bfin_sir0_resources),
241 .resource = bfin_sir0_resources,
246 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
249 .
name =
"bootloader(nor)",
253 .name =
"linux kernel(nor)",
257 .name =
"file system(nor)",
258 .size = 0x800000 - 0x40000 - 0x1C0000 - 0x2000 * 8,
261 .name =
"config(nor)",
265 .name =
"u-boot env(nor)",
273 .parts = ezkit_partitions,
277 static struct resource ezkit_flash_resource = {
284 .
name =
"physmap-flash",
287 .platform_data = &ezkit_flash_data,
290 .resource = &ezkit_flash_resource,
294 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
296 static struct resource bfin_spi0_resource[] = {
324 .num_resources =
ARRAY_SIZE(bfin_spi0_resource),
325 .resource = bfin_spi0_resource,
327 .platform_data = &bfin_spi0_info,
333 #if defined(CONFIG_SND_BF5XX_SOC_AD183X) \
334 || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE)
336 .modalias =
"ad183x",
337 .max_speed_hz = 3125000,
340 .platform_data =
"ad1836",
344 #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)
346 .modalias =
"spidev",
347 .max_speed_hz = 3125000,
354 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
355 #include <linux/input.h>
366 .
buttons = bfin_gpio_keys_table,
373 .platform_data = &bfin_gpio_keys_data,
378 #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
384 .sda_is_open_drain = 0,
385 .scl_is_open_drain = 0,
393 .platform_data = &i2c_gpio_data,
398 static const unsigned int cclk_vlev_datasheet[] =
413 .tuple_tab = cclk_vlev_datasheet,
415 .vr_settling_time = 25 ,
421 .platform_data = &bfin_dmpc_vreg_data,
425 #if defined(CONFIG_VIDEO_BLACKFIN_CAPTURE) \
426 || defined(CONFIG_VIDEO_BLACKFIN_CAPTURE_MODULE)
427 #include <linux/videodev2.h>
431 static const unsigned short ppi_req[] = {
446 #if defined(CONFIG_VIDEO_ADV7183) \
447 || defined(CONFIG_VIDEO_ADV7183_MODULE)
489 static const unsigned adv7183_gpio[] = {
496 .inputs = adv7183_inputs,
498 .routes = adv7183_routes,
503 .platform_data = (
void *)adv7183_gpio,
505 .ppi_info = &ppi_info,
511 .
name =
"bfin_capture",
513 .platform_data = &bfin_capture_data,
518 #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE)
521 .id = CONFIG_SND_BF5XX_SPORT_NUM,
526 #if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE)
529 .id = CONFIG_SND_BF5XX_SPORT_NUM,
534 #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE)
537 .id = CONFIG_SND_BF5XX_SPORT_NUM,
542 #if defined(CONFIG_SND_BF5XX_SOC_AD1836) \
543 || defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE)
544 static const char *
const ad1836_link[] = {
549 .
name =
"bfin-snd-ad1836",
552 .platform_data = (
void *)ad1836_link,
561 #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
565 #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
566 &net2272_bfin_device,
569 #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE)
570 &bfin_isp1760_device,
573 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
577 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
578 #ifdef CONFIG_SERIAL_BFIN_UART0
583 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
584 #ifdef CONFIG_BFIN_SIR0
589 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
590 &bfin_device_gpiokeys,
593 #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
597 #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
601 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
605 #if defined(CONFIG_VIDEO_BLACKFIN_CAPTURE) \
606 || defined(CONFIG_VIDEO_BLACKFIN_CAPTURE_MODULE)
607 &bfin_capture_device,
610 #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE)
614 #if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE)
618 #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE)
622 #if defined(CONFIG_SND_BF5XX_SOC_AD1836) || \
623 defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE)
624 &bfin_ad1836_machine,
628 static int __init net2272_init(
void)
630 #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
646 static int __init ezkit_init(
void)
656 #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
661 #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE)
673 pr_warning(
"unable to configure net2272; it probably won't work\n");
682 #if defined(CONFIG_SERIAL_BFIN_CONSOLE) || defined(CONFIG_EARLY_PRINTK)
683 #ifdef CONFIG_SERIAL_BFIN_UART0