9 #include <linux/device.h>
10 #include <linux/export.h>
11 #include <linux/kernel.h>
21 #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
24 #include <linux/i2c.h>
33 #include <linux/input.h>
36 #include <asm/reboot.h>
40 #ifdef CONFIG_REGULATOR_FIXED_VOLTAGE
56 #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE)
58 static struct resource bfin_isp1760_resources[] = {
61 .end = 0x203C0000 + 0x000fffff,
76 .dack_polarity_high = 0,
77 .dreq_polarity_high = 0,
84 .platform_data = &isp1760_priv,
86 .num_resources =
ARRAY_SIZE(bfin_isp1760_resources),
87 .resource = bfin_isp1760_resources,
91 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
102 .
buttons = bfin_gpio_keys_table,
109 .platform_data = &bfin_gpio_keys_data,
114 #if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE)
115 static struct resource bfin_pcmcia_cf_resources[] = {
136 .
name =
"bfin_cf_pcmcia",
138 .num_resources =
ARRAY_SIZE(bfin_pcmcia_cf_resources),
139 .resource = bfin_pcmcia_cf_resources,
143 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
150 #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
159 static struct resource smc91x_resources[] = {
161 .
name =
"smc91x-regs",
163 .end = 0x20300300 + 16,
175 .num_resources =
ARRAY_SIZE(smc91x_resources),
176 .resource = smc91x_resources,
178 .platform_data = &smc91x_info,
183 #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE)
184 static struct resource dm9000_resources[] = {
187 .end = 0x203FB800 + 1,
192 .end = 0x203FB804 + 1,
205 .num_resources =
ARRAY_SIZE(dm9000_resources),
206 .resource = dm9000_resources,
210 #if defined(CONFIG_USB_SL811_HCD) || defined(CONFIG_USB_SL811_HCD_MODULE)
211 static struct resource sl811_hcd_resources[] = {
227 #if defined(CONFIG_USB_SL811_BFIN_USE_VBUS)
228 void sl811_port_power(
struct device *
dev,
int is_on)
230 gpio_request(CONFIG_USB_SL811_BFIN_GPIO_VBUS,
"usb:SL811_VBUS");
238 #if defined(CONFIG_USB_SL811_BFIN_USE_VBUS)
239 .port_power = &sl811_port_power,
247 .platform_data = &sl811_priv,
249 .num_resources =
ARRAY_SIZE(sl811_hcd_resources),
250 .resource = sl811_hcd_resources,
254 #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
255 static struct resource isp1362_hcd_resources[] = {
276 .int_edge_triggered = 0,
277 .remote_wakeup_connected = 0,
278 .no_power_switching = 1,
279 .power_switching_mode = 0,
283 .
name =
"isp1362-hcd",
286 .platform_data = &isp1362_priv,
288 .num_resources =
ARRAY_SIZE(isp1362_hcd_resources),
289 .resource = isp1362_hcd_resources,
293 #if defined(CONFIG_CAN_BFIN) || defined(CONFIG_CAN_BFIN_MODULE)
294 static unsigned short bfin_can_peripherals[] = {
298 static struct resource bfin_can_resources[] = {
323 .num_resources =
ARRAY_SIZE(bfin_can_resources),
324 .resource = bfin_can_resources,
326 .platform_data = &bfin_can_peripherals,
331 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
333 static const unsigned short bfin_mac_peripherals[] =
P_MII0;
344 .phydev_data = bfin_phydev_data,
346 .mac_peripherals = bfin_mac_peripherals,
350 .
name =
"bfin_mii_bus",
352 .platform_data = &bfin_mii_bus_data,
359 .platform_data = &bfin_mii_bus,
364 #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
365 static struct resource net2272_bfin_resources[] = {
368 .end = 0x20300000 + 0x100,
383 .num_resources =
ARRAY_SIZE(net2272_bfin_resources),
384 .resource = net2272_bfin_resources,
388 #if defined(CONFIG_MTD_NAND_PLATFORM) || defined(CONFIG_MTD_NAND_PLATFORM_MODULE)
389 const char *part_probes[] = {
"cmdlinepart",
"RedBoot",
NULL };
393 .
name =
"linux kernel(nand)",
397 .name =
"file system(nand)",
403 #define BFIN_NAND_PLAT_CLE 2
404 #define BFIN_NAND_PLAT_ALE 1
405 static void bfin_plat_nand_cmd_ctrl(
struct mtd_info *mtd,
int cmd,
unsigned int ctrl)
418 #define BFIN_NAND_PLAT_READY GPIO_PF3
419 static int bfin_plat_nand_dev_ready(
struct mtd_info *mtd)
428 .part_probe_types = part_probes,
429 .partitions = bfin_plat_nand_partitions,
430 .nr_partitions =
ARRAY_SIZE(bfin_plat_nand_partitions),
433 .cmd_ctrl = bfin_plat_nand_cmd_ctrl,
434 .dev_ready = bfin_plat_nand_dev_ready,
438 #define MAX(x, y) (x > y ? x : y)
439 static struct resource bfin_plat_nand_resources = {
441 .end = 0x20212000 + (1 <<
MAX(BFIN_NAND_PLAT_CLE, BFIN_NAND_PLAT_ALE)),
449 .resource = &bfin_plat_nand_resources,
451 .platform_data = &bfin_plat_nand_data,
455 static void bfin_plat_nand_init(
void)
460 static void bfin_plat_nand_init(
void) {}
463 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
466 .
name =
"bootloader(nor)",
470 .name =
"linux kernel(nor)",
474 .name =
"file system(nor)",
475 .size = 0x400000 - 0x40000 - 0x180000 - 0x10000,
478 .name =
"MAC Address(nor)",
487 .parts = stamp_partitions,
489 #ifdef CONFIG_ROMKERNEL
490 .probe_type =
"map_rom",
494 static struct resource stamp_flash_resource = {
501 .
name =
"physmap-flash",
504 .platform_data = &stamp_flash_data,
507 .resource = &stamp_flash_resource,
511 #if defined(CONFIG_MTD_M25P80) \
512 || defined(CONFIG_MTD_M25P80_MODULE)
515 .
name =
"bootloader(spi)",
520 .name =
"linux kernel(spi)",
524 .name =
"file system(spi)",
532 .parts = bfin_spi_flash_partitions,
533 .nr_parts =
ARRAY_SIZE(bfin_spi_flash_partitions),
543 #if defined(CONFIG_INPUT_AD714X_SPI) || defined(CONFIG_INPUT_AD714X_SPI_MODULE)
584 .slider = ad7147_spi_slider_plat,
585 .button = ad7147_spi_button_plat,
587 {0xFBFF, 0x1FFF, 0, 0x2626, 1600, 1600, 1600, 1600},
588 {0xEFFF, 0x1FFF, 0, 0x2626, 1650, 1650, 1650, 1650},
589 {0xFFFF, 0x1FFE, 0, 0x2626, 1650, 1650, 1650, 1650},
590 {0xFFFF, 0x1FFB, 0, 0x2626, 1650, 1650, 1650, 1650},
591 {0xFFFF, 0x1FEF, 0, 0x2626, 1650, 1650, 1650, 1650},
592 {0xFFFF, 0x1FBF, 0, 0x2626, 1650, 1650, 1650, 1650},
593 {0xFFFF, 0x1EFF, 0, 0x2626, 1650, 1650, 1650, 1650},
594 {0xFFFF, 0x1BFF, 0, 0x2626, 1600, 1600, 1600, 1600},
595 {0xFF7B, 0x3FFF, 0x506, 0x2626, 1100, 1100, 1150, 1150},
596 {0xFDFE, 0x3FFF, 0x606, 0x2626, 1100, 1100, 1150, 1150},
597 {0xFEBA, 0x1FFF, 0x1400, 0x2626, 1200, 1200, 1300, 1300},
598 {0xFFEF, 0x1FFF, 0x0, 0x2626, 1100, 1100, 1150, 1150},
600 .sys_cfg_reg = {0x2B2, 0x0, 0x3233, 0x819, 0x832, 0xCFF, 0xCFF, 0x0},
604 #if defined(CONFIG_INPUT_AD714X_I2C) || defined(CONFIG_INPUT_AD714X_I2C_MODULE)
630 .button = ad7142_i2c_button_plat,
634 {0xE7FF, 0x3FFF, 0x0005, 0x2626, 0x01F4, 0x01F4, 0x028A, 0x028A},
635 {0xFDBF, 0x3FFF, 0x0001, 0x2626, 0x01F4, 0x01F4, 0x028A, 0x028A},
636 {0xFFFF, 0x2DFF, 0x0001, 0x2626, 0x01F4, 0x01F4, 0x028A, 0x028A},
637 {0xFFFF, 0x37BF, 0x0001, 0x2626, 0x01F4, 0x01F4, 0x028A, 0x028A},
638 {0xFFFF, 0x3FFF, 0x0000, 0x0606, 0x01F4, 0x01F4, 0x0320, 0x0320},
639 {0xFFFF, 0x3FFF, 0x0000, 0x0606, 0x01F4, 0x01F4, 0x0320, 0x0320},
640 {0xFFFF, 0x3FFF, 0x0000, 0x0606, 0x01F4, 0x01F4, 0x0320, 0x0320},
641 {0xFFFF, 0x3FFF, 0x0000, 0x0606, 0x01F4, 0x01F4, 0x0320, 0x0320},
642 {0xFFFF, 0x3FFF, 0x0000, 0x0606, 0x01F4, 0x01F4, 0x0320, 0x0320},
643 {0xFFFF, 0x3FFF, 0x0000, 0x0606, 0x01F4, 0x01F4, 0x0320, 0x0320},
644 {0xFFFF, 0x3FFF, 0x0000, 0x0606, 0x01F4, 0x01F4, 0x0320, 0x0320},
645 {0xFFFF, 0x3FFF, 0x0000, 0x0606, 0x01F4, 0x01F4, 0x0320, 0x0320},
647 .sys_cfg_reg = {0x0B2, 0x0, 0x690, 0x664, 0x290F, 0xF, 0xF, 0x0},
651 #if defined(CONFIG_AD2S90) || defined(CONFIG_AD2S90_MODULE)
657 #if defined(CONFIG_AD2S120X) || defined(CONFIG_AD2S120X_MODULE)
658 static unsigned short ad2s120x_platform_data[] = {
668 #if defined(CONFIG_AD2S1210) || defined(CONFIG_AD2S1210_MODULE)
672 # if defined(CONFIG_AD2S1210_GPIO_INPUT) || defined(CONFIG_AD2S1210_GPIO_OUTPUT)
684 #if defined(CONFIG_AD7314) || defined(CONFIG_AD7314_MODULE)
690 #if defined(CONFIG_AD7816) || defined(CONFIG_AD7816_MODULE)
691 static unsigned short ad7816_platform_data[] = {
703 #if defined(CONFIG_ADT7310) || defined(CONFIG_ADT7310_MODULE)
704 static unsigned long adt7310_platform_data[3] = {
716 #if defined(CONFIG_AD7298) || defined(CONFIG_AD7298_MODULE)
723 #if defined(CONFIG_ADT7316_SPI) || defined(CONFIG_ADT7316_SPI_MODULE)
724 static unsigned long adt7316_spi_data[2] = {
734 #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
735 #define MMC_SPI_CARD_DETECT_INT IRQ_PF5
737 static int bfin_mmc_spi_init(
struct device *
dev,
740 return request_irq(MMC_SPI_CARD_DETECT_INT, detect_int,
744 static void bfin_mmc_spi_exit(
struct device *dev,
void *
data)
746 free_irq(MMC_SPI_CARD_DETECT_INT, data);
750 .
init = bfin_mmc_spi_init,
751 .exit = bfin_mmc_spi_exit,
761 #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE)
765 .vref_delay_usecs = 50,
768 .pressure_max = 1000,
770 .stopacq_polarity = 1,
771 .first_conversion_delay = 3,
772 .acquisition_time = 1,
774 .pen_down_acc_interval = 1,
778 #if defined(CONFIG_TOUCHSCREEN_AD7879) || defined(CONFIG_TOUCHSCREEN_AD7879_MODULE)
783 .pressure_max = 10000,
785 .first_conversion_delay = 3,
786 .acquisition_time = 1,
789 .pen_down_acc_interval = 255,
795 #if defined(CONFIG_INPUT_ADXL34X) || defined(CONFIG_INPUT_ADXL34X_MODULE)
801 .tap_threshold = 0x31,
802 .tap_duration = 0x10,
806 .act_axis_control = 0xFF,
807 .activity_threshold = 5,
808 .inactivity_threshold = 3,
809 .inactivity_time = 4,
810 .free_fall_threshold = 0x7,
811 .free_fall_time = 0x20,
834 #if defined(CONFIG_ENC28J60) || defined(CONFIG_ENC28J60_MODULE)
840 #if defined(CONFIG_ADF702X) || defined(CONFIG_ADF702X_MODULE)
841 #include <linux/spi/adf702x.h>
842 #define TXREG 0x0160A470
843 static const u32 adf7021_regs[] = {
862 static struct adf702x_platform_data adf7021_platform_data = {
870 .adf702x_model = MODEL_ADF7021,
871 .adf702x_regs = adf7021_regs,
874 static inline void adf702x_mac_init(
void)
876 eth_random_addr(adf7021_platform_data.mac_addr);
879 static inline void adf702x_mac_init(
void) {}
882 #if defined(CONFIG_TOUCHSCREEN_ADS7846) || defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE)
884 static int ads7873_get_pendown_state(
void)
896 .debounce_tol = (~0),
901 #if defined(CONFIG_MTD_DATAFLASH) \
902 || defined(CONFIG_MTD_DATAFLASH_MODULE)
904 static struct mtd_partition bfin_spi_dataflash_partitions[] = {
906 .
name =
"bootloader(spi)",
911 .name =
"linux kernel(spi)",
915 .name =
"file system(spi)",
922 .
name =
"SPI Dataflash",
923 .parts = bfin_spi_dataflash_partitions,
924 .nr_parts =
ARRAY_SIZE(bfin_spi_dataflash_partitions),
933 #if defined(CONFIG_AD7476) || defined(CONFIG_AD7476_MODULE)
940 #if defined(CONFIG_MTD_M25P80) \
941 || defined(CONFIG_MTD_M25P80_MODULE)
944 .modalias =
"m25p80",
945 .max_speed_hz = 25000000,
948 .platform_data = &bfin_spi_flash_data,
949 .controller_data = &spi_flash_chip_info,
953 #if defined(CONFIG_MTD_DATAFLASH) \
954 || defined(CONFIG_MTD_DATAFLASH_MODULE)
956 .modalias =
"mtd_dataflash",
957 .max_speed_hz = 33250000,
960 .platform_data = &bfin_spi_dataflash_data,
961 .controller_data = &data_flash_chip_info,
966 #if defined(CONFIG_SND_BF5XX_SOC_AD1836) \
967 || defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE)
969 .modalias =
"ad1836",
970 .max_speed_hz = 3125000,
973 .platform_data =
"ad1836",
978 #ifdef CONFIG_SND_SOC_AD193X_SPI
980 .modalias =
"ad193x",
981 .max_speed_hz = 3125000,
988 #if defined(CONFIG_SND_SOC_ADAV80X) || defined(CONFIG_SND_SOC_ADV80X_MODULE)
990 .modalias =
"adav801",
991 .max_speed_hz = 3125000,
998 #if defined(CONFIG_INPUT_AD714X_SPI) || defined(CONFIG_INPUT_AD714X_SPI_MODULE)
1000 .modalias =
"ad714x_captouch",
1001 .max_speed_hz = 1000000,
1006 .platform_data = &ad7147_spi_platform_data,
1010 #if defined(CONFIG_AD2S90) || defined(CONFIG_AD2S90_MODULE)
1012 .modalias =
"ad2s90",
1016 .platform_data =
NULL,
1017 .controller_data = &ad2s90_spi_chip_info,
1021 #if defined(CONFIG_AD2S120X) || defined(CONFIG_AD2S120X_MODULE)
1023 .modalias =
"ad2s120x",
1026 .platform_data = ad2s120x_platform_data,
1027 .controller_data = &ad2s120x_spi_chip_info,
1031 #if defined(CONFIG_AD2S1210) || defined(CONFIG_AD2S1210_MODULE)
1033 .modalias =
"ad2s1210",
1034 .max_speed_hz = 8192000,
1037 .platform_data = ad2s1210_platform_data,
1038 .controller_data = &ad2s1210_spi_chip_info,
1042 #if defined(CONFIG_AD7314) || defined(CONFIG_AD7314_MODULE)
1044 .modalias =
"ad7314",
1045 .max_speed_hz = 1000000,
1048 .controller_data = &ad7314_spi_chip_info,
1053 #if defined(CONFIG_AD7816) || defined(CONFIG_AD7816_MODULE)
1055 .modalias =
"ad7818",
1056 .max_speed_hz = 1000000,
1059 .platform_data = ad7816_platform_data,
1060 .controller_data = &ad7816_spi_chip_info,
1065 #if defined(CONFIG_ADT7310) || defined(CONFIG_ADT7310_MODULE)
1067 .modalias =
"adt7310",
1068 .max_speed_hz = 1000000,
1072 .platform_data = adt7310_platform_data,
1073 .controller_data = &adt7310_spi_chip_info,
1078 #if defined(CONFIG_AD7298) || defined(CONFIG_AD7298_MODULE)
1080 .modalias =
"ad7298",
1081 .max_speed_hz = 1000000,
1084 .platform_data = ad7298_platform_data,
1089 #if defined(CONFIG_ADT7316_SPI) || defined(CONFIG_ADT7316_SPI_MODULE)
1091 .modalias =
"adt7316",
1092 .max_speed_hz = 1000000,
1096 .platform_data = adt7316_spi_data,
1097 .controller_data = &adt7316_spi_chip_info,
1102 #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
1104 .modalias =
"mmc_spi",
1105 .max_speed_hz = 20000000,
1108 .platform_data = &bfin_mmc_spi_pdata,
1109 .controller_data = &mmc_spi_chip_info,
1113 #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE)
1115 .modalias =
"ad7877",
1116 .platform_data = &bfin_ad7877_ts_info,
1118 .max_speed_hz = 12500000,
1123 #if defined(CONFIG_TOUCHSCREEN_AD7879_SPI) || defined(CONFIG_TOUCHSCREEN_AD7879_SPI_MODULE)
1125 .modalias =
"ad7879",
1126 .platform_data = &bfin_ad7879_ts_info,
1128 .max_speed_hz = 5000000,
1134 #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)
1136 .modalias =
"spidev",
1137 .max_speed_hz = 3125000,
1142 #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE)
1144 .modalias =
"bfin-lq035q1-spi",
1145 .max_speed_hz = 20000000,
1151 #if defined(CONFIG_ENC28J60) || defined(CONFIG_ENC28J60_MODULE)
1153 .modalias =
"enc28j60",
1154 .max_speed_hz = 20000000,
1158 .controller_data = &enc28j60_spi_chip_info,
1162 #if defined(CONFIG_INPUT_ADXL34X_SPI) || defined(CONFIG_INPUT_ADXL34X_SPI_MODULE)
1164 .modalias =
"adxl34x",
1165 .platform_data = &adxl34x_info,
1167 .max_speed_hz = 5000000,
1173 #if defined(CONFIG_ADF702X) || defined(CONFIG_ADF702X_MODULE)
1175 .modalias =
"adf702x",
1176 .max_speed_hz = 16000000,
1179 .platform_data = &adf7021_platform_data,
1183 #if defined(CONFIG_TOUCHSCREEN_ADS7846) || defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE)
1185 .modalias =
"ads7846",
1186 .max_speed_hz = 2000000,
1190 .platform_data = &ad7873_pdata,
1194 #if defined(CONFIG_AD7476) \
1195 || defined(CONFIG_AD7476_MODULE)
1197 .modalias =
"ad7476",
1198 .max_speed_hz = 6250000,
1201 .platform_data =
NULL,
1202 .controller_data = &spi_ad7476_chip_info,
1206 #if defined(CONFIG_ADE7753) \
1207 || defined(CONFIG_ADE7753_MODULE)
1209 .modalias =
"ade7753",
1210 .max_speed_hz = 1000000,
1213 .platform_data =
NULL,
1217 #if defined(CONFIG_ADE7754) \
1218 || defined(CONFIG_ADE7754_MODULE)
1220 .modalias =
"ade7754",
1221 .max_speed_hz = 1000000,
1224 .platform_data =
NULL,
1228 #if defined(CONFIG_ADE7758) \
1229 || defined(CONFIG_ADE7758_MODULE)
1231 .modalias =
"ade7758",
1232 .max_speed_hz = 1000000,
1235 .platform_data =
NULL,
1239 #if defined(CONFIG_ADE7759) \
1240 || defined(CONFIG_ADE7759_MODULE)
1242 .modalias =
"ade7759",
1243 .max_speed_hz = 1000000,
1246 .platform_data =
NULL,
1250 #if defined(CONFIG_ADE7854_SPI) \
1251 || defined(CONFIG_ADE7854_SPI_MODULE)
1253 .modalias =
"ade7854",
1254 .max_speed_hz = 1000000,
1257 .platform_data =
NULL,
1261 #if defined(CONFIG_ADIS16060) \
1262 || defined(CONFIG_ADIS16060_MODULE)
1264 .modalias =
"adis16060_r",
1265 .max_speed_hz = 2900000,
1268 .platform_data =
NULL,
1272 .modalias =
"adis16060_w",
1273 .max_speed_hz = 2900000,
1276 .platform_data =
NULL,
1280 #if defined(CONFIG_ADIS16130) \
1281 || defined(CONFIG_ADIS16130_MODULE)
1283 .modalias =
"adis16130",
1284 .max_speed_hz = 1000000,
1287 .platform_data =
NULL,
1291 #if defined(CONFIG_ADIS16201) \
1292 || defined(CONFIG_ADIS16201_MODULE)
1294 .modalias =
"adis16201",
1295 .max_speed_hz = 1000000,
1298 .platform_data =
NULL,
1303 #if defined(CONFIG_ADIS16203) \
1304 || defined(CONFIG_ADIS16203_MODULE)
1306 .modalias =
"adis16203",
1307 .max_speed_hz = 1000000,
1310 .platform_data =
NULL,
1315 #if defined(CONFIG_ADIS16204) \
1316 || defined(CONFIG_ADIS16204_MODULE)
1318 .modalias =
"adis16204",
1319 .max_speed_hz = 1000000,
1322 .platform_data =
NULL,
1327 #if defined(CONFIG_ADIS16209) \
1328 || defined(CONFIG_ADIS16209_MODULE)
1330 .modalias =
"adis16209",
1331 .max_speed_hz = 1000000,
1334 .platform_data =
NULL,
1339 #if defined(CONFIG_ADIS16220) \
1340 || defined(CONFIG_ADIS16220_MODULE)
1342 .modalias =
"adis16220",
1343 .max_speed_hz = 2000000,
1346 .platform_data =
NULL,
1351 #if defined(CONFIG_ADIS16240) \
1352 || defined(CONFIG_ADIS16240_MODULE)
1354 .modalias =
"adis16240",
1355 .max_speed_hz = 1500000,
1358 .platform_data =
NULL,
1363 #if defined(CONFIG_ADIS16260) \
1364 || defined(CONFIG_ADIS16260_MODULE)
1366 .modalias =
"adis16260",
1367 .max_speed_hz = 1500000,
1370 .platform_data =
NULL,
1375 #if defined(CONFIG_ADIS16261) \
1376 || defined(CONFIG_ADIS16261_MODULE)
1378 .modalias =
"adis16261",
1379 .max_speed_hz = 2500000,
1382 .platform_data =
NULL,
1386 #if defined(CONFIG_ADIS16300) \
1387 || defined(CONFIG_ADIS16300_MODULE)
1389 .modalias =
"adis16300",
1390 .max_speed_hz = 1000000,
1393 .platform_data =
NULL,
1398 #if defined(CONFIG_ADIS16350) \
1399 || defined(CONFIG_ADIS16350_MODULE)
1401 .modalias =
"adis16364",
1402 .max_speed_hz = 1000000,
1405 .platform_data =
NULL,
1410 #if defined(CONFIG_ADIS16400) \
1411 || defined(CONFIG_ADIS16400_MODULE)
1413 .modalias =
"adis16400",
1414 .max_speed_hz = 1000000,
1417 .platform_data =
NULL,
1423 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
1432 static struct resource bfin_spi0_resource[] = {
1453 .num_resources =
ARRAY_SIZE(bfin_spi0_resource),
1454 .resource = bfin_spi0_resource,
1456 .platform_data = &bfin_spi0_info,
1461 #if defined(CONFIG_SPI_BFIN_SPORT) || defined(CONFIG_SPI_BFIN_SPORT_MODULE)
1471 static struct resource bfin_sport_spi0_resource[] = {
1485 .
name =
"bfin-sport-spi",
1487 .num_resources =
ARRAY_SIZE(bfin_sport_spi0_resource),
1488 .resource = bfin_sport_spi0_resource,
1490 .platform_data = &bfin_sport_spi0_info,
1501 static struct resource bfin_sport_spi1_resource[] = {
1515 .
name =
"bfin-sport-spi",
1517 .num_resources =
ARRAY_SIZE(bfin_sport_spi1_resource),
1518 .resource = bfin_sport_spi1_resource,
1520 .platform_data = &bfin_sport_spi1_info,
1526 #if defined(CONFIG_FB_BF537_LQ035) || defined(CONFIG_FB_BF537_LQ035_MODULE)
1528 .
name =
"bf537_lq035",
1532 #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE)
1542 static struct resource bfin_lq035q1_resources[] = {
1551 .
name =
"bfin-lq035q1",
1553 .num_resources =
ARRAY_SIZE(bfin_lq035q1_resources),
1554 .resource = bfin_lq035q1_resources,
1556 .platform_data = &bfin_lq035q1_data,
1561 #if defined(CONFIG_VIDEO_BLACKFIN_CAPTURE) \
1562 || defined(CONFIG_VIDEO_BLACKFIN_CAPTURE_MODULE)
1563 #include <linux/videodev2.h>
1567 static const unsigned short ppi_req[] = {
1582 #if defined(CONFIG_VIDEO_VS6624) \
1583 || defined(CONFIG_VIDEO_VS6624_MODULE)
1600 static const unsigned vs6624_ce_pin =
GPIO_PF10;
1604 .inputs = vs6624_inputs,
1606 .routes = vs6624_routes,
1607 .i2c_adapter_id = 0,
1611 .platform_data = (
void *)&vs6624_ce_pin,
1613 .ppi_info = &ppi_info,
1619 .
name =
"bfin_capture",
1621 .platform_data = &bfin_capture_data,
1626 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
1627 #ifdef CONFIG_SERIAL_BFIN_UART0
1628 static struct resource bfin_uart0_resources[] = {
1659 #ifdef CONFIG_BFIN_UART0_CTSRTS
1673 static unsigned short bfin_uart0_peripherals[] = {
1678 .
name =
"bfin-uart",
1680 .num_resources =
ARRAY_SIZE(bfin_uart0_resources),
1681 .resource = bfin_uart0_resources,
1683 .platform_data = &bfin_uart0_peripherals,
1687 #ifdef CONFIG_SERIAL_BFIN_UART1
1688 static struct resource bfin_uart1_resources[] = {
1721 static unsigned short bfin_uart1_peripherals[] = {
1726 .
name =
"bfin-uart",
1728 .num_resources =
ARRAY_SIZE(bfin_uart1_resources),
1729 .resource = bfin_uart1_resources,
1731 .platform_data = &bfin_uart1_peripherals,
1737 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
1738 #ifdef CONFIG_BFIN_SIR0
1739 static struct resource bfin_sir0_resources[] = {
1741 .
start = 0xFFC00400,
1760 .num_resources =
ARRAY_SIZE(bfin_sir0_resources),
1761 .resource = bfin_sir0_resources,
1764 #ifdef CONFIG_BFIN_SIR1
1765 static struct resource bfin_sir1_resources[] = {
1767 .
start = 0xFFC02000,
1786 .num_resources =
ARRAY_SIZE(bfin_sir1_resources),
1787 .resource = bfin_sir1_resources,
1792 #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
1795 static struct resource bfin_twi0_resource[] = {
1809 .
name =
"i2c-bfin-twi",
1811 .num_resources =
ARRAY_SIZE(bfin_twi0_resource),
1812 .resource = bfin_twi0_resource,
1814 .platform_data = &bfin_twi0_pins,
1819 #if defined(CONFIG_KEYBOARD_ADP5588) || defined(CONFIG_KEYBOARD_ADP5588_MODULE)
1898 .keymap = adp5588_keymap,
1904 #if defined(CONFIG_PMIC_ADP5520) || defined(CONFIG_PMIC_ADP5520_MODULE)
1933 static struct led_info adp5520_leds[] = {
1935 .
name =
"adp5520-led1",
1936 .default_trigger =
"none",
1939 #ifdef ADP5520_EN_ALL_LEDS
1941 .name =
"adp5520-led2",
1942 .default_trigger =
"none",
1946 .name =
"adp5520-led3",
1947 .default_trigger =
"none",
1955 .leds = adp5520_leds,
1997 .keymap = adp5520_keymap,
2008 .leds = &adp5520_leds_data,
2009 .gpio = &adp5520_gpio_data,
2010 .keys = &adp5520_keys_data,
2015 #if defined(CONFIG_GPIO_ADP5588) || defined(CONFIG_GPIO_ADP5588_MODULE)
2018 .pullup_dis_mask = 0,
2022 #if defined(CONFIG_BACKLIGHT_ADP8870) || defined(CONFIG_BACKLIGHT_ADP8870_MODULE)
2024 static struct led_info adp8870_leds[] = {
2026 .
name =
"adp8870-led7",
2027 .default_trigger =
"none",
2065 .leds = adp8870_leds,
2074 #if defined(CONFIG_BACKLIGHT_ADP8860) || defined(CONFIG_BACKLIGHT_ADP8860_MODULE)
2076 static struct led_info adp8860_leds[] = {
2078 .
name =
"adp8860-led7",
2079 .default_trigger =
"none",
2107 .leds = adp8860_leds,
2116 #if defined(CONFIG_REGULATOR_AD5398) || defined(CONFIG_REGULATOR_AD5398_MODULE)
2123 .name =
"current range",
2127 .num_consumer_supplies = 1,
2128 .consumer_supplies = &ad5398_consumer,
2131 #if defined(CONFIG_REGULATOR_VIRTUAL_CONSUMER) || \
2132 defined(CONFIG_REGULATOR_VIRTUAL_CONSUMER_MODULE)
2134 .
name =
"reg-virt-consumer",
2137 .platform_data =
"current",
2141 #if defined(CONFIG_REGULATOR_USERSPACE_CONSUMER) || \
2142 defined(CONFIG_REGULATOR_USERSPACE_CONSUMER_MODULE)
2150 .supplies = &ad5398_bulk_data,
2154 .
name =
"reg-userspace-consumer",
2157 .platform_data = &ad5398_userspace_comsumer_data,
2163 #if defined(CONFIG_ADT7410) || defined(CONFIG_ADT7410_MODULE)
2165 static unsigned long adt7410_platform_data[2] = {
2170 #if defined(CONFIG_ADT7316_I2C) || defined(CONFIG_ADT7316_I2C_MODULE)
2172 static unsigned long adt7316_i2c_data[2] = {
2178 static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
2179 #ifdef CONFIG_SND_SOC_AD193X_I2C
2185 #if defined(CONFIG_SND_SOC_ADAV80X) || defined(CONFIG_SND_SOC_ADAV80X_MODULE)
2191 #if defined(CONFIG_INPUT_AD714X_I2C) || defined(CONFIG_INPUT_AD714X_I2C_MODULE)
2195 .platform_data = (
void *)&ad7142_i2c_platform_data,
2199 #
if defined(CONFIG_AD7150) || defined(CONFIG_AD7150_MODULE)
2206 #if defined(CONFIG_AD7152) || defined(CONFIG_AD7152_MODULE)
2212 #if defined(CONFIG_AD774X) || defined(CONFIG_AD774X_MODULE)
2218 #if defined(CONFIG_ADE7854_I2C) || defined(CONFIG_ADE7854_I2C_MODULE)
2224 #if defined(CONFIG_ADT75) || defined(CONFIG_ADT75_MODULE)
2231 #if defined(CONFIG_ADT7410) || defined(CONFIG_ADT7410_MODULE)
2236 .platform_data = (
void *)&adt7410_platform_data,
2240 #
if defined(CONFIG_AD7291) || defined(CONFIG_AD7291_MODULE)
2247 #if defined(CONFIG_ADT7316_I2C) || defined(CONFIG_ADT7316_I2C_MODULE)
2251 .platform_data = (
void *)&adt7316_i2c_data,
2255 #
if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_BFIN_TWI_LCD_MODULE)
2260 #if defined(CONFIG_INPUT_PCF8574) || defined(CONFIG_INPUT_PCF8574_MODULE)
2266 #if defined(CONFIG_TOUCHSCREEN_AD7879_I2C) || defined(CONFIG_TOUCHSCREEN_AD7879_I2C_MODULE)
2270 .platform_data = (
void *)&bfin_ad7879_ts_info,
2273 #
if defined(CONFIG_KEYBOARD_ADP5588) || defined(CONFIG_KEYBOARD_ADP5588_MODULE)
2277 .platform_data = (
void *)&adp5588_kpad_data,
2280 #
if defined(CONFIG_PMIC_ADP5520) || defined(CONFIG_PMIC_ADP5520_MODULE)
2284 .platform_data = (
void *)&adp5520_pdev_data,
2287 #
if defined(CONFIG_INPUT_ADXL34X_I2C) || defined(CONFIG_INPUT_ADXL34X_I2C_MODULE)
2291 .platform_data = (
void *)&adxl34x_info,
2294 #
if defined(CONFIG_GPIO_ADP5588) || defined(CONFIG_GPIO_ADP5588_MODULE)
2297 .platform_data = (
void *)&adp5588_gpio_data,
2300 #
if defined(CONFIG_FB_BFIN_7393) || defined(CONFIG_FB_BFIN_7393_MODULE)
2305 #if defined(CONFIG_FB_BF537_LQ035) || defined(CONFIG_FB_BF537_LQ035_MODULE)
2310 #if defined(CONFIG_BACKLIGHT_ADP8870) || defined(CONFIG_BACKLIGHT_ADP8870_MODULE)
2313 .platform_data = (
void *)&adp8870_pdata,
2316 #
if defined(CONFIG_SND_SOC_ADAU1371) || defined(CONFIG_SND_SOC_ADAU1371_MODULE)
2321 #if defined(CONFIG_SND_SOC_ADAU1761) || defined(CONFIG_SND_SOC_ADAU1761_MODULE)
2326 #if defined(CONFIG_SND_SOC_ADAU1361) || defined(CONFIG_SND_SOC_ADAU1361_MODULE)
2331 #if defined(CONFIG_SND_SOC_ADAU1701) || defined(CONFIG_SND_SOC_ADAU1701_MODULE)
2336 #if defined(CONFIG_AD525X_DPOT) || defined(CONFIG_AD525X_DPOT_MODULE)
2341 #if defined(CONFIG_SND_SOC_SSM2602) || defined(CONFIG_SND_SOC_SSM2602_MODULE)
2346 #if defined(CONFIG_REGULATOR_AD5398) || defined(CONFIG_REGULATOR_AD5398_MODULE)
2349 .platform_data = (
void *)&ad5398_regulator_data,
2352 #
if defined(CONFIG_BACKLIGHT_ADP8860) || defined(CONFIG_BACKLIGHT_ADP8860_MODULE)
2355 .platform_data = (
void *)&adp8860_pdata,
2358 #
if defined(CONFIG_SND_SOC_ADAU1373) || defined(CONFIG_SND_SOC_ADAU1373_MODULE)
2363 #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_BFIN_TWI_LCD_MODULE)
2369 #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) \
2370 || defined(CONFIG_BFIN_SPORT) || defined(CONFIG_BFIN_SPORT_MODULE)
2371 unsigned short bfin_sport0_peripherals[] = {
2376 #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
2377 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
2378 static struct resource bfin_sport0_uart_resources[] = {
2397 .
name =
"bfin-sport-uart",
2399 .num_resources =
ARRAY_SIZE(bfin_sport0_uart_resources),
2400 .resource = bfin_sport0_uart_resources,
2402 .platform_data = &bfin_sport0_peripherals,
2406 #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
2407 static struct resource bfin_sport1_uart_resources[] = {
2425 static unsigned short bfin_sport1_peripherals[] = {
2431 .
name =
"bfin-sport-uart",
2433 .num_resources =
ARRAY_SIZE(bfin_sport1_uart_resources),
2434 .resource = bfin_sport1_uart_resources,
2436 .platform_data = &bfin_sport1_peripherals,
2441 #if defined(CONFIG_BFIN_SPORT) || defined(CONFIG_BFIN_SPORT_MODULE)
2442 static struct resource bfin_sport0_resources[] = {
2475 .
name =
"bfin_sport_raw",
2477 .num_resources =
ARRAY_SIZE(bfin_sport0_resources),
2478 .resource = bfin_sport0_resources,
2480 .platform_data = &bfin_sport0_peripherals,
2484 #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE)
2485 #define CF_IDE_NAND_CARD_USE_HDD_INTERFACE
2488 #ifdef CF_IDE_NAND_CARD_USE_HDD_INTERFACE
2489 #define PATA_INT IRQ_PF5
2495 static struct resource bfin_pata_resources[] = {
2497 .
start = 0x20314020,
2502 .start = 0x2031401C,
2512 #elif defined(CF_IDE_NAND_CARD_USE_CF_IN_COMMON_MEMORY_MODE)
2519 static struct resource bfin_pata_resources[] = {
2521 .
start = 0x20211800,
2526 .start = 0x2021180E,
2534 .
name =
"pata_platform",
2536 .num_resources =
ARRAY_SIZE(bfin_pata_resources),
2537 .resource = bfin_pata_resources,
2539 .platform_data = &bfin_pata_platform_data,
2544 static const unsigned int cclk_vlev_datasheet[] =
2559 .tuple_tab = cclk_vlev_datasheet,
2561 .vr_settling_time = 25 ,
2565 .name =
"bfin dpmc",
2567 .platform_data = &bfin_dmpc_vreg_data,
2571 #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) || \
2572 defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE) || \
2573 defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE)
2575 #define SPORT_REQ(x) \
2576 [x] = {P_SPORT##x##_TFS, P_SPORT##x##_DTPRI, P_SPORT##x##_TSCLK, \
2577 P_SPORT##x##_RFS, P_SPORT##x##_DRPRI, P_SPORT##x##_RSCLK, 0}
2579 static const u16 bfin_snd_pin[][7] = {
2586 .
pin_req = &bfin_snd_pin[0][0],
2589 .pin_req = &bfin_snd_pin[1][0],
2593 #define BFIN_SND_RES(x) \
2596 .start = SPORT##x##_TCR1, \
2597 .end = SPORT##x##_TCR1, \
2598 .flags = IORESOURCE_MEM \
2601 .start = CH_SPORT##x##_RX, \
2602 .end = CH_SPORT##x##_RX, \
2603 .flags = IORESOURCE_DMA, \
2606 .start = CH_SPORT##x##_TX, \
2607 .end = CH_SPORT##x##_TX, \
2608 .flags = IORESOURCE_DMA, \
2611 .start = IRQ_SPORT##x##_ERROR, \
2612 .end = IRQ_SPORT##x##_ERROR, \
2613 .flags = IORESOURCE_IRQ, \
2617 static struct resource bfin_snd_resources[][4] = {
2623 #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE)
2625 .
name =
"bfin-i2s-pcm-audio",
2630 #if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE)
2632 .
name =
"bfin-tdm-pcm-audio",
2637 #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE)
2639 .
name =
"bfin-ac97-pcm-audio",
2644 #if defined(CONFIG_SND_BF5XX_SOC_AD1836) \
2645 || defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE)
2646 static const char *
const ad1836_link[] = {
2651 .
name =
"bfin-snd-ad1836",
2654 .platform_data = (
void *)ad1836_link,
2659 #if defined(CONFIG_SND_BF5XX_SOC_AD73311) || \
2660 defined(CONFIG_SND_BF5XX_SOC_AD73311_MODULE)
2661 static const unsigned ad73311_gpio[] = {
2666 .
name =
"bfin-snd-ad73311",
2669 .platform_data = (
void *)ad73311_gpio,
2674 #if defined(CONFIG_SND_SOC_AD73311) || defined(CONFIG_SND_SOC_AD73311_MODULE)
2681 #if defined(CONFIG_SND_SOC_BFIN_EVAL_ADAV80X) || \
2682 defined(CONFIG_SND_SOC_BFIN_EVAL_ADAV80X_MODULE)
2684 .
name =
"bfin-eval-adav801",
2689 #if defined(CONFIG_SND_BF5XX_SOC_I2S) || defined(CONFIG_SND_BF5XX_SOC_I2S_MODULE)
2692 .id = CONFIG_SND_BF5XX_SPORT_NUM,
2693 .num_resources =
ARRAY_SIZE(bfin_snd_resources[CONFIG_SND_BF5XX_SPORT_NUM]),
2694 .resource = bfin_snd_resources[CONFIG_SND_BF5XX_SPORT_NUM],
2696 .platform_data = &bfin_snd_data[CONFIG_SND_BF5XX_SPORT_NUM],
2701 #if defined(CONFIG_SND_BF5XX_SOC_TDM) || defined(CONFIG_SND_BF5XX_SOC_TDM_MODULE)
2704 .id = CONFIG_SND_BF5XX_SPORT_NUM,
2705 .num_resources =
ARRAY_SIZE(bfin_snd_resources[CONFIG_SND_BF5XX_SPORT_NUM]),
2706 .resource = bfin_snd_resources[CONFIG_SND_BF5XX_SPORT_NUM],
2708 .platform_data = &bfin_snd_data[CONFIG_SND_BF5XX_SPORT_NUM],
2713 #if defined(CONFIG_SND_BF5XX_SOC_AC97) || defined(CONFIG_SND_BF5XX_SOC_AC97_MODULE)
2715 .
name =
"bfin-ac97",
2716 .id = CONFIG_SND_BF5XX_SPORT_NUM,
2717 .num_resources =
ARRAY_SIZE(bfin_snd_resources[CONFIG_SND_BF5XX_SPORT_NUM]),
2718 .resource = bfin_snd_resources[CONFIG_SND_BF5XX_SPORT_NUM],
2720 .platform_data = &bfin_snd_data[CONFIG_SND_BF5XX_SPORT_NUM],
2725 #if defined(CONFIG_REGULATOR_FIXED_VOLTAGE) || defined(CONFIG_REGULATOR_FIXED_VOLTAGE_MODULE)
2726 #define REGULATOR_ADP122 "adp122"
2727 #define REGULATOR_ADP122_UV 2500000
2730 .
supply = REGULATOR_ADP122,
2735 .name = REGULATOR_ADP122,
2737 .min_uV = REGULATOR_ADP122_UV,
2738 .max_uV = REGULATOR_ADP122_UV,
2742 .num_consumer_supplies = 1,
2743 .consumer_supplies = &adp122_consumers,
2748 .microvolts = REGULATOR_ADP122_UV,
2751 .enabled_at_boot = 0,
2752 .init_data = &adp_switch_regulator_data,
2756 .
name =
"reg-fixed-voltage",
2759 .platform_data = &adp_switch_pdata,
2763 #if defined(CONFIG_REGULATOR_USERSPACE_CONSUMER) || \
2764 defined(CONFIG_REGULATOR_USERSPACE_CONSUMER_MODULE)
2766 .
supply = REGULATOR_ADP122,
2770 .
name = REGULATOR_ADP122,
2772 .supplies = &adp122_bulk_data,
2776 .
name =
"reg-userspace-consumer",
2779 .platform_data = &adp122_userspace_comsumer_data,
2785 #if defined(CONFIG_IIO_GPIO_TRIGGER) || \
2786 defined(CONFIG_IIO_GPIO_TRIGGER_MODULE)
2788 static struct resource iio_gpio_trigger_resources[] = {
2797 .
name =
"iio_gpio_trigger",
2798 .num_resources =
ARRAY_SIZE(iio_gpio_trigger_resources),
2799 .resource = iio_gpio_trigger_resources,
2803 #if defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1373) || \
2804 defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1373_MODULE)
2806 .
name =
"bfin-eval-adau1373",
2810 #if defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1701) || \
2811 defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1701_MODULE)
2813 .
name =
"bfin-eval-adau1701",
2820 #if defined(CONFIG_BFIN_SPORT) || defined(CONFIG_BFIN_SPORT_MODULE)
2821 &bfin_sport0_device,
2823 #if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE)
2824 &bfin_pcmcia_cf_device,
2827 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
2831 #if defined(CONFIG_USB_SL811_HCD) || defined(CONFIG_USB_SL811_HCD_MODULE)
2835 #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
2836 &isp1362_hcd_device,
2839 #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE)
2840 &bfin_isp1760_device,
2843 #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
2847 #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE)
2851 #if defined(CONFIG_CAN_BFIN) || defined(CONFIG_CAN_BFIN_MODULE)
2855 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
2860 #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
2861 &net2272_bfin_device,
2864 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
2868 #if defined(CONFIG_SPI_BFIN_SPORT) || defined(CONFIG_SPI_BFIN_SPORT_MODULE)
2869 &bfin_sport_spi0_device,
2870 &bfin_sport_spi1_device,
2873 #if defined(CONFIG_FB_BF537_LQ035) || defined(CONFIG_FB_BF537_LQ035_MODULE)
2877 #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE)
2878 &bfin_lq035q1_device,
2881 #if defined(CONFIG_VIDEO_BLACKFIN_CAPTURE) \
2882 || defined(CONFIG_VIDEO_BLACKFIN_CAPTURE_MODULE)
2883 &bfin_capture_device,
2886 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
2887 #ifdef CONFIG_SERIAL_BFIN_UART0
2890 #ifdef CONFIG_SERIAL_BFIN_UART1
2895 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
2896 #ifdef CONFIG_BFIN_SIR0
2899 #ifdef CONFIG_BFIN_SIR1
2904 #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
2905 &i2c_bfin_twi_device,
2908 #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
2909 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
2910 &bfin_sport0_uart_device,
2912 #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
2913 &bfin_sport1_uart_device,
2917 #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE)
2921 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
2922 &bfin_device_gpiokeys,
2925 #if defined(CONFIG_MTD_NAND_PLATFORM) || defined(CONFIG_MTD_NAND_PLATFORM_MODULE)
2926 &bfin_async_nand_device,
2929 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
2930 &stamp_flash_device,
2933 #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE)
2937 #if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE)
2941 #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE)
2945 #if defined(CONFIG_SND_BF5XX_SOC_AD1836) || \
2946 defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE)
2947 &bfin_ad1836_machine,
2950 #if defined(CONFIG_SND_BF5XX_SOC_AD73311) || \
2951 defined(CONFIG_SND_BF5XX_SOC_AD73311_MODULE)
2952 &bfin_ad73311_machine,
2955 #if defined(CONFIG_SND_SOC_AD73311) || defined(CONFIG_SND_SOC_AD73311_MODULE)
2956 &bfin_ad73311_codec_device,
2959 #if defined(CONFIG_SND_BF5XX_SOC_I2S) || defined(CONFIG_SND_BF5XX_SOC_I2S_MODULE)
2963 #if defined(CONFIG_SND_BF5XX_SOC_TDM) || defined(CONFIG_SND_BF5XX_SOC_TDM_MODULE)
2967 #if defined(CONFIG_SND_BF5XX_SOC_AC97) || defined(CONFIG_SND_BF5XX_SOC_AC97_MODULE)
2971 #if defined(CONFIG_REGULATOR_AD5398) || defined(CONFIG_REGULATOR_AD5398_MODULE)
2972 #if defined(CONFIG_REGULATOR_VIRTUAL_CONSUMER) || \
2973 defined(CONFIG_REGULATOR_VIRTUAL_CONSUMER_MODULE)
2974 &ad5398_virt_consumer_device,
2976 #if defined(CONFIG_REGULATOR_USERSPACE_CONSUMER) || \
2977 defined(CONFIG_REGULATOR_USERSPACE_CONSUMER_MODULE)
2978 &ad5398_userspace_consumer_device,
2982 #if defined(CONFIG_REGULATOR_FIXED_VOLTAGE) || defined(CONFIG_REGULATOR_FIXED_VOLTAGE_MODULE)
2984 #if defined(CONFIG_REGULATOR_USERSPACE_CONSUMER) || \
2985 defined(CONFIG_REGULATOR_USERSPACE_CONSUMER_MODULE)
2986 &adp122_userspace_consumer_device,
2990 #if defined(CONFIG_IIO_GPIO_TRIGGER) || \
2991 defined(CONFIG_IIO_GPIO_TRIGGER_MODULE)
2995 #if defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1373) || \
2996 defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1373_MODULE)
2997 &bf5xx_adau1373_device,
3000 #if defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1701) || \
3001 defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1701_MODULE)
3002 &bf5xx_adau1701_device,
3005 #if defined(CONFIG_SND_SOC_BFIN_EVAL_ADAV80X) || \
3006 defined(CONFIG_SND_SOC_BFIN_EVAL_ADAV80X_MODULE)
3007 &bfin_eval_adav801_device,
3011 static int __init net2272_init(
void)
3013 #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
3029 static int __init stamp_init(
void)
3032 bfin_plat_nand_init();
3040 pr_warning(
"unable to configure net2272; it probably won't work\n");
3049 #if defined(CONFIG_SERIAL_BFIN_CONSOLE) || defined(CONFIG_EARLY_PRINTK)
3050 #ifdef CONFIG_SERIAL_BFIN_UART0
3053 #ifdef CONFIG_SERIAL_BFIN_UART1
3058 #if defined(CONFIG_SERIAL_BFIN_SPORT_CONSOLE)
3059 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
3060 &bfin_sport0_uart_device,
3062 #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
3063 &bfin_sport1_uart_device,
3085 #define FLASH_MAC 0x203f0000