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 <mach/bf54x_keys.h>
49 #include <linux/input.h>
50 #include <linux/spi/ad7877.h>
53 * Name the Board for the /proc/cpuinfo
55 const char bfin_board_name
[] = "ADI BF548-EZKIT";
58 * Driver needs to know address, irq and flag pin.
61 #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE)
62 #include <linux/usb/isp1760.h>
63 static struct resource bfin_isp1760_resources
[] = {
66 .end
= 0x2C0C0000 + 0xfffff,
67 .flags
= IORESOURCE_MEM
,
72 .flags
= IORESOURCE_IRQ
,
76 static struct isp1760_platform_data isp1760_priv
= {
82 .dack_polarity_high
= 0,
83 .dreq_polarity_high
= 0,
86 static struct platform_device bfin_isp1760_device
= {
87 .name
= "isp1760-hcd",
90 .platform_data
= &isp1760_priv
,
92 .num_resources
= ARRAY_SIZE(bfin_isp1760_resources
),
93 .resource
= bfin_isp1760_resources
,
97 #if defined(CONFIG_FB_BF54X_LQ043) || defined(CONFIG_FB_BF54X_LQ043_MODULE)
99 #include <mach/bf54x-lq043.h>
101 static struct bfin_bf54xfb_mach_info bf54x_lq043_data
= {
104 .xres
= {480, 480, 480},
105 .yres
= {272, 272, 272},
110 static struct resource bf54x_lq043_resources
[] = {
112 .start
= IRQ_EPPI0_ERR
,
113 .end
= IRQ_EPPI0_ERR
,
114 .flags
= IORESOURCE_IRQ
,
118 static struct platform_device bf54x_lq043_device
= {
119 .name
= "bf54x-lq043",
121 .num_resources
= ARRAY_SIZE(bf54x_lq043_resources
),
122 .resource
= bf54x_lq043_resources
,
124 .platform_data
= &bf54x_lq043_data
,
129 #if defined(CONFIG_KEYBOARD_BFIN) || defined(CONFIG_KEYBOARD_BFIN_MODULE)
130 static const unsigned int bf548_keymap
[] = {
131 KEYVAL(0, 0, KEY_ENTER
),
132 KEYVAL(0, 1, KEY_HELP
),
134 KEYVAL(0, 3, KEY_BACKSPACE
),
135 KEYVAL(1, 0, KEY_TAB
),
139 KEYVAL(2, 0, KEY_DOWN
),
143 KEYVAL(3, 0, KEY_UP
),
149 static struct bfin_kpad_platform_data bf54x_kpad_data
= {
152 .keymap
= bf548_keymap
,
153 .keymapsize
= ARRAY_SIZE(bf548_keymap
),
155 .debounce_time
= 5000, /* ns (5ms) */
156 .coldrive_time
= 1000, /* ns (1ms) */
157 .keyup_test_interval
= 50, /* ms (50ms) */
160 static struct resource bf54x_kpad_resources
[] = {
164 .flags
= IORESOURCE_IRQ
,
168 static struct platform_device bf54x_kpad_device
= {
169 .name
= "bf54x-keys",
171 .num_resources
= ARRAY_SIZE(bf54x_kpad_resources
),
172 .resource
= bf54x_kpad_resources
,
174 .platform_data
= &bf54x_kpad_data
,
179 #if defined(CONFIG_JOYSTICK_BFIN_ROTARY) || defined(CONFIG_JOYSTICK_BFIN_ROTARY_MODULE)
180 #include <asm/bfin_rotary.h>
182 static struct bfin_rotary_platform_data bfin_rotary_data
= {
183 /*.rotary_up_key = KEY_UP,*/
184 /*.rotary_down_key = KEY_DOWN,*/
185 .rotary_rel_code
= REL_WHEEL
,
186 .rotary_button_key
= KEY_ENTER
,
187 .debounce
= 10, /* 0..17 */
188 .mode
= ROT_QUAD_ENC
| ROT_DEBE
,
191 static struct resource bfin_rotary_resources
[] = {
195 .flags
= IORESOURCE_IRQ
,
199 static struct platform_device bfin_rotary_device
= {
200 .name
= "bfin-rotary",
202 .num_resources
= ARRAY_SIZE(bfin_rotary_resources
),
203 .resource
= bfin_rotary_resources
,
205 .platform_data
= &bfin_rotary_data
,
210 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
211 static struct platform_device rtc_device
= {
217 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
218 static struct resource bfin_uart_resources
[] = {
219 #ifdef CONFIG_SERIAL_BFIN_UART0
223 .flags
= IORESOURCE_MEM
,
226 #ifdef CONFIG_SERIAL_BFIN_UART1
230 .flags
= IORESOURCE_MEM
,
233 #ifdef CONFIG_SERIAL_BFIN_UART2
237 .flags
= IORESOURCE_MEM
,
240 #ifdef CONFIG_SERIAL_BFIN_UART3
244 .flags
= IORESOURCE_MEM
,
249 static struct platform_device bfin_uart_device
= {
252 .num_resources
= ARRAY_SIZE(bfin_uart_resources
),
253 .resource
= bfin_uart_resources
,
257 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
258 #ifdef CONFIG_BFIN_SIR0
259 static struct resource bfin_sir0_resources
[] = {
263 .flags
= IORESOURCE_MEM
,
266 .start
= IRQ_UART0_RX
,
267 .end
= IRQ_UART0_RX
+1,
268 .flags
= IORESOURCE_IRQ
,
271 .start
= CH_UART0_RX
,
272 .end
= CH_UART0_RX
+1,
273 .flags
= IORESOURCE_DMA
,
276 static struct platform_device bfin_sir0_device
= {
279 .num_resources
= ARRAY_SIZE(bfin_sir0_resources
),
280 .resource
= bfin_sir0_resources
,
283 #ifdef CONFIG_BFIN_SIR1
284 static struct resource bfin_sir1_resources
[] = {
288 .flags
= IORESOURCE_MEM
,
291 .start
= IRQ_UART1_RX
,
292 .end
= IRQ_UART1_RX
+1,
293 .flags
= IORESOURCE_IRQ
,
296 .start
= CH_UART1_RX
,
297 .end
= CH_UART1_RX
+1,
298 .flags
= IORESOURCE_DMA
,
301 static struct platform_device bfin_sir1_device
= {
304 .num_resources
= ARRAY_SIZE(bfin_sir1_resources
),
305 .resource
= bfin_sir1_resources
,
308 #ifdef CONFIG_BFIN_SIR2
309 static struct resource bfin_sir2_resources
[] = {
313 .flags
= IORESOURCE_MEM
,
316 .start
= IRQ_UART2_RX
,
317 .end
= IRQ_UART2_RX
+1,
318 .flags
= IORESOURCE_IRQ
,
321 .start
= CH_UART2_RX
,
322 .end
= CH_UART2_RX
+1,
323 .flags
= IORESOURCE_DMA
,
326 static struct platform_device bfin_sir2_device
= {
329 .num_resources
= ARRAY_SIZE(bfin_sir2_resources
),
330 .resource
= bfin_sir2_resources
,
333 #ifdef CONFIG_BFIN_SIR3
334 static struct resource bfin_sir3_resources
[] = {
338 .flags
= IORESOURCE_MEM
,
341 .start
= IRQ_UART3_RX
,
342 .end
= IRQ_UART3_RX
+1,
343 .flags
= IORESOURCE_IRQ
,
346 .start
= CH_UART3_RX
,
347 .end
= CH_UART3_RX
+1,
348 .flags
= IORESOURCE_DMA
,
351 static struct platform_device bfin_sir3_device
= {
354 .num_resources
= ARRAY_SIZE(bfin_sir3_resources
),
355 .resource
= bfin_sir3_resources
,
360 #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
361 static struct resource smsc911x_resources
[] = {
363 .name
= "smsc911x-memory",
365 .end
= 0x24000000 + 0xFF,
366 .flags
= IORESOURCE_MEM
,
371 .flags
= IORESOURCE_IRQ
| IORESOURCE_IRQ_LOWLEVEL
,
374 static struct platform_device smsc911x_device
= {
377 .num_resources
= ARRAY_SIZE(smsc911x_resources
),
378 .resource
= smsc911x_resources
,
382 #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE)
383 static struct resource musb_resources
[] = {
387 .flags
= IORESOURCE_MEM
,
389 [1] = { /* general IRQ */
390 .start
= IRQ_USB_INT0
,
392 .flags
= IORESOURCE_IRQ
| IORESOURCE_IRQ_HIGHLEVEL
,
394 [2] = { /* DMA IRQ */
395 .start
= IRQ_USB_DMA
,
397 .flags
= IORESOURCE_IRQ
| IORESOURCE_IRQ_HIGHLEVEL
,
401 static struct musb_hdrc_config musb_config
= {
408 .gpio_vrsel
= GPIO_PE7
,
411 static struct musb_hdrc_platform_data musb_plat
= {
412 #if defined(CONFIG_USB_MUSB_OTG)
414 #elif defined(CONFIG_USB_MUSB_HDRC_HCD)
416 #elif defined(CONFIG_USB_GADGET_MUSB_HDRC)
417 .mode
= MUSB_PERIPHERAL
,
419 .config
= &musb_config
,
422 static u64 musb_dmamask
= ~(u32
)0;
424 static struct platform_device musb_device
= {
428 .dma_mask
= &musb_dmamask
,
429 .coherent_dma_mask
= 0xffffffff,
430 .platform_data
= &musb_plat
,
432 .num_resources
= ARRAY_SIZE(musb_resources
),
433 .resource
= musb_resources
,
437 #if defined(CONFIG_PATA_BF54X) || defined(CONFIG_PATA_BF54X_MODULE)
438 static struct resource bfin_atapi_resources
[] = {
442 .flags
= IORESOURCE_MEM
,
445 .start
= IRQ_ATAPI_ERR
,
446 .end
= IRQ_ATAPI_ERR
,
447 .flags
= IORESOURCE_IRQ
,
451 static struct platform_device bfin_atapi_device
= {
452 .name
= "pata-bf54x",
454 .num_resources
= ARRAY_SIZE(bfin_atapi_resources
),
455 .resource
= bfin_atapi_resources
,
459 #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE)
460 static struct mtd_partition partition_info
[] = {
462 .name
= "linux kernel(nand)",
464 .size
= 4 * 1024 * 1024,
467 .name
= "file system(nand)",
468 .offset
= MTDPART_OFS_APPEND
,
469 .size
= MTDPART_SIZ_FULL
,
473 static struct bf5xx_nand_platform bf5xx_nand_platform
= {
474 .page_size
= NFC_PG_SIZE_256
,
475 .data_width
= NFC_NWIDTH_8
,
476 .partitions
= partition_info
,
477 .nr_partitions
= ARRAY_SIZE(partition_info
),
482 static struct resource bf5xx_nand_resources
[] = {
486 .flags
= IORESOURCE_MEM
,
491 .flags
= IORESOURCE_IRQ
,
495 static struct platform_device bf5xx_nand_device
= {
496 .name
= "bf5xx-nand",
498 .num_resources
= ARRAY_SIZE(bf5xx_nand_resources
),
499 .resource
= bf5xx_nand_resources
,
501 .platform_data
= &bf5xx_nand_platform
,
506 #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE)
507 static struct platform_device bf54x_sdh_device
= {
513 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
514 static struct mtd_partition ezkit_partitions
[] = {
516 .name
= "bootloader(nor)",
520 .name
= "linux kernel(nor)",
522 .offset
= MTDPART_OFS_APPEND
,
524 .name
= "file system(nor)",
525 .size
= MTDPART_SIZ_FULL
,
526 .offset
= MTDPART_OFS_APPEND
,
530 static struct physmap_flash_data ezkit_flash_data
= {
532 .parts
= ezkit_partitions
,
533 .nr_parts
= ARRAY_SIZE(ezkit_partitions
),
536 static struct resource ezkit_flash_resource
= {
539 .flags
= IORESOURCE_MEM
,
542 static struct platform_device ezkit_flash_device
= {
543 .name
= "physmap-flash",
546 .platform_data
= &ezkit_flash_data
,
549 .resource
= &ezkit_flash_resource
,
553 #if defined(CONFIG_MTD_M25P80) \
554 || defined(CONFIG_MTD_M25P80_MODULE)
555 /* SPI flash chip (m25p16) */
556 static struct mtd_partition bfin_spi_flash_partitions
[] = {
558 .name
= "bootloader(spi)",
561 .mask_flags
= MTD_CAP_ROM
563 .name
= "linux kernel(spi)",
564 .size
= MTDPART_SIZ_FULL
,
565 .offset
= MTDPART_OFS_APPEND
,
569 static struct flash_platform_data bfin_spi_flash_data
= {
571 .parts
= bfin_spi_flash_partitions
,
572 .nr_parts
= ARRAY_SIZE(bfin_spi_flash_partitions
),
576 static struct bfin5xx_spi_chip spi_flash_chip_info
= {
577 .enable_dma
= 0, /* use dma transfer with this chip*/
579 .cs_change_per_word
= 0,
583 #if defined(CONFIG_SND_BLACKFIN_AD1836) \
584 || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
585 static struct bfin5xx_spi_chip ad1836_spi_chip_info
= {
591 #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE)
592 static struct bfin5xx_spi_chip spi_ad7877_chip_info
= {
593 .cs_change_per_word
= 0,
598 static const struct ad7877_platform_data bfin_ad7877_ts_info
= {
600 .vref_delay_usecs
= 50, /* internal, no capacitor */
603 .pressure_max
= 1000,
605 .stopacq_polarity
= 1,
606 .first_conversion_delay
= 3,
607 .acquisition_time
= 1,
609 .pen_down_acc_interval
= 1,
613 #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)
614 static struct bfin5xx_spi_chip spidev_chip_info
= {
620 static struct spi_board_info bfin_spi_board_info
[] __initdata
= {
621 #if defined(CONFIG_MTD_M25P80) \
622 || defined(CONFIG_MTD_M25P80_MODULE)
624 /* the modalias must be the same as spi device driver name */
625 .modalias
= "m25p80", /* Name of spi_driver for this device */
626 .max_speed_hz
= 25000000, /* max spi clock (SCK) speed in HZ */
627 .bus_num
= 0, /* Framework bus number */
628 .chip_select
= 1, /* SPI_SSEL1*/
629 .platform_data
= &bfin_spi_flash_data
,
630 .controller_data
= &spi_flash_chip_info
,
634 #if defined(CONFIG_SND_BLACKFIN_AD1836) \
635 || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
637 .modalias
= "ad1836-spi",
638 .max_speed_hz
= 3125000, /* max spi clock (SCK) speed in HZ */
640 .chip_select
= CONFIG_SND_BLACKFIN_SPI_PFBIT
,
641 .controller_data
= &ad1836_spi_chip_info
,
644 #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE)
646 .modalias
= "ad7877",
647 .platform_data
= &bfin_ad7877_ts_info
,
648 .irq
= IRQ_PJ11
, /* newer boards (Rev 1.4+) use IRQ_PB4 */
649 .max_speed_hz
= 12500000, /* max spi clock (SCK) speed in HZ */
652 .controller_data
= &spi_ad7877_chip_info
,
655 #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)
657 .modalias
= "spidev",
658 .max_speed_hz
= 3125000, /* max spi clock (SCK) speed in HZ */
661 .controller_data
= &spidev_chip_info
,
666 #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
668 static struct resource bfin_spi0_resource
[] = {
670 .start
= SPI0_REGBASE
,
671 .end
= SPI0_REGBASE
+ 0xFF,
672 .flags
= IORESOURCE_MEM
,
677 .flags
= IORESOURCE_IRQ
,
682 static struct resource bfin_spi1_resource
[] = {
684 .start
= SPI1_REGBASE
,
685 .end
= SPI1_REGBASE
+ 0xFF,
686 .flags
= IORESOURCE_MEM
,
691 .flags
= IORESOURCE_IRQ
,
695 /* SPI controller data */
696 static struct bfin5xx_spi_master bf54x_spi_master_info0
= {
698 .enable_dma
= 1, /* master has the ability to do dma transfer */
699 .pin_req
= {P_SPI0_SCK
, P_SPI0_MISO
, P_SPI0_MOSI
, 0},
702 static struct platform_device bf54x_spi_master0
= {
704 .id
= 0, /* Bus number */
705 .num_resources
= ARRAY_SIZE(bfin_spi0_resource
),
706 .resource
= bfin_spi0_resource
,
708 .platform_data
= &bf54x_spi_master_info0
, /* Passed to driver */
712 static struct bfin5xx_spi_master bf54x_spi_master_info1
= {
714 .enable_dma
= 1, /* master has the ability to do dma transfer */
715 .pin_req
= {P_SPI1_SCK
, P_SPI1_MISO
, P_SPI1_MOSI
, 0},
718 static struct platform_device bf54x_spi_master1
= {
720 .id
= 1, /* Bus number */
721 .num_resources
= ARRAY_SIZE(bfin_spi1_resource
),
722 .resource
= bfin_spi1_resource
,
724 .platform_data
= &bf54x_spi_master_info1
, /* Passed to driver */
727 #endif /* spi master and devices */
729 #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
730 static struct resource bfin_twi0_resource
[] = {
732 .start
= TWI0_REGBASE
,
733 .end
= TWI0_REGBASE
+ 0xFF,
734 .flags
= IORESOURCE_MEM
,
739 .flags
= IORESOURCE_IRQ
,
743 static struct platform_device i2c_bfin_twi0_device
= {
744 .name
= "i2c-bfin-twi",
746 .num_resources
= ARRAY_SIZE(bfin_twi0_resource
),
747 .resource
= bfin_twi0_resource
,
750 #if !defined(CONFIG_BF542) /* The BF542 only has 1 TWI */
751 static struct resource bfin_twi1_resource
[] = {
753 .start
= TWI1_REGBASE
,
754 .end
= TWI1_REGBASE
+ 0xFF,
755 .flags
= IORESOURCE_MEM
,
760 .flags
= IORESOURCE_IRQ
,
764 static struct platform_device i2c_bfin_twi1_device
= {
765 .name
= "i2c-bfin-twi",
767 .num_resources
= ARRAY_SIZE(bfin_twi1_resource
),
768 .resource
= bfin_twi1_resource
,
773 #ifdef CONFIG_I2C_BOARDINFO
774 static struct i2c_board_info __initdata bfin_i2c_board_info0
[] = {
777 #if !defined(CONFIG_BF542) /* The BF542 only has 1 TWI */
778 static struct i2c_board_info __initdata bfin_i2c_board_info1
[] = {
779 #if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE)
781 I2C_BOARD_INFO("pcf8574_lcd", 0x22),
784 #if defined(CONFIG_TWI_KEYPAD) || defined(CONFIG_TWI_KEYPAD_MODULE)
786 I2C_BOARD_INFO("pcf8574_keypad", 0x27),
794 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
795 #include <linux/gpio_keys.h>
797 static struct gpio_keys_button bfin_gpio_keys_table
[] = {
798 {BTN_0
, GPIO_PB8
, 1, "gpio-keys: BTN0"},
799 {BTN_1
, GPIO_PB9
, 1, "gpio-keys: BTN1"},
800 {BTN_2
, GPIO_PB10
, 1, "gpio-keys: BTN2"},
801 {BTN_3
, GPIO_PB11
, 1, "gpio-keys: BTN3"},
804 static struct gpio_keys_platform_data bfin_gpio_keys_data
= {
805 .buttons
= bfin_gpio_keys_table
,
806 .nbuttons
= ARRAY_SIZE(bfin_gpio_keys_table
),
809 static struct platform_device bfin_device_gpiokeys
= {
812 .platform_data
= &bfin_gpio_keys_data
,
817 static struct resource bfin_gpios_resources
= {
819 .end
= MAX_BLACKFIN_GPIOS
- 1,
820 .flags
= IORESOURCE_IRQ
,
823 static struct platform_device bfin_gpios_device
= {
824 .name
= "simple-gpio",
827 .resource
= &bfin_gpios_resources
,
830 static const unsigned int cclk_vlev_datasheet
[] =
833 * Internal VLEV BF54XSBBC1533
834 ****temporarily using these values until data sheet is updated
836 VRPAIR(VLEV_085
, 150000000),
837 VRPAIR(VLEV_090
, 250000000),
838 VRPAIR(VLEV_110
, 276000000),
839 VRPAIR(VLEV_115
, 301000000),
840 VRPAIR(VLEV_120
, 525000000),
841 VRPAIR(VLEV_125
, 550000000),
842 VRPAIR(VLEV_130
, 600000000),
845 static struct bfin_dpmc_platform_data bfin_dmpc_vreg_data
= {
846 .tuple_tab
= cclk_vlev_datasheet
,
847 .tabsize
= ARRAY_SIZE(cclk_vlev_datasheet
),
848 .vr_settling_time
= 25 /* us */,
851 static struct platform_device bfin_dpmc
= {
854 .platform_data
= &bfin_dmpc_vreg_data
,
858 static struct platform_device
*ezkit_devices
[] __initdata
= {
862 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
866 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
870 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
871 #ifdef CONFIG_BFIN_SIR0
874 #ifdef CONFIG_BFIN_SIR1
877 #ifdef CONFIG_BFIN_SIR2
880 #ifdef CONFIG_BFIN_SIR3
885 #if defined(CONFIG_FB_BF54X_LQ043) || defined(CONFIG_FB_BF54X_LQ043_MODULE)
889 #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
893 #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE)
897 #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE)
898 &bfin_isp1760_device
,
901 #if defined(CONFIG_PATA_BF54X) || defined(CONFIG_PATA_BF54X_MODULE)
905 #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE)
909 #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE)
913 #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
918 #if defined(CONFIG_KEYBOARD_BFIN) || defined(CONFIG_KEYBOARD_BFIN_MODULE)
922 #if defined(CONFIG_JOYSTICK_BFIN_ROTARY) || defined(CONFIG_JOYSTICK_BFIN_ROTARY_MODULE)
926 #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
927 &i2c_bfin_twi0_device
,
928 #if !defined(CONFIG_BF542)
929 &i2c_bfin_twi1_device
,
933 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
934 &bfin_device_gpiokeys
,
939 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
944 static int __init
ezkit_init(void)
946 printk(KERN_INFO
"%s(): registering device resources\n", __func__
);
948 #ifdef CONFIG_I2C_BOARDINFO
949 i2c_register_board_info(0, bfin_i2c_board_info0
,
950 ARRAY_SIZE(bfin_i2c_board_info0
));
951 #if !defined(CONFIG_BF542) /* The BF542 only has 1 TWI */
952 i2c_register_board_info(1, bfin_i2c_board_info1
,
953 ARRAY_SIZE(bfin_i2c_board_info1
));
957 platform_add_devices(ezkit_devices
, ARRAY_SIZE(ezkit_devices
));
959 spi_register_board_info(bfin_spi_board_info
, ARRAY_SIZE(bfin_spi_board_info
));
964 arch_initcall(ezkit_init
);