[PATCH v3 2/2] [POWERPC] fsl_soc: add support for fsl_spi
Kumar Gala
galak at kernel.crashing.org
Thu Aug 9 15:33:01 EST 2007
On Aug 8, 2007, at 12:09 PM, Anton Vorontsov wrote:
> Signed-off-by: Anton Vorontsov <avorontsov at ru.mvista.com>
> ---
> arch/powerpc/sysdev/fsl_soc.c | 88 ++++++++++++++++++++++++++++++
> +++++++++++
> arch/powerpc/sysdev/fsl_soc.h | 12 ++++++
> 2 files changed, 100 insertions(+), 0 deletions(-)
>
> diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/
> fsl_soc.c
> index 727453d..0771700 100644
> --- a/arch/powerpc/sysdev/fsl_soc.c
> +++ b/arch/powerpc/sysdev/fsl_soc.c
> @@ -23,6 +23,7 @@
> #include <linux/device.h>
> #include <linux/platform_device.h>
> #include <linux/phy.h>
> +#include <linux/spi/spi.h>
> #include <linux/fsl_devices.h>
> #include <linux/fs_enet_pd.h>
> #include <linux/fs_uart_pd.h>
> @@ -1186,3 +1187,90 @@ err:
> arch_initcall(cpm_smc_uart_of_init);
>
> #endif /* CONFIG_8xx */
> +
> +int fsl_spi_init(struct fsl_spi_board_info *binfo)
Do we really need a struct, can we not just pass the 4 params as args
to the function?
May need to a typedef to linux/fsl_device.h for the chipselect call
back.
- k
More information about the Linuxppc-dev
mailing list