diff options
author | Scott Wood <scottwood@freescale.com> | 2007-07-16 13:32:24 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-10-04 11:02:18 -0500 |
commit | 7f21f52940212c25b4387c2450018e161043549a (patch) | |
tree | 9df63e5508151be0c6fd9e02b692f5ca1edf4394 /include | |
parent | 2652d4ec4a363487d0106a8bf51f1b081dd7e397 (diff) | |
download | op-kernel-dev-7f21f52940212c25b4387c2450018e161043549a.zip op-kernel-dev-7f21f52940212c25b4387c2450018e161043549a.tar.gz |
[POWERPC] cpm2: Add cpm2_set_pin().
This provides a generic way for board code to set up CPM pins, rather
than directly poking magic values into registers.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/cpm2.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-powerpc/cpm2.h b/include/asm-powerpc/cpm2.h index 41a45db..d7b57ac 100644 --- a/include/asm-powerpc/cpm2.h +++ b/include/asm-powerpc/cpm2.h @@ -1247,5 +1247,14 @@ enum cpm_clk { extern int cpm2_clk_setup(enum cpm_clk_target target, int clock, int mode); extern int cpm2_smc_clk_setup(enum cpm_clk_target target, int clock); +#define CPM_PIN_INPUT 0 +#define CPM_PIN_OUTPUT 1 +#define CPM_PIN_PRIMARY 0 +#define CPM_PIN_SECONDARY 2 +#define CPM_PIN_GPIO 4 +#define CPM_PIN_OPENDRAIN 8 + +void cpm2_set_pin(int port, int pin, int flags); + #endif /* __CPM2__ */ #endif /* __KERNEL__ */ |