diff options
author | Laurent Pinchart <laurentp@cse-semaphore.com> | 2008-07-28 10:43:22 +0200 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-07-28 07:40:48 -0500 |
commit | e193325e3e3de188ae2aa5207adc7129aacc5c9d (patch) | |
tree | da00df7d2a0e3d40160adbd63cb6408cc3e51f15 /include/asm-powerpc | |
parent | 4c920de37d29284d4cb65d76a97a567247c2ac32 (diff) | |
download | kernel_samsung_smdk4412-e193325e3e3de188ae2aa5207adc7129aacc5c9d.zip kernel_samsung_smdk4412-e193325e3e3de188ae2aa5207adc7129aacc5c9d.tar.gz kernel_samsung_smdk4412-e193325e3e3de188ae2aa5207adc7129aacc5c9d.tar.bz2 |
cpm2: Implement GPIO LIB API on CPM2 Freescale SoC.
This patch implement GPIO LIB support for the CPM2 GPIOs. The code can
also be used for CPM1 GPIO port E, as both cores are compatible at the
register level.
Based on earlier work by Laurent Pinchart.
Signed-off-by: Jochen Friedrich <jochen@scram.de>
Cc: Laurent Pinchart <laurentp@cse-semaphore.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/cpm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-powerpc/cpm.h b/include/asm-powerpc/cpm.h index 63a5533..24d79e3 100644 --- a/include/asm-powerpc/cpm.h +++ b/include/asm-powerpc/cpm.h @@ -3,6 +3,7 @@ #include <linux/compiler.h> #include <linux/types.h> +#include <linux/of.h> /* Opcodes common to CPM1 and CPM2 */ @@ -100,4 +101,6 @@ unsigned long cpm_muram_offset(void __iomem *addr); dma_addr_t cpm_muram_dma(void __iomem *addr); int cpm_command(u32 command, u8 opcode); +int cpm2_gpiochip_add32(struct device_node *np); + #endif |