summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/fsl_soc.h
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@ru.mvista.com>2007-08-23 13:35:56 +0200
committerKumar Gala <galak@kernel.crashing.org>2007-09-14 15:54:09 +0200
commit26f6cb999366a71b8e318bceaf8fafc1ffecae40 (patch)
tree2da19214e759df13caf4772b6936b5689ac1f070 /arch/powerpc/sysdev/fsl_soc.h
parent[POWERPC] 52xx: Fix mpc52xx_uart_of_assign to use correct index (diff)
downloadlinux-26f6cb999366a71b8e318bceaf8fafc1ffecae40.tar.xz
linux-26f6cb999366a71b8e318bceaf8fafc1ffecae40.zip
[POWERPC] fsl_soc: add support for fsl_spi
Add helper function to setup SPI bus/device information Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/sysdev/fsl_soc.h')
-rw-r--r--arch/powerpc/sysdev/fsl_soc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/fsl_soc.h b/arch/powerpc/sysdev/fsl_soc.h
index 04e145b5fc32..618d91d1e103 100644
--- a/arch/powerpc/sysdev/fsl_soc.h
+++ b/arch/powerpc/sysdev/fsl_soc.h
@@ -8,5 +8,12 @@ extern phys_addr_t get_immrbase(void);
extern u32 get_brgfreq(void);
extern u32 get_baudrate(void);
+struct spi_board_info;
+
+extern int fsl_spi_init(struct spi_board_info *board_infos,
+ unsigned int num_board_infos,
+ void (*activate_cs)(u8 cs, u8 polarity),
+ void (*deactivate_cs)(u8 cs, u8 polarity));
+
#endif
#endif