11 #include <linux/device.h>
17 #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
24 #include <asm/reboot.h>
32 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
42 #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE)
43 static struct resource dm9000_resources[] = {
65 .resource = dm9000_resources,
70 #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
79 static struct resource smc91x_resources[] = {
81 .
name =
"smc91x-regs",
83 .end = 0x20300300 + 16,
100 .resource = smc91x_resources,
102 .platform_data = &smc91x_info,
107 #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
108 static struct resource net2272_bfin_resources[] = {
111 .end = 0x20300000 + 0x100,
123 .num_resources =
ARRAY_SIZE(net2272_bfin_resources),
124 .resource = net2272_bfin_resources,
128 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
131 #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE)
134 .
name =
"bootloader (spi)",
139 .name =
"fpga (spi)",
143 .name =
"linux kernel (spi)",
147 .name =
"jffs2 root file system (spi)",
155 .parts = bfin_spi_flash_partitions,
156 .nr_parts =
ARRAY_SIZE(bfin_spi_flash_partitions),
169 #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE)
172 .modalias =
"m25p80",
174 .max_speed_hz = 50000000,
177 .platform_data = &bfin_spi_flash_data,
178 .controller_data = &spi_flash_chip_info,
183 #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE)
185 .modalias =
"ad183x",
195 static struct resource bfin_spi0_resource[] = {
224 .num_resources =
ARRAY_SIZE(bfin_spi0_resource),
225 .resource = bfin_spi0_resource,
227 .platform_data = &bfin_spi0_info,
232 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
233 #ifdef CONFIG_SERIAL_BFIN_UART0
234 static struct resource bfin_uart0_resources[] = {
267 static unsigned short bfin_uart0_peripherals[] = {
274 .num_resources =
ARRAY_SIZE(bfin_uart0_resources),
275 .resource = bfin_uart0_resources,
277 .platform_data = &bfin_uart0_peripherals,
283 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
284 #ifdef CONFIG_BFIN_SIR0
285 static struct resource bfin_sir0_resources[] = {
306 .num_resources =
ARRAY_SIZE(bfin_sir0_resources),
307 .resource = bfin_sir0_resources,
312 #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE)
315 #include <linux/serial.h>
334 .membase = (
void *)0x20200010,
348 .name =
"serial8250",
350 .platform_data = serial8250_platform_data,
356 #if defined(CONFIG_KEYBOARD_OPENCORES) || defined(CONFIG_KEYBOARD_OPENCORES_MODULE)
363 static struct resource opencores_kbd_resources[] = {
366 .end = 0x20300030 + 2,
378 .name =
"opencores-kbd",
379 .resource = opencores_kbd_resources,
380 .num_resources =
ARRAY_SIZE(opencores_kbd_resources),
385 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
389 #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE)
393 #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
397 #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
398 &net2272_bfin_device,
401 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
405 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
406 #ifdef CONFIG_SERIAL_BFIN_UART0
411 #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE)
415 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
416 #ifdef CONFIG_BFIN_SIR0
421 #if defined(CONFIG_KEYBOARD_OPENCORES) || defined(CONFIG_KEYBOARD_OPENCORES_MODULE)
422 &opencores_kbd_device,
426 static int __init H8606_init(
void)
428 printk(
KERN_INFO "HV Sistemas H8606 board support by http://www.hvsistemas.com\n");
431 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
440 #if defined(CONFIG_SERIAL_BFIN_CONSOLE) || defined(CONFIG_EARLY_PRINTK)
441 #ifdef CONFIG_SERIAL_BFIN_UART0