aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@ru.mvista.com>2008-05-19 13:47:05 -0400
committerKumar Gala <galak@kernel.crashing.org>2008-06-10 12:11:10 -0400
commit32def337aafee0bc65eb58d5b1b3617525eb7fb7 (patch)
tree22173ef1c86e1dd6de2eadee2600dbad1e029249 /include/asm-powerpc
parent9572653ee01a2134ae3a1d7aa29ce9d026a6afe9 (diff)
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')
-rw-r--r--include/asm-powerpc/qe.h3
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 {
100#endif 100#endif
101}; 101};
102 102
103extern void __init qe_add_gpiochips(void);
103extern int par_io_init(struct device_node *np); 104extern int par_io_init(struct device_node *np);
104extern int par_io_of_config(struct device_node *np); 105extern int par_io_of_config(struct device_node *np);
106#define QE_PIO_DIR_IN 2
107#define QE_PIO_DIR_OUT 1
105extern void __par_io_config_pin(struct qe_pio_regs __iomem *par_io, u8 pin, 108extern void __par_io_config_pin(struct qe_pio_regs __iomem *par_io, u8 pin,
106 int dir, int open_drain, int assignment, 109 int dir, int open_drain, int assignment,
107 int has_irq); 110 int has_irq);