diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2008-05-19 19:47:05 +0200 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-06-10 18:11:10 +0200 |
commit | 32def337aafee0bc65eb58d5b1b3617525eb7fb7 (patch) | |
tree | 22173ef1c86e1dd6de2eadee2600dbad1e029249 /include/asm-powerpc/qe.h | |
parent | powerpc/QE: prepare QE PIO code for GPIO LIB support (diff) | |
download | linux-32def337aafee0bc65eb58d5b1b3617525eb7fb7.tar.xz linux-32def337aafee0bc65eb58d5b1b3617525eb7fb7.zip |
powerpc/QE: implement support for the GPIO LIB API
This is needed to access QE GPIOs via Linux GPIO API.
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Acked-By: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include/asm-powerpc/qe.h')
-rw-r--r-- | include/asm-powerpc/qe.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-powerpc/qe.h b/include/asm-powerpc/qe.h index c4523acad48b..01e3c70b93ab 100644 --- a/include/asm-powerpc/qe.h +++ b/include/asm-powerpc/qe.h @@ -100,8 +100,11 @@ struct qe_pio_regs { #endif }; +extern void __init qe_add_gpiochips(void); extern int par_io_init(struct device_node *np); extern int par_io_of_config(struct device_node *np); +#define QE_PIO_DIR_IN 2 +#define QE_PIO_DIR_OUT 1 extern void __par_io_config_pin(struct qe_pio_regs __iomem *par_io, u8 pin, int dir, int open_drain, int assignment, int has_irq); |