diff options
author | Wolfgang Denk <wd@denx.de> | 2009-02-24 22:56:00 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-02-24 22:56:00 +0100 |
commit | 7fe2a9839423a619b5e232646f93ad915ac2029e (patch) | |
tree | 99542fc4ed267e373a8620b6d2c685c1a6050dfe /include/asm-arm/arch-mx31/mx31.h | |
parent | 89e372cd3d520ed20fab543f2cbba2dbb9490cf8 (diff) | |
parent | a2bb7105a79af8f2ffa9f87256fce6c1cbcbd8e1 (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-video
Diffstat (limited to 'include/asm-arm/arch-mx31/mx31.h')
-rw-r--r-- | include/asm-arm/arch-mx31/mx31.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/asm-arm/arch-mx31/mx31.h b/include/asm-arm/arch-mx31/mx31.h index 0552c27ce..1d475dde7 100644 --- a/include/asm-arm/arch-mx31/mx31.h +++ b/include/asm-arm/arch-mx31/mx31.h @@ -27,4 +27,24 @@ extern u32 mx31_get_ipg_clk(void); extern void mx31_gpio_mux(unsigned long mode); +enum mx31_gpio_direction { + MX31_GPIO_DIRECTION_IN, + MX31_GPIO_DIRECTION_OUT, +}; + +#ifdef CONFIG_MX31_GPIO +extern int mx31_gpio_direction(unsigned int gpio, + enum mx31_gpio_direction direction); +extern void mx31_gpio_set(unsigned int gpio, unsigned int value); +#else +static inline int mx31_gpio_direction(unsigned int gpio, + enum mx31_gpio_direction direction) +{ + return 1; +} +static inline void mx31_gpio_set(unsigned int gpio, unsigned int value) +{ +} +#endif + #endif /* __ASM_ARCH_MX31_H */ |