[U-Boot] [PATCH] kirkwood_spi: add dummy spi_init()
Prafulla Wadaskar
prafulla at marvell.com
Tue Oct 18 13:09:32 CEST 2011
> -----Original Message-----
> From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de]
> On Behalf Of Michael Walle
> Sent: Friday, October 07, 2011 3:54 AM
> To: u-boot at lists.denx.de
> Subject: [U-Boot] [PATCH] kirkwood_spi: add dummy spi_init()
>
> The spi_init() function is missing. Add it.
>
> Signed-off-by: Michael Walle <michael at walle.cc>
> ---
> drivers/spi/kirkwood_spi.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/spi/kirkwood_spi.c b/drivers/spi/kirkwood_spi.c
> index a1c3070..8c35d5e 100644
> --- a/drivers/spi/kirkwood_spi.c
> +++ b/drivers/spi/kirkwood_spi.c
> @@ -106,6 +106,10 @@ int spi_cs_is_valid(unsigned int bus, unsigned int
> cs)
> }
> #endif
>
> +void spi_init(void)
> +{
> +}
> +
> void spi_cs_activate(struct spi_slave *slave)
> {
> writel(readl(&spireg->ctrl) | KWSPI_IRQUNMASK, &spireg->ctrl);
> --
> 1.7.2.5
Applied to u-boot-marvell.git master branch
Regards..
Prafulla . .
More information about the U-Boot
mailing list