aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf537
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2010-03-08 06:58:53 -0500
committerMike Frysinger <vapier@gentoo.org>2010-10-22 03:48:49 -0400
commit0891baef7d2e1777b81e780c3b8cfcc169d6979f (patch)
tree946a00076299eb8967046cbe69e4ab4275bab555 /arch/blackfin/mach-bf537
parent6fbfa0c41878a5284156d4678dc514c92524e0b9 (diff)
Blackfin: bf537-stamp: add example IIO resources
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-bf537')
-rw-r--r--arch/blackfin/mach-bf537/boards/stamp.c454
1 files changed, 442 insertions, 12 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c
index 9e775e6ad48e..328f002f76a0 100644
--- a/arch/blackfin/mach-bf537/boards/stamp.c
+++ b/arch/blackfin/mach-bf537/boards/stamp.c
@@ -701,6 +701,65 @@ static struct bfin5xx_spi_chip ad2s1210_spi_chip_info = {
701}; 701};
702#endif 702#endif
703 703
704#if defined(CONFIG_AD7314) || defined(CONFIG_AD7314_MODULE)
705static struct bfin5xx_spi_chip ad7314_spi_chip_info = {
706 .enable_dma = 0,
707 .bits_per_word = 16,
708};
709#endif
710
711#if defined(CONFIG_AD7816) || defined(CONFIG_AD7816_MODULE)
712static unsigned short ad7816_platform_data[] = {
713 GPIO_PF4, /* rdwr_pin */
714 GPIO_PF5, /* convert_pin */
715 GPIO_PF7, /* busy_pin */
716 0,
717};
718
719static struct bfin5xx_spi_chip ad7816_spi_chip_info = {
720 .enable_dma = 0,
721 .bits_per_word = 8,
722};
723#endif
724
725#if defined(CONFIG_ADT7310) || defined(CONFIG_ADT7310_MODULE)
726static unsigned long adt7310_platform_data[3] = {
727/* INT bound temperature alarm event. line 1 */
728 IRQ_PG4, IRQF_TRIGGER_LOW,
729/* CT bound temperature alarm event irq_flags. line 0 */
730 IRQF_TRIGGER_LOW,
731};
732
733static struct bfin5xx_spi_chip adt7310_spi_chip_info = {
734 .enable_dma = 0,
735 .bits_per_word = 8,
736};
737#endif
738
739#if defined(CONFIG_AD7298) || defined(CONFIG_AD7298_MODULE)
740static unsigned short ad7298_platform_data[] = {
741 GPIO_PF7, /* busy_pin */
742 0,
743};
744
745static struct bfin5xx_spi_chip ad7298_spi_chip_info = {
746 .enable_dma = 0,
747 .bits_per_word = 16,
748};
749#endif
750
751#if defined(CONFIG_ADT7316_SPI) || defined(CONFIG_ADT7316_SPI_MODULE)
752static unsigned long adt7316_spi_data[2] = {
753 IRQF_TRIGGER_LOW, /* interrupt flags */
754 GPIO_PF7, /* ldac_pin, 0 means DAC/LDAC registers control DAC update */
755};
756
757static struct bfin5xx_spi_chip adt7316_spi_chip_info = {
758 .enable_dma = 0,
759 .bits_per_word = 8,
760};
761#endif
762
704#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 763#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
705#define MMC_SPI_CARD_DETECT_INT IRQ_PF5 764#define MMC_SPI_CARD_DETECT_INT IRQ_PF5
706 765
@@ -944,6 +1003,13 @@ static struct bfin5xx_spi_chip spi_adxl34x_chip_info = {
944}; 1003};
945#endif 1004#endif
946 1005
1006#if defined(CONFIG_AD7476) || defined(CONFIG_AD7476_MODULE)
1007static struct bfin5xx_spi_chip spi_ad7476_chip_info = {
1008 .enable_dma = 0, /* use dma transfer with this chip*/
1009 .bits_per_word = 8,
1010};
1011#endif
1012
947static struct spi_board_info bfin_spi_board_info[] __initdata = { 1013static struct spi_board_info bfin_spi_board_info[] __initdata = {
948#if defined(CONFIG_MTD_M25P80) \ 1014#if defined(CONFIG_MTD_M25P80) \
949 || defined(CONFIG_MTD_M25P80_MODULE) 1015 || defined(CONFIG_MTD_M25P80_MODULE)
@@ -1062,6 +1128,67 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
1062 }, 1128 },
1063#endif 1129#endif
1064 1130
1131#if defined(CONFIG_AD7314) || defined(CONFIG_AD7314_MODULE)
1132 {
1133 .modalias = "ad7314",
1134 .max_speed_hz = 1000000,
1135 .bus_num = 0,
1136 .chip_select = 4, /* CS, change it for your board */
1137 .controller_data = &ad7314_spi_chip_info,
1138 .mode = SPI_MODE_1,
1139 },
1140#endif
1141
1142#if defined(CONFIG_AD7816) || defined(CONFIG_AD7816_MODULE)
1143 {
1144 .modalias = "ad7818",
1145 .max_speed_hz = 1000000,
1146 .bus_num = 0,
1147 .chip_select = 4, /* CS, change it for your board */
1148 .platform_data = ad7816_platform_data,
1149 .controller_data = &ad7816_spi_chip_info,
1150 .mode = SPI_MODE_3,
1151 },
1152#endif
1153
1154#if defined(CONFIG_ADT7310) || defined(CONFIG_ADT7310_MODULE)
1155 {
1156 .modalias = "adt7310",
1157 .max_speed_hz = 1000000,
1158 .irq = IRQ_PG5, /* CT alarm event. Line 0 */
1159 .bus_num = 0,
1160 .chip_select = 4, /* CS, change it for your board */
1161 .platform_data = adt7310_platform_data,
1162 .controller_data = &adt7310_spi_chip_info,
1163 .mode = SPI_MODE_3,
1164 },
1165#endif
1166
1167#if defined(CONFIG_AD7298) || defined(CONFIG_AD7298_MODULE)
1168 {
1169 .modalias = "ad7298",
1170 .max_speed_hz = 1000000,
1171 .bus_num = 0,
1172 .chip_select = 4, /* CS, change it for your board */
1173 .platform_data = ad7298_platform_data,
1174 .controller_data = &ad7298_spi_chip_info,
1175 .mode = SPI_MODE_3,
1176 },
1177#endif
1178
1179#if defined(CONFIG_ADT7316_SPI) || defined(CONFIG_ADT7316_SPI_MODULE)
1180 {
1181 .modalias = "adt7316",
1182 .max_speed_hz = 1000000,
1183 .irq = IRQ_PG5, /* interrupt line */
1184 .bus_num = 0,
1185 .chip_select = 4, /* CS, change it for your board */
1186 .platform_data = adt7316_spi_data,
1187 .controller_data = &adt7316_spi_chip_info,
1188 .mode = SPI_MODE_3,
1189 },
1190#endif
1191
1065#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 1192#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
1066 { 1193 {
1067 .modalias = "mmc_spi", 1194 .modalias = "mmc_spi",
@@ -1161,6 +1288,233 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
1161 .mode = SPI_MODE_0, 1288 .mode = SPI_MODE_0,
1162 }, 1289 },
1163#endif 1290#endif
1291#if defined(CONFIG_AD7476) \
1292 || defined(CONFIG_AD7476_MODULE)
1293 {
1294 .modalias = "ad7476", /* Name of spi_driver for this device */
1295 .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */
1296 .bus_num = 0, /* Framework bus number */
1297 .chip_select = 1, /* Framework chip select. */
1298 .platform_data = NULL, /* No spi_driver specific config */
1299 .controller_data = &spi_ad7476_chip_info,
1300 .mode = SPI_MODE_3,
1301 },
1302#endif
1303#if defined(CONFIG_ADE7753) \
1304 || defined(CONFIG_ADE7753_MODULE)
1305 {
1306 .modalias = "ade7753",
1307 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */
1308 .bus_num = 0,
1309 .chip_select = 1, /* CS, change it for your board */
1310 .platform_data = NULL, /* No spi_driver specific config */
1311 .mode = SPI_MODE_1,
1312 },
1313#endif
1314#if defined(CONFIG_ADE7754) \
1315 || defined(CONFIG_ADE7754_MODULE)
1316 {
1317 .modalias = "ade7754",
1318 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */
1319 .bus_num = 0,
1320 .chip_select = 1, /* CS, change it for your board */
1321 .platform_data = NULL, /* No spi_driver specific config */
1322 .mode = SPI_MODE_1,
1323 },
1324#endif
1325#if defined(CONFIG_ADE7758) \
1326 || defined(CONFIG_ADE7758_MODULE)
1327 {
1328 .modalias = "ade7758",
1329 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */
1330 .bus_num = 0,
1331 .chip_select = 1, /* CS, change it for your board */
1332 .platform_data = NULL, /* No spi_driver specific config */
1333 .mode = SPI_MODE_1,
1334 },
1335#endif
1336#if defined(CONFIG_ADE7759) \
1337 || defined(CONFIG_ADE7759_MODULE)
1338 {
1339 .modalias = "ade7759",
1340 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */
1341 .bus_num = 0,
1342 .chip_select = 1, /* CS, change it for your board */
1343 .platform_data = NULL, /* No spi_driver specific config */
1344 .mode = SPI_MODE_1,
1345 },
1346#endif
1347#if defined(CONFIG_ADE7854_SPI) \
1348 || defined(CONFIG_ADE7854_SPI_MODULE)
1349 {
1350 .modalias = "ade7854",
1351 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */
1352 .bus_num = 0,
1353 .chip_select = 1, /* CS, change it for your board */
1354 .platform_data = NULL, /* No spi_driver specific config */
1355 .mode = SPI_MODE_3,
1356 },
1357#endif
1358#if defined(CONFIG_ADIS16060) \
1359 || defined(CONFIG_ADIS16060_MODULE)
1360 {
1361 .modalias = "adis16060_r",
1362 .max_speed_hz = 2900000, /* max spi clock (SCK) speed in HZ */
1363 .bus_num = 0,
1364 .chip_select = MAX_CTRL_CS + 1, /* CS for read, change it for your board */
1365 .platform_data = NULL, /* No spi_driver specific config */
1366 .mode = SPI_MODE_0,
1367 },
1368 {
1369 .modalias = "adis16060_w",
1370 .max_speed_hz = 2900000, /* max spi clock (SCK) speed in HZ */
1371 .bus_num = 0,
1372 .chip_select = 2, /* CS for write, change it for your board */
1373 .platform_data = NULL, /* No spi_driver specific config */
1374 .mode = SPI_MODE_1,
1375 },
1376#endif
1377#if defined(CONFIG_ADIS16130) \
1378 || defined(CONFIG_ADIS16130_MODULE)
1379 {
1380 .modalias = "adis16130",
1381 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */
1382 .bus_num = 0,
1383 .chip_select = 1, /* CS for read, change it for your board */
1384 .platform_data = NULL, /* No spi_driver specific config */
1385 .mode = SPI_MODE_3,
1386 },
1387#endif
1388#if defined(CONFIG_ADIS16201) \
1389 || defined(CONFIG_ADIS16201_MODULE)
1390 {
1391 .modalias = "adis16201",
1392 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */
1393 .bus_num = 0,
1394 .chip_select = 5, /* CS, change it for your board */
1395 .platform_data = NULL, /* No spi_driver specific config */
1396 .mode = SPI_MODE_3,
1397 .irq = IRQ_PF4,
1398 },
1399#endif
1400#if defined(CONFIG_ADIS16203) \
1401 || defined(CONFIG_ADIS16203_MODULE)
1402 {
1403 .modalias = "adis16203",
1404 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */
1405 .bus_num = 0,
1406 .chip_select = 5, /* CS, change it for your board */
1407 .platform_data = NULL, /* No spi_driver specific config */
1408 .mode = SPI_MODE_3,
1409 .irq = IRQ_PF4,
1410 },
1411#endif
1412#if defined(CONFIG_ADIS16204) \
1413 || defined(CONFIG_ADIS16204_MODULE)
1414 {
1415 .modalias = "adis16204",
1416 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */
1417 .bus_num = 0,
1418 .chip_select = 5, /* CS, change it for your board */
1419 .platform_data = NULL, /* No spi_driver specific config */
1420 .mode = SPI_MODE_3,
1421 .irq = IRQ_PF4,
1422 },
1423#endif
1424#if defined(CONFIG_ADIS16209) \
1425 || defined(CONFIG_ADIS16209_MODULE)
1426 {
1427 .modalias = "adis16209",
1428 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */
1429 .bus_num = 0,
1430 .chip_select = 5, /* CS, change it for your board */
1431 .platform_data = NULL, /* No spi_driver specific config */
1432 .mode = SPI_MODE_3,
1433 .irq = IRQ_PF4,
1434 },
1435#endif
1436#if defined(CONFIG_ADIS16220) \
1437 || defined(CONFIG_ADIS16220_MODULE)
1438 {
1439 .modalias = "adis16220",
1440 .max_speed_hz = 2000000, /* max spi clock (SCK) speed in HZ */
1441 .bus_num = 0,
1442 .chip_select = 5, /* CS, change it for your board */
1443 .platform_data = NULL, /* No spi_driver specific config */
1444 .mode = SPI_MODE_3,
1445 .irq = IRQ_PF4,
1446 },
1447#endif
1448#if defined(CONFIG_ADIS16240) \
1449 || defined(CONFIG_ADIS16240_MODULE)
1450 {
1451 .modalias = "adis16240",
1452 .max_speed_hz = 1500000, /* max spi clock (SCK) speed in HZ */
1453 .bus_num = 0,
1454 .chip_select = 5, /* CS, change it for your board */
1455 .platform_data = NULL, /* No spi_driver specific config */
1456 .mode = SPI_MODE_3,
1457 .irq = IRQ_PF4,
1458 },
1459#endif
1460#if defined(CONFIG_ADIS16260) \
1461 || defined(CONFIG_ADIS16260_MODULE)
1462 {
1463 .modalias = "adis16260",
1464 .max_speed_hz = 1500000, /* max spi clock (SCK) speed in HZ */
1465 .bus_num = 0,
1466 .chip_select = 5, /* CS, change it for your board */
1467 .platform_data = NULL, /* No spi_driver specific config */
1468 .mode = SPI_MODE_3,
1469 .irq = IRQ_PF4,
1470 },
1471#endif
1472#if defined(CONFIG_ADIS16261) \
1473 || defined(CONFIG_ADIS16261_MODULE)
1474 {
1475 .modalias = "adis16261",
1476 .max_speed_hz = 2500000, /* max spi clock (SCK) speed in HZ */
1477 .bus_num = 0,
1478 .chip_select = 1, /* CS, change it for your board */
1479 .platform_data = NULL, /* No spi_driver specific config */
1480 .mode = SPI_MODE_3,
1481 },
1482#endif
1483#if defined(CONFIG_ADIS16300) \
1484 || defined(CONFIG_ADIS16300_MODULE)
1485 {
1486 .modalias = "adis16300",
1487 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */
1488 .bus_num = 0,
1489 .chip_select = 5, /* CS, change it for your board */
1490 .platform_data = NULL, /* No spi_driver specific config */
1491 .mode = SPI_MODE_3,
1492 .irq = IRQ_PF4,
1493 },
1494#endif
1495#if defined(CONFIG_ADIS16350) \
1496 || defined(CONFIG_ADIS16350_MODULE)
1497 {
1498 .modalias = "adis16364",
1499 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */
1500 .bus_num = 0,
1501 .chip_select = 5, /* CS, change it for your board */
1502 .platform_data = NULL, /* No spi_driver specific config */
1503 .mode = SPI_MODE_3,
1504 .irq = IRQ_PF4,
1505 },
1506#endif
1507#if defined(CONFIG_ADIS16400) \
1508 || defined(CONFIG_ADIS16400_MODULE)
1509 {
1510 .modalias = "adis16400",
1511 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */
1512 .bus_num = 0,
1513 .chip_select = 1, /* CS, change it for your board */
1514 .platform_data = NULL, /* No spi_driver specific config */
1515 .mode = SPI_MODE_3,
1516 },
1517#endif
1164}; 1518};
1165 1519
1166#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) 1520#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
@@ -1829,6 +2183,21 @@ static struct platform_device ad5398_userspace_consumer_device = {
1829#endif 2183#endif
1830#endif 2184#endif
1831 2185
2186#if defined(CONFIG_ADT7410) || defined(CONFIG_ADT7410_MODULE)
2187/* INT bound temperature alarm event. line 1 */
2188static unsigned long adt7410_platform_data[2] = {
2189 IRQ_PG4, IRQF_TRIGGER_LOW,
2190};
2191#endif
2192
2193#if defined(CONFIG_ADT7316_I2C) || defined(CONFIG_ADT7316_I2C_MODULE)
2194/* INT bound temperature alarm event. line 1 */
2195static unsigned long adt7316_i2c_data[2] = {
2196 IRQF_TRIGGER_LOW, /* interrupt flags */
2197 GPIO_PF4, /* ldac_pin, 0 means DAC/LDAC registers control DAC update */
2198};
2199#endif
2200
1832static struct i2c_board_info __initdata bfin_i2c_board_info[] = { 2201static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
1833#if defined(CONFIG_SND_BF5XX_SOC_AD193X) || defined(CONFIG_SND_BF5XX_SOC_AD193X_MODULE) 2202#if defined(CONFIG_SND_BF5XX_SOC_AD193X) || defined(CONFIG_SND_BF5XX_SOC_AD193X_MODULE)
1834 { 2203 {
@@ -1873,12 +2242,7 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
1873 { 2242 {
1874 I2C_BOARD_INFO("ad7414", 0x9), 2243 I2C_BOARD_INFO("ad7414", 0x9),
1875 .irq = IRQ_PG5, 2244 .irq = IRQ_PG5,
1876 /* 2245 .irq_flags = IRQF_TRIGGER_LOW,
1877 * platform_data pointer is borrwoed by the driver to
1878 * store custimer defined IRQ ALART level mode.
1879 * only IRQF_TRIGGER_HIGH and IRQF_TRIGGER_LOW are valid.
1880 */
1881 .platform_data = (void *)IRQF_TRIGGER_LOW,
1882 }, 2246 },
1883#endif 2247#endif
1884 2248
@@ -1886,12 +2250,56 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
1886 { 2250 {
1887 I2C_BOARD_INFO("ad7417", 0xb), 2251 I2C_BOARD_INFO("ad7417", 0xb),
1888 .irq = IRQ_PG5, 2252 .irq = IRQ_PG5,
1889 /* 2253 .irq_flags = IRQF_TRIGGER_LOW,
1890 * platform_data pointer is borrwoed by the driver to 2254 .platform_data = (void *)GPIO_PF4,
1891 * store custimer defined IRQ ALART level mode. 2255 },
1892 * only IRQF_TRIGGER_HIGH and IRQF_TRIGGER_LOW are valid. 2256#endif
1893 */ 2257
1894 .platform_data = (void *)IRQF_TRIGGER_LOW, 2258#if defined(CONFIG_ADE7854_I2C) || defined(CONFIG_ADE7854_I2C_MODULE)
2259 {
2260 I2C_BOARD_INFO("ade7854", 0x38),
2261 },
2262#endif
2263
2264#if defined(CONFIG_ADT75) || defined(CONFIG_ADT75_MODULE)
2265 {
2266 I2C_BOARD_INFO("adt75", 0x9),
2267 .irq = IRQ_PG5,
2268 .irq_flags = IRQF_TRIGGER_LOW,
2269 },
2270#endif
2271
2272#if defined(CONFIG_ADT7408) || defined(CONFIG_ADT7408_MODULE)
2273 {
2274 I2C_BOARD_INFO("adt7408", 0x18),
2275 .irq = IRQ_PG5,
2276 .irq_flags = IRQF_TRIGGER_LOW,
2277 },
2278#endif
2279
2280#if defined(CONFIG_ADT7410) || defined(CONFIG_ADT7410_MODULE)
2281 {
2282 I2C_BOARD_INFO("adt7410", 0x48),
2283 /* CT critical temperature event. line 0 */
2284 .irq = IRQ_PG5,
2285 .irq_flags = IRQF_TRIGGER_LOW,
2286 .platform_data = (void *)&adt7410_platform_data,
2287 },
2288#endif
2289
2290#if defined(CONFIG_AD7291) || defined(CONFIG_AD7291_MODULE)
2291 {
2292 I2C_BOARD_INFO("ad7291", 0x20),
2293 .irq = IRQ_PG5,
2294 .irq_flags = IRQF_TRIGGER_LOW,
2295 },
2296#endif
2297
2298#if defined(CONFIG_ADT7316_I2C) || defined(CONFIG_ADT7316_I2C_MODULE)
2299 {
2300 I2C_BOARD_INFO("adt7316", 0x48),
2301 .irq = IRQ_PG6,
2302 .platform_data = (void *)&adt7316_i2c_data,
1895 }, 2303 },
1896#endif 2304#endif
1897 2305
@@ -2272,6 +2680,23 @@ static struct platform_device adp150_userspace_consumer_device = {
2272#endif 2680#endif
2273#endif 2681#endif
2274 2682
2683#if defined(CONFIG_IIO_GPIO_TRIGGER) || \
2684 defined(CONFIG_IIO_GPIO_TRIGGER_MODULE)
2685
2686static struct resource iio_gpio_trigger_resources[] = {
2687 [0] = {
2688 .start = IRQ_PF5,
2689 .end = IRQ_PF5,
2690 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWEDGE,
2691 },
2692};
2693
2694static struct platform_device iio_gpio_trigger = {
2695 .name = "iio_gpio_trigger",
2696 .num_resources = ARRAY_SIZE(iio_gpio_trigger_resources),
2697 .resource = iio_gpio_trigger_resources,
2698};
2699#endif
2275 2700
2276static struct platform_device *stamp_devices[] __initdata = { 2701static struct platform_device *stamp_devices[] __initdata = {
2277 2702
@@ -2412,6 +2837,11 @@ static struct platform_device *stamp_devices[] __initdata = {
2412 &adp150_userspace_consumer_device, 2837 &adp150_userspace_consumer_device,
2413#endif 2838#endif
2414#endif 2839#endif
2840
2841#if defined(CONFIG_IIO_GPIO_TRIGGER) || \
2842 defined(CONFIG_IIO_GPIO_TRIGGER_MODULE)
2843 &iio_gpio_trigger,
2844#endif
2415}; 2845};
2416 2846
2417static int __init stamp_init(void) 2847static int __init stamp_init(void)