[PATCH 05/12] omap1: Add 7xx clocks and pin muxes for SPI

Tony Lindgren tony at atomide.com
Thu Jan 7 14:15:03 EST 2010


* Grazvydas Ignotas <notasas at gmail.com> [100107 01:44]:
> <snip>
> 
> > --- a/arch/arm/mach-omap1/devices.c
> > +++ b/arch/arm/mach-omap1/devices.c
> > @@ -196,6 +198,38 @@ void __init omap1_init_mmc(struct omap_mmc_platform_data **mmc_data,
> >
> >  /*-------------------------------------------------------------------------*/
> >
> > +/* OMAP7xx SPI support */
> > +#if defined(CONFIG_SPI_OMAP_100K) || defined(CONFIG_SPI_OMAP_100K_MODULE)
> > +
> > +struct platform_device omap_spi1 = {
> > +       .name           = "omap1_spi100k",
> > +       .id             = 1,
> > +};
> > +
> > +struct platform_device omap_spi2 = {
> > +       .name           = "omap1_spi100k",
> > +       .id             = 2,
> > +};
> > +
> > +static void omap_init_spi100k(void)
> > +{
> > +       omap_spi1.dev.platform_data = ioremap(OMAP7XX_SPI1_BASE, 0x7ff);
> > +       if (omap_spi1.dev.platform_data)
> > +               platform_device_register(&omap_spi1);
> > +
> > +       omap_spi2.dev.platform_data = ioremap(OMAP7XX_SPI2_BASE, 0x7ff);
> > +       ifi (omap_spi2.dev.platform_data)
> 
> a typo here?

Thanks, for pointing that out, my fault for editing the patch.. Fixed below
and now compile tested with omap1_spi100k enabled :)

Regards,

Tony


More information about the linux-arm-kernel mailing list