On Tue, Jun 26, 2012 at 11:51:46AM +0200, Jan Luebbe wrote: > Signed-off-by: Jan Luebbe <jlu@xxxxxxxxxxxxxx> > --- > arch/arm/mach-davinci/Makefile | 1 + > arch/arm/mach-davinci/da850.c | 279 ++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 280 insertions(+) > create mode 100644 arch/arm/mach-davinci/da850.c > > diff --git a/arch/arm/mach-davinci/Makefile b/arch/arm/mach-davinci/Makefile > index 936566e..d617d9e 100644 > --- a/arch/arm/mach-davinci/Makefile > +++ b/arch/arm/mach-davinci/Makefile > @@ -1,4 +1,5 @@ > obj-y += clock.o > obj-y += clocksource.o > +obj-y += da850.o > obj-y += gpio.o > obj-y += mux.o > diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c > new file mode 100644 > index 0000000..5d89a87 > --- /dev/null > +++ b/arch/arm/mach-davinci/da850.c > + > +static int da8xx_mux_init(void) > +{ > + if (davinci_cfg_reg_list(da850_uart2_pins)) > + printf("mux failed for da850_uart2_pins\n"); > + > + if (davinci_cfg_reg_list(da850_gpio_pins)) > + printf("mux failed for da850_gpio_pins\n"); > + > + if (davinci_cfg_reg_list(da850_emifa_pins)) > + printf("mux failed for da850_emifa_pins\n"); > + > + if (davinci_cfg_reg_list(da850_spi0_pins)) > + printf("mux failed for da850_spi0_pins\n"); > + > + if (davinci_cfg_reg_list(da850_spi1_pins)) > + printf("mux failed for da850_spi1_pins\n"); > + > + if (davinci_cfg_reg_list(da850_emac_pins)) > + printf("mux failed for da850_emac_pins\n"); > + > + return 0; > +} > +postconsole_initcall(da8xx_mux_init); Is this really common to all da8xx boards? Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox