Bibek Basu | 0cb3fcd | 2011-02-09 11:02:35 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright ST-Ericsson 2010. |
| 3 | * |
| 4 | * Author: Bibek Basu <bibek.basu@stericsson.com> |
| 5 | * Licensed under GPLv2. |
| 6 | */ |
| 7 | |
| 8 | #ifndef _AB8500_GPIO_H |
| 9 | #define _AB8500_GPIO_H |
| 10 | |
| 11 | /* |
| 12 | * Platform data to register a block: only the initial gpio/irq number. |
Linus Walleij | d625552 | 2012-02-20 21:42:24 +0100 | [diff] [blame] | 13 | * Array sizes are large enough to contain all AB8500 and AB9540 GPIO |
| 14 | * registers. |
Bibek Basu | 0cb3fcd | 2011-02-09 11:02:35 +0530 | [diff] [blame] | 15 | */ |
| 16 | |
Patrice Chotard | 0493e64 | 2013-01-08 10:41:02 +0100 | [diff] [blame] | 17 | struct abx500_gpio_platform_data { |
Bibek Basu | 0cb3fcd | 2011-02-09 11:02:35 +0530 | [diff] [blame] | 18 | int gpio_base; |
Patrice Chotard | 0493e64 | 2013-01-08 10:41:02 +0100 | [diff] [blame] | 19 | }; |
| 20 | |
| 21 | enum abx500_gpio_pull_updown { |
| 22 | ABX500_GPIO_PULL_DOWN = 0x0, |
| 23 | ABX500_GPIO_PULL_NONE = 0x1, |
| 24 | ABX500_GPIO_PULL_UP = 0x3, |
| 25 | }; |
| 26 | |
| 27 | enum abx500_gpio_vinsel { |
| 28 | ABX500_GPIO_VINSEL_VBAT = 0x0, |
| 29 | ABX500_GPIO_VINSEL_VIN_1V8 = 0x1, |
| 30 | ABX500_GPIO_VINSEL_VDD_BIF = 0x2, |
Bibek Basu | 0cb3fcd | 2011-02-09 11:02:35 +0530 | [diff] [blame] | 31 | }; |
| 32 | |
| 33 | #endif /* _AB8500_GPIO_H */ |