diff options
Diffstat (limited to 'include/asm-x86/geode.h')
-rw-r--r-- | include/asm-x86/geode.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/asm-x86/geode.h b/include/asm-x86/geode.h index 771af336734f..811fe14f70b2 100644 --- a/include/asm-x86/geode.h +++ b/include/asm-x86/geode.h | |||
@@ -121,9 +121,15 @@ extern int geode_get_dev_base(unsigned int dev); | |||
121 | #define GPIO_MAP_Z 0xE8 | 121 | #define GPIO_MAP_Z 0xE8 |
122 | #define GPIO_MAP_W 0xEC | 122 | #define GPIO_MAP_W 0xEC |
123 | 123 | ||
124 | extern void geode_gpio_set(unsigned int, unsigned int); | 124 | static inline u32 geode_gpio(unsigned int nr) |
125 | extern void geode_gpio_clear(unsigned int, unsigned int); | 125 | { |
126 | extern int geode_gpio_isset(unsigned int, unsigned int); | 126 | BUG_ON(nr > 28); |
127 | return 1 << nr; | ||
128 | } | ||
129 | |||
130 | extern void geode_gpio_set(u32, unsigned int); | ||
131 | extern void geode_gpio_clear(u32, unsigned int); | ||
132 | extern int geode_gpio_isset(u32, unsigned int); | ||
127 | extern void geode_gpio_setup_event(unsigned int, int, int); | 133 | extern void geode_gpio_setup_event(unsigned int, int, int); |
128 | extern void geode_gpio_set_irq(unsigned int, unsigned int); | 134 | extern void geode_gpio_set_irq(unsigned int, unsigned int); |
129 | 135 | ||