diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2008-04-04 17:56:27 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-04-28 18:14:31 +0200 |
commit | 1bd0962e3d5bc66ee0ee207a61485c6a436cfac2 (patch) | |
tree | 4244f3ac55b7c0d464680d063fcca6a3cae4d535 /include/asm-mips/jmr3927/jmr3927.h | |
parent | [MIPS] rbhma4500: use generic txx9 gpio (diff) | |
download | linux-1bd0962e3d5bc66ee0ee207a61485c6a436cfac2.tar.xz linux-1bd0962e3d5bc66ee0ee207a61485c6a436cfac2.zip |
[MIPS] jmr3927: use generic txx9 gpio
Use generic txx9 gpio (and gpiolib) for JMR3927 board.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/jmr3927/jmr3927.h')
-rw-r--r-- | include/asm-mips/jmr3927/jmr3927.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-mips/jmr3927/jmr3927.h b/include/asm-mips/jmr3927/jmr3927.h index 81602c8047eb..a162268f17df 100644 --- a/include/asm-mips/jmr3927/jmr3927.h +++ b/include/asm-mips/jmr3927/jmr3927.h @@ -99,8 +99,8 @@ #define jmr3927_led_and_set(n/*0-16*/) jmr3927_ioc_reg_out((~(n)) & jmr3927_ioc_reg_in(JMR3927_IOC_LED_ADDR), JMR3927_IOC_LED_ADDR) /* DIPSW4 macro */ -#define jmr3927_dipsw1() ((tx3927_pioptr->din & (1 << 11)) == 0) -#define jmr3927_dipsw2() ((tx3927_pioptr->din & (1 << 10)) == 0) +#define jmr3927_dipsw1() (gpio_get_value(11) == 0) +#define jmr3927_dipsw2() (gpio_get_value(10) == 0) #define jmr3927_dipsw3() ((jmr3927_ioc_reg_in(JMR3927_IOC_DIPSW_ADDR) & 2) == 0) #define jmr3927_dipsw4() ((jmr3927_ioc_reg_in(JMR3927_IOC_DIPSW_ADDR) & 1) == 0) |