2 * File: arch/blackfin/mach-bf548/boards/ezkit.c
3 * Based on: arch/blackfin/mach-bf537/boards/ezkit.c
4 * Author: Aidan Williams <aidan@nicta.com.au>
10 * Copyright 2005 National ICT Australia (NICTA)
11 * Copyright 2004-2007 Analog Devices Inc.
13 * Bugs: Enter bugs at http://blackfin.uclinux.org/
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 2 of the License, or
18 * (at your option) any later version.
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, see the file COPYING, or write
27 * to the Free Software Foundation, Inc.,
28 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
31 #include <linux/device.h>
32 #include <linux/platform_device.h>
33 #include <linux/mtd/mtd.h>
34 #include <linux/mtd/partitions.h>
35 #include <linux/mtd/physmap.h>
36 #include <linux/spi/spi.h>
37 #include <linux/spi/flash.h>
38 #include <linux/irq.h>
39 #include <linux/i2c.h>
40 #include <linux/interrupt.h>
41 #include <linux/usb/musb.h>
42 #include <asm/bfin5xx_spi.h>
47 #include <asm/portmux.h>
48 #include <asm/bfin_sdh.h>
49 #include <mach/bf54x_keys.h>
50 #include <linux/input.h>
51 #include <linux/spi/ad7877.h>
54 * Name the Board for the /proc/cpuinfo
56 const char bfin_board_name[] = "ADI BF548-EZKIT";
59 * Driver needs to know address, irq and flag pin.
62 #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE)
63 #include <linux/usb/isp1760.h>
64 static struct resource bfin_isp1760_resources[] = {
67 .end = 0x2C0C0000 + 0xfffff,
68 .flags = IORESOURCE_MEM,
73 .flags = IORESOURCE_IRQ,
77 static struct isp1760_platform_data isp1760_priv = {
83 .dack_polarity_high = 0,
84 .dreq_polarity_high = 0,
87 static struct platform_device bfin_isp1760_device = {
88 .name = "isp1760-hcd",
91 .platform_data = &isp1760_priv,
93 .num_resources = ARRAY_SIZE(bfin_isp1760_resources),
94 .resource = bfin_isp1760_resources,
98 #if defined(CONFIG_FB_BF54X_LQ043) || defined(CONFIG_FB_BF54X_LQ043_MODULE)
100 #include <mach/bf54x-lq043.h>
102 static struct bfin_bf54xfb_mach_info bf54x_lq043_data = {
105 .xres = {480, 480, 480},
106 .yres = {272, 272, 272},
111 static struct resource bf54x_lq043_resources[] = {
113 .start = IRQ_EPPI0_ERR,
114 .end = IRQ_EPPI0_ERR,
115 .flags = IORESOURCE_IRQ,
119 static struct platform_device bf54x_lq043_device = {
120 .name = "bf54x-lq043",
122 .num_resources = ARRAY_SIZE(bf54x_lq043_resources),
123 .resource = bf54x_lq043_resources,
125 .platform_data = &bf54x_lq043_data,
130 #if defined(CONFIG_KEYBOARD_BFIN) || defined(CONFIG_KEYBOARD_BFIN_MODULE)
131 static const unsigned int bf548_keymap[] = {
132 KEYVAL(0, 0, KEY_ENTER),
133 KEYVAL(0, 1, KEY_HELP),
135 KEYVAL(0, 3, KEY_BACKSPACE),
136 KEYVAL(1, 0, KEY_TAB),
140 KEYVAL(2, 0, KEY_DOWN),
144 KEYVAL(3, 0, KEY_UP),
150 static struct bfin_kpad_platform_data bf54x_kpad_data = {
153 .keymap = bf548_keymap,
154 .keymapsize = ARRAY_SIZE(bf548_keymap),
156 .debounce_time = 5000, /* ns (5ms) */
157 .coldrive_time = 1000, /* ns (1ms) */
158 .keyup_test_interval = 50, /* ms (50ms) */
161 static struct resource bf54x_kpad_resources[] = {
165 .flags = IORESOURCE_IRQ,
169 static struct platform_device bf54x_kpad_device = {
170 .name = "bf54x-keys",
172 .num_resources = ARRAY_SIZE(bf54x_kpad_resources),
173 .resource = bf54x_kpad_resources,
175 .platform_data = &bf54x_kpad_data,
180 #if defined(CONFIG_JOYSTICK_BFIN_ROTARY) || defined(CONFIG_JOYSTICK_BFIN_ROTARY_MODULE)
181 #include <asm/bfin_rotary.h>
183 static struct bfin_rotary_platform_data bfin_rotary_data = {
184 /*.rotary_up_key = KEY_UP,*/
185 /*.rotary_down_key = KEY_DOWN,*/
186 .rotary_rel_code = REL_WHEEL,
187 .rotary_button_key = KEY_ENTER,
188 .debounce = 10, /* 0..17 */
189 .mode = ROT_QUAD_ENC | ROT_DEBE,
192 static struct resource bfin_rotary_resources[] = {
196 .flags = IORESOURCE_IRQ,
200 static struct platform_device bfin_rotary_device = {
201 .name = "bfin-rotary",
203 .num_resources = ARRAY_SIZE(bfin_rotary_resources),
204 .resource = bfin_rotary_resources,
206 .platform_data = &bfin_rotary_data,
211 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
212 static struct platform_device rtc_device = {
218 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
219 static struct resource bfin_uart_resources[] = {
220 #ifdef CONFIG_SERIAL_BFIN_UART0
224 .flags = IORESOURCE_MEM,
227 #ifdef CONFIG_SERIAL_BFIN_UART1
231 .flags = IORESOURCE_MEM,
234 #ifdef CONFIG_SERIAL_BFIN_UART2
238 .flags = IORESOURCE_MEM,
241 #ifdef CONFIG_SERIAL_BFIN_UART3
245 .flags = IORESOURCE_MEM,
250 static struct platform_device bfin_uart_device = {
253 .num_resources = ARRAY_SIZE(bfin_uart_resources),
254 .resource = bfin_uart_resources,
258 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
259 #ifdef CONFIG_BFIN_SIR0
260 static struct resource bfin_sir0_resources[] = {
264 .flags = IORESOURCE_MEM,
267 .start = IRQ_UART0_RX,
268 .end = IRQ_UART0_RX+1,
269 .flags = IORESOURCE_IRQ,
272 .start = CH_UART0_RX,
273 .end = CH_UART0_RX+1,
274 .flags = IORESOURCE_DMA,
277 static struct platform_device bfin_sir0_device = {
280 .num_resources = ARRAY_SIZE(bfin_sir0_resources),
281 .resource = bfin_sir0_resources,
284 #ifdef CONFIG_BFIN_SIR1
285 static struct resource bfin_sir1_resources[] = {
289 .flags = IORESOURCE_MEM,
292 .start = IRQ_UART1_RX,
293 .end = IRQ_UART1_RX+1,
294 .flags = IORESOURCE_IRQ,
297 .start = CH_UART1_RX,
298 .end = CH_UART1_RX+1,
299 .flags = IORESOURCE_DMA,
302 static struct platform_device bfin_sir1_device = {
305 .num_resources = ARRAY_SIZE(bfin_sir1_resources),
306 .resource = bfin_sir1_resources,
309 #ifdef CONFIG_BFIN_SIR2
310 static struct resource bfin_sir2_resources[] = {
314 .flags = IORESOURCE_MEM,
317 .start = IRQ_UART2_RX,
318 .end = IRQ_UART2_RX+1,
319 .flags = IORESOURCE_IRQ,
322 .start = CH_UART2_RX,
323 .end = CH_UART2_RX+1,
324 .flags = IORESOURCE_DMA,
327 static struct platform_device bfin_sir2_device = {
330 .num_resources = ARRAY_SIZE(bfin_sir2_resources),
331 .resource = bfin_sir2_resources,
334 #ifdef CONFIG_BFIN_SIR3
335 static struct resource bfin_sir3_resources[] = {
339 .flags = IORESOURCE_MEM,
342 .start = IRQ_UART3_RX,
343 .end = IRQ_UART3_RX+1,
344 .flags = IORESOURCE_IRQ,
347 .start = CH_UART3_RX,
348 .end = CH_UART3_RX+1,
349 .flags = IORESOURCE_DMA,
352 static struct platform_device bfin_sir3_device = {
355 .num_resources = ARRAY_SIZE(bfin_sir3_resources),
356 .resource = bfin_sir3_resources,
361 #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
362 static struct resource smsc911x_resources[] = {
364 .name = "smsc911x-memory",
366 .end = 0x24000000 + 0xFF,
367 .flags = IORESOURCE_MEM,
372 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,
375 static struct platform_device smsc911x_device = {
378 .num_resources = ARRAY_SIZE(smsc911x_resources),
379 .resource = smsc911x_resources,
383 #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE)
384 static struct resource musb_resources[] = {
388 .flags = IORESOURCE_MEM,
390 [1] = { /* general IRQ */
391 .start = IRQ_USB_INT0,
393 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,
395 [2] = { /* DMA IRQ */
396 .start = IRQ_USB_DMA,
398 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,
402 static struct musb_hdrc_config musb_config = {
409 .gpio_vrsel = GPIO_PE7,
412 static struct musb_hdrc_platform_data musb_plat = {
413 #if defined(CONFIG_USB_MUSB_OTG)
415 #elif defined(CONFIG_USB_MUSB_HDRC_HCD)
417 #elif defined(CONFIG_USB_GADGET_MUSB_HDRC)
418 .mode = MUSB_PERIPHERAL,
420 .config = &musb_config,
423 static u64 musb_dmamask = ~(u32)0;
425 static struct platform_device musb_device = {
429 .dma_mask = &musb_dmamask,
430 .coherent_dma_mask = 0xffffffff,
431 .platform_data = &musb_plat,
433 .num_resources = ARRAY_SIZE(musb_resources),
434 .resource = musb_resources,
438 #if defined(CONFIG_PATA_BF54X) || defined(CONFIG_PATA_BF54X_MODULE)
439 static struct resource bfin_atapi_resources[] = {
443 .flags = IORESOURCE_MEM,
446 .start = IRQ_ATAPI_ERR,
447 .end = IRQ_ATAPI_ERR,
448 .flags = IORESOURCE_IRQ,
452 static struct platform_device bfin_atapi_device = {
453 .name = "pata-bf54x",
455 .num_resources = ARRAY_SIZE(bfin_atapi_resources),
456 .resource = bfin_atapi_resources,
460 #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE)
461 static struct mtd_partition partition_info[] = {
463 .name = "linux kernel(nand)",
465 .size = 4 * 1024 * 1024,
468 .name = "file system(nand)",
469 .offset = MTDPART_OFS_APPEND,
470 .size = MTDPART_SIZ_FULL,
474 static struct bf5xx_nand_platform bf5xx_nand_platform = {
475 .page_size = NFC_PG_SIZE_256,
476 .data_width = NFC_NWIDTH_8,
477 .partitions = partition_info,
478 .nr_partitions = ARRAY_SIZE(partition_info),
483 static struct resource bf5xx_nand_resources[] = {
487 .flags = IORESOURCE_MEM,
492 .flags = IORESOURCE_IRQ,
496 static struct platform_device bf5xx_nand_device = {
497 .name = "bf5xx-nand",
499 .num_resources = ARRAY_SIZE(bf5xx_nand_resources),
500 .resource = bf5xx_nand_resources,
502 .platform_data = &bf5xx_nand_platform,
507 #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE)
509 static struct bfin_sd_host bfin_sdh_data = {
511 .irq_int0 = IRQ_SDH_MASK0,
512 .pin_req = {P_SD_D0, P_SD_D1, P_SD_D2, P_SD_D3, P_SD_CLK, P_SD_CMD, 0},
515 static struct platform_device bf54x_sdh_device = {
519 .platform_data = &bfin_sdh_data,
524 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
525 static struct mtd_partition ezkit_partitions[] = {
527 .name = "bootloader(nor)",
531 .name = "linux kernel(nor)",
533 .offset = MTDPART_OFS_APPEND,
535 .name = "file system(nor)",
536 .size = MTDPART_SIZ_FULL,
537 .offset = MTDPART_OFS_APPEND,
541 static struct physmap_flash_data ezkit_flash_data = {
543 .parts = ezkit_partitions,
544 .nr_parts = ARRAY_SIZE(ezkit_partitions),
547 static struct resource ezkit_flash_resource = {
550 .flags = IORESOURCE_MEM,
553 static struct platform_device ezkit_flash_device = {
554 .name = "physmap-flash",
557 .platform_data = &ezkit_flash_data,
560 .resource = &ezkit_flash_resource,
564 #if defined(CONFIG_MTD_M25P80) \
565 || defined(CONFIG_MTD_M25P80_MODULE)
566 /* SPI flash chip (m25p16) */
567 static struct mtd_partition bfin_spi_flash_partitions[] = {
569 .name = "bootloader(spi)",
572 .mask_flags = MTD_CAP_ROM
574 .name = "linux kernel(spi)",
575 .size = MTDPART_SIZ_FULL,
576 .offset = MTDPART_OFS_APPEND,
580 static struct flash_platform_data bfin_spi_flash_data = {
582 .parts = bfin_spi_flash_partitions,
583 .nr_parts = ARRAY_SIZE(bfin_spi_flash_partitions),
587 static struct bfin5xx_spi_chip spi_flash_chip_info = {
588 .enable_dma = 0, /* use dma transfer with this chip*/
590 .cs_change_per_word = 0,
594 #if defined(CONFIG_SND_BLACKFIN_AD1836) \
595 || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
596 static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
602 #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE)
603 static struct bfin5xx_spi_chip spi_ad7877_chip_info = {
604 .cs_change_per_word = 0,
609 static const struct ad7877_platform_data bfin_ad7877_ts_info = {
611 .vref_delay_usecs = 50, /* internal, no capacitor */
614 .pressure_max = 1000,
616 .stopacq_polarity = 1,
617 .first_conversion_delay = 3,
618 .acquisition_time = 1,
620 .pen_down_acc_interval = 1,
624 #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)
625 static struct bfin5xx_spi_chip spidev_chip_info = {
631 static struct spi_board_info bfin_spi_board_info[] __initdata = {
632 #if defined(CONFIG_MTD_M25P80) \
633 || defined(CONFIG_MTD_M25P80_MODULE)
635 /* the modalias must be the same as spi device driver name */
636 .modalias = "m25p80", /* Name of spi_driver for this device */
637 .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
638 .bus_num = 0, /* Framework bus number */
639 .chip_select = 1, /* SPI_SSEL1*/
640 .platform_data = &bfin_spi_flash_data,
641 .controller_data = &spi_flash_chip_info,
645 #if defined(CONFIG_SND_BLACKFIN_AD1836) \
646 || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
648 .modalias = "ad1836-spi",
649 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
651 .chip_select = CONFIG_SND_BLACKFIN_SPI_PFBIT,
652 .controller_data = &ad1836_spi_chip_info,
655 #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE)
657 .modalias = "ad7877",
658 .platform_data = &bfin_ad7877_ts_info,
659 .irq = IRQ_PB4, /* old boards (<=Rev 1.3) use IRQ_PJ11 */
660 .max_speed_hz = 12500000, /* max spi clock (SCK) speed in HZ */
663 .controller_data = &spi_ad7877_chip_info,
666 #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)
668 .modalias = "spidev",
669 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
672 .controller_data = &spidev_chip_info,
677 #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
679 static struct resource bfin_spi0_resource[] = {
681 .start = SPI0_REGBASE,
682 .end = SPI0_REGBASE + 0xFF,
683 .flags = IORESOURCE_MEM,
688 .flags = IORESOURCE_IRQ,
693 static struct resource bfin_spi1_resource[] = {
695 .start = SPI1_REGBASE,
696 .end = SPI1_REGBASE + 0xFF,
697 .flags = IORESOURCE_MEM,
702 .flags = IORESOURCE_IRQ,
706 /* SPI controller data */
707 static struct bfin5xx_spi_master bf54x_spi_master_info0 = {
709 .enable_dma = 1, /* master has the ability to do dma transfer */
710 .pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0},
713 static struct platform_device bf54x_spi_master0 = {
715 .id = 0, /* Bus number */
716 .num_resources = ARRAY_SIZE(bfin_spi0_resource),
717 .resource = bfin_spi0_resource,
719 .platform_data = &bf54x_spi_master_info0, /* Passed to driver */
723 static struct bfin5xx_spi_master bf54x_spi_master_info1 = {
725 .enable_dma = 1, /* master has the ability to do dma transfer */
726 .pin_req = {P_SPI1_SCK, P_SPI1_MISO, P_SPI1_MOSI, 0},
729 static struct platform_device bf54x_spi_master1 = {
731 .id = 1, /* Bus number */
732 .num_resources = ARRAY_SIZE(bfin_spi1_resource),
733 .resource = bfin_spi1_resource,
735 .platform_data = &bf54x_spi_master_info1, /* Passed to driver */
738 #endif /* spi master and devices */
740 #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
741 static struct resource bfin_twi0_resource[] = {
743 .start = TWI0_REGBASE,
744 .end = TWI0_REGBASE + 0xFF,
745 .flags = IORESOURCE_MEM,
750 .flags = IORESOURCE_IRQ,
754 static struct platform_device i2c_bfin_twi0_device = {
755 .name = "i2c-bfin-twi",
757 .num_resources = ARRAY_SIZE(bfin_twi0_resource),
758 .resource = bfin_twi0_resource,
761 #if !defined(CONFIG_BF542) /* The BF542 only has 1 TWI */
762 static struct resource bfin_twi1_resource[] = {
764 .start = TWI1_REGBASE,
765 .end = TWI1_REGBASE + 0xFF,
766 .flags = IORESOURCE_MEM,
771 .flags = IORESOURCE_IRQ,
775 static struct platform_device i2c_bfin_twi1_device = {
776 .name = "i2c-bfin-twi",
778 .num_resources = ARRAY_SIZE(bfin_twi1_resource),
779 .resource = bfin_twi1_resource,
784 static struct i2c_board_info __initdata bfin_i2c_board_info0[] = {
787 #if !defined(CONFIG_BF542) /* The BF542 only has 1 TWI */
788 static struct i2c_board_info __initdata bfin_i2c_board_info1[] = {
789 #if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE)
791 I2C_BOARD_INFO("pcf8574_lcd", 0x22),
794 #if defined(CONFIG_TWI_KEYPAD) || defined(CONFIG_TWI_KEYPAD_MODULE)
796 I2C_BOARD_INFO("pcf8574_keypad", 0x27),
803 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
804 #include <linux/gpio_keys.h>
806 static struct gpio_keys_button bfin_gpio_keys_table[] = {
807 {BTN_0, GPIO_PB8, 1, "gpio-keys: BTN0"},
808 {BTN_1, GPIO_PB9, 1, "gpio-keys: BTN1"},
809 {BTN_2, GPIO_PB10, 1, "gpio-keys: BTN2"},
810 {BTN_3, GPIO_PB11, 1, "gpio-keys: BTN3"},
813 static struct gpio_keys_platform_data bfin_gpio_keys_data = {
814 .buttons = bfin_gpio_keys_table,
815 .nbuttons = ARRAY_SIZE(bfin_gpio_keys_table),
818 static struct platform_device bfin_device_gpiokeys = {
821 .platform_data = &bfin_gpio_keys_data,
826 static struct resource bfin_gpios_resources = {
828 .end = MAX_BLACKFIN_GPIOS - 1,
829 .flags = IORESOURCE_IRQ,
832 static struct platform_device bfin_gpios_device = {
833 .name = "simple-gpio",
836 .resource = &bfin_gpios_resources,
839 static const unsigned int cclk_vlev_datasheet[] =
842 * Internal VLEV BF54XSBBC1533
843 ****temporarily using these values until data sheet is updated
845 VRPAIR(VLEV_085, 150000000),
846 VRPAIR(VLEV_090, 250000000),
847 VRPAIR(VLEV_110, 276000000),
848 VRPAIR(VLEV_115, 301000000),
849 VRPAIR(VLEV_120, 525000000),
850 VRPAIR(VLEV_125, 550000000),
851 VRPAIR(VLEV_130, 600000000),
854 static struct bfin_dpmc_platform_data bfin_dmpc_vreg_data = {
855 .tuple_tab = cclk_vlev_datasheet,
856 .tabsize = ARRAY_SIZE(cclk_vlev_datasheet),
857 .vr_settling_time = 25 /* us */,
860 static struct platform_device bfin_dpmc = {
863 .platform_data = &bfin_dmpc_vreg_data,
867 static struct platform_device *ezkit_devices[] __initdata = {
871 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
875 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
879 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
880 #ifdef CONFIG_BFIN_SIR0
883 #ifdef CONFIG_BFIN_SIR1
886 #ifdef CONFIG_BFIN_SIR2
889 #ifdef CONFIG_BFIN_SIR3
894 #if defined(CONFIG_FB_BF54X_LQ043) || defined(CONFIG_FB_BF54X_LQ043_MODULE)
898 #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
902 #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE)
906 #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE)
907 &bfin_isp1760_device,
910 #if defined(CONFIG_PATA_BF54X) || defined(CONFIG_PATA_BF54X_MODULE)
914 #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE)
918 #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE)
922 #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
927 #if defined(CONFIG_KEYBOARD_BFIN) || defined(CONFIG_KEYBOARD_BFIN_MODULE)
931 #if defined(CONFIG_JOYSTICK_BFIN_ROTARY) || defined(CONFIG_JOYSTICK_BFIN_ROTARY_MODULE)
935 #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
936 &i2c_bfin_twi0_device,
937 #if !defined(CONFIG_BF542)
938 &i2c_bfin_twi1_device,
942 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
943 &bfin_device_gpiokeys,
948 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
953 static int __init ezkit_init(void)
955 printk(KERN_INFO "%s(): registering device resources\n", __func__);
957 i2c_register_board_info(0, bfin_i2c_board_info0,
958 ARRAY_SIZE(bfin_i2c_board_info0));
959 #if !defined(CONFIG_BF542) /* The BF542 only has 1 TWI */
960 i2c_register_board_info(1, bfin_i2c_board_info1,
961 ARRAY_SIZE(bfin_i2c_board_info1));
964 platform_add_devices(ezkit_devices, ARRAY_SIZE(ezkit_devices));
966 spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info));
971 arch_initcall(ezkit_init);