Re: [PATCH 3/3] [POWERPC] QE: implement GPIO LIB API

2008-01-27 Thread Jochen Friedrich
Hi Anton, +static void qe_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) +{ + struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); + struct port_regs *regs = mm_gc-regs; + u32 pin_mask; + u32 tmp_val; + + /* calculate pin location */ + pin_mask =

Re: [PATCH 3/3] [POWERPC] QE: implement GPIO LIB API

2008-01-27 Thread Anton Vorontsov
On Sun, Jan 27, 2008 at 02:42:12PM +0100, Jochen Friedrich wrote: Hi Anton, +static void qe_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) +{ + struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); + struct port_regs *regs = mm_gc-regs; + u32 pin_mask; + u32

Re: [PATCH 3/3] [POWERPC] QE: implement GPIO LIB API

2008-01-27 Thread Grant Likely
On 1/27/08, Anton Vorontsov [EMAIL PROTECTED] wrote: On Sun, Jan 27, 2008 at 02:42:12PM +0100, Jochen Friedrich wrote: Hi Anton, +static void qe_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) +{ + struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); + struct

Re: [PATCH 3/3] [POWERPC] QE: implement GPIO LIB API

2008-01-27 Thread Anton Vorontsov
On Sun, Jan 27, 2008 at 01:59:51PM -0700, Grant Likely wrote: a On 1/27/08, Anton Vorontsov [EMAIL PROTECTED] wrote: On Sun, Jan 27, 2008 at 02:42:12PM +0100, Jochen Friedrich wrote: Hi Anton, +static void qe_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) +{ +

[PATCH 3/3] [POWERPC] QE: implement GPIO LIB API

2008-01-08 Thread Anton Vorontsov
Signed-off-by: Anton Vorontsov [EMAIL PROTECTED] --- Documentation/powerpc/booting-without-of.txt | 32 +++ arch/powerpc/platforms/Kconfig |2 + arch/powerpc/sysdev/qe_lib/qe_io.c | 73 ++ include/asm-powerpc/qe.h