9 #include <linux/device.h>
24 #include <linux/input.h>
36 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
43 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
44 #ifdef CONFIG_SERIAL_BFIN_UART0
45 static struct resource bfin_uart0_resources[] = {
76 #ifdef CONFIG_BFIN_UART0_CTSRTS
90 static unsigned short bfin_uart0_peripherals[] = {
97 .num_resources =
ARRAY_SIZE(bfin_uart0_resources),
98 .resource = bfin_uart0_resources,
100 .platform_data = &bfin_uart0_peripherals,
104 #ifdef CONFIG_SERIAL_BFIN_UART1
105 static struct resource bfin_uart1_resources[] = {
138 static unsigned short bfin_uart1_peripherals[] = {
145 .num_resources =
ARRAY_SIZE(bfin_uart1_resources),
146 .resource = bfin_uart1_resources,
148 .platform_data = &bfin_uart1_peripherals,
152 #ifdef CONFIG_SERIAL_BFIN_UART2
153 static struct resource bfin_uart2_resources[] = {
186 static unsigned short bfin_uart2_peripherals[] = {
193 .num_resources =
ARRAY_SIZE(bfin_uart2_resources),
194 .resource = bfin_uart2_resources,
196 .platform_data = &bfin_uart2_peripherals,
202 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
203 #ifdef CONFIG_BFIN_SIR0
204 static struct resource bfin_sir0_resources[] = {
224 .num_resources =
ARRAY_SIZE(bfin_sir0_resources),
225 .resource = bfin_sir0_resources,
228 #ifdef CONFIG_BFIN_SIR1
229 static struct resource bfin_sir1_resources[] = {
249 .num_resources =
ARRAY_SIZE(bfin_sir1_resources),
250 .resource = bfin_sir1_resources,
253 #ifdef CONFIG_BFIN_SIR2
254 static struct resource bfin_sir2_resources[] = {
274 .num_resources =
ARRAY_SIZE(bfin_sir2_resources),
275 .resource = bfin_sir2_resources,
280 #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
281 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
282 static struct resource bfin_sport0_uart_resources[] = {
300 static unsigned short bfin_sport0_peripherals[] = {
306 .
name =
"bfin-sport-uart",
308 .num_resources =
ARRAY_SIZE(bfin_sport0_uart_resources),
309 .resource = bfin_sport0_uart_resources,
311 .platform_data = &bfin_sport0_peripherals,
315 #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
316 static struct resource bfin_sport1_uart_resources[] = {
334 static unsigned short bfin_sport1_peripherals[] = {
340 .
name =
"bfin-sport-uart",
342 .num_resources =
ARRAY_SIZE(bfin_sport1_uart_resources),
343 .resource = bfin_sport1_uart_resources,
345 .platform_data = &bfin_sport1_peripherals,
349 #ifdef CONFIG_SERIAL_BFIN_SPORT2_UART
350 static struct resource bfin_sport2_uart_resources[] = {
368 static unsigned short bfin_sport2_peripherals[] = {
374 .
name =
"bfin-sport-uart",
376 .num_resources =
ARRAY_SIZE(bfin_sport2_uart_resources),
377 .resource = bfin_sport2_uart_resources,
379 .platform_data = &bfin_sport2_peripherals,
383 #ifdef CONFIG_SERIAL_BFIN_SPORT3_UART
384 static struct resource bfin_sport3_uart_resources[] = {
402 static unsigned short bfin_sport3_peripherals[] = {
408 .
name =
"bfin-sport-uart",
410 .num_resources =
ARRAY_SIZE(bfin_sport3_uart_resources),
411 .resource = bfin_sport3_uart_resources,
413 .platform_data = &bfin_sport3_peripherals,
419 #if defined(CONFIG_CAN_BFIN) || defined(CONFIG_CAN_BFIN_MODULE)
420 static unsigned short bfin_can_peripherals[] = {
424 static struct resource bfin_can_resources[] = {
449 .num_resources =
ARRAY_SIZE(bfin_can_resources),
450 .resource = bfin_can_resources,
452 .platform_data = &bfin_can_peripherals,
461 #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
470 static struct resource smc91x_resources[] = {
472 .
name =
"smc91x-regs",
474 .end = 0x20310300 + 16,
485 .num_resources =
ARRAY_SIZE(smc91x_resources),
486 .resource = smc91x_resources,
488 .platform_data = &smc91x_info,
493 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
495 #if defined(CONFIG_MTD_M25P80) \
496 || defined(CONFIG_MTD_M25P80_MODULE)
500 .
name =
"bootloader(spi)",
505 .name =
"linux kernel(spi)",
513 .parts = bfin_spi_flash_partitions,
514 .nr_parts =
ARRAY_SIZE(bfin_spi_flash_partitions),
524 #if defined(CONFIG_TOUCHSCREEN_AD7879) || defined(CONFIG_TOUCHSCREEN_AD7879_MODULE)
529 .pressure_max = 10000,
531 .first_conversion_delay = 3,
532 .acquisition_time = 1,
535 .pen_down_acc_interval = 255,
541 #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE)
551 static struct resource bfin_lq035q1_resources[] = {
560 .
name =
"bfin-lq035q1",
562 .num_resources =
ARRAY_SIZE(bfin_lq035q1_resources),
563 .resource = bfin_lq035q1_resources,
565 .platform_data = &bfin_lq035q1_data,
571 #if defined(CONFIG_MTD_M25P80) \
572 || defined(CONFIG_MTD_M25P80_MODULE)
575 .modalias =
"m25p80",
576 .max_speed_hz = 25000000,
579 .platform_data = &bfin_spi_flash_data,
580 .controller_data = &spi_flash_chip_info,
584 #if defined(CONFIG_TOUCHSCREEN_AD7879_SPI) || defined(CONFIG_TOUCHSCREEN_AD7879_SPI_MODULE)
586 .modalias =
"ad7879",
587 .platform_data = &bfin_ad7879_ts_info,
589 .max_speed_hz = 5000000,
595 #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE)
597 .modalias =
"bfin-lq035q1-spi",
598 .max_speed_hz = 20000000,
604 #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)
606 .modalias =
"spidev",
607 .max_speed_hz = 3125000,
615 static struct resource bfin_spi0_resource[] = {
634 static struct resource bfin_spi1_resource[] = {
653 static struct resource bfin_spi2_resource[] = {
681 .num_resources =
ARRAY_SIZE(bfin_spi0_resource),
682 .resource = bfin_spi0_resource,
684 .platform_data = &bf538_spi_master_info0,
697 .num_resources =
ARRAY_SIZE(bfin_spi1_resource),
698 .resource = bfin_spi1_resource,
700 .platform_data = &bf538_spi_master_info1,
713 .num_resources =
ARRAY_SIZE(bfin_spi2_resource),
714 .resource = bfin_spi2_resource,
716 .platform_data = &bf538_spi_master_info2,
720 #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
723 static struct resource bfin_twi0_resource[] = {
737 .
name =
"i2c-bfin-twi",
739 .num_resources =
ARRAY_SIZE(bfin_twi0_resource),
740 .resource = bfin_twi0_resource,
742 .platform_data = &bfin_twi0_pins,
748 static struct resource bfin_twi1_resource[] = {
762 .
name =
"i2c-bfin-twi",
764 .num_resources =
ARRAY_SIZE(bfin_twi1_resource),
765 .resource = bfin_twi1_resource,
770 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
778 .
buttons = bfin_gpio_keys_table,
785 .platform_data = &bfin_gpio_keys_data,
790 static const unsigned int cclk_vlev_datasheet[] =
806 .tuple_tab = cclk_vlev_datasheet,
808 .vr_settling_time = 25 ,
814 .platform_data = &bfin_dmpc_vreg_data,
818 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
821 .
name =
"bootloader(nor)",
825 .name =
"linux kernel(nor)",
829 .name =
"file system(nor)",
837 .parts = ezkit_partitions,
841 static struct resource ezkit_flash_resource = {
843 #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
852 .
name =
"physmap-flash",
855 .platform_data = &ezkit_flash_data,
858 .resource = &ezkit_flash_resource,
866 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
870 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
871 #ifdef CONFIG_SERIAL_BFIN_UART0
874 #ifdef CONFIG_SERIAL_BFIN_UART1
877 #ifdef CONFIG_SERIAL_BFIN_UART2
882 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
888 #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
889 &i2c_bfin_twi0_device,
890 &i2c_bfin_twi1_device,
893 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
894 #ifdef CONFIG_BFIN_SIR0
897 #ifdef CONFIG_BFIN_SIR1
900 #ifdef CONFIG_BFIN_SIR2
905 #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
906 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
907 &bfin_sport0_uart_device,
909 #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
910 &bfin_sport1_uart_device,
912 #ifdef CONFIG_SERIAL_BFIN_SPORT2_UART
913 &bfin_sport2_uart_device,
915 #ifdef CONFIG_SERIAL_BFIN_SPORT3_UART
916 &bfin_sport3_uart_device,
920 #if defined(CONFIG_CAN_BFIN) || defined(CONFIG_CAN_BFIN_MODULE)
924 #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
928 #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE)
929 &bfin_lq035q1_device,
932 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
933 &bfin_device_gpiokeys,
936 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
941 static int __init ezkit_init(
void)
946 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
957 #if defined(CONFIG_SERIAL_BFIN_CONSOLE) || defined(CONFIG_EARLY_PRINTK)
958 #ifdef CONFIG_SERIAL_BFIN_UART0
961 #ifdef CONFIG_SERIAL_BFIN_UART1
964 #ifdef CONFIG_SERIAL_BFIN_UART2
969 #if defined(CONFIG_SERIAL_BFIN_SPORT_CONSOLE)
970 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
971 &bfin_sport0_uart_device,
973 #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
974 &bfin_sport1_uart_device,
976 #ifdef CONFIG_SERIAL_BFIN_SPORT2_UART
977 &bfin_sport2_uart_device,
979 #ifdef CONFIG_SERIAL_BFIN_SPORT3_UART
980 &bfin_sport3_uart_device,