Hi Sam, On Sat, Nov 03, 2018 at 12:31:12AM +0100, Sam Ravnborg wrote: > On Fri, Nov 02, 2018 at 10:07:43AM +0100, Sascha Hauer wrote: > > From: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> > > > > The EVB-KSZ9477 is an evaluation board for the KSZ9477 ethernet switch. > > This board is equipped with a atsama5d3 SoC with 256MiB of SDRAM, 256MiB > > of NAND flash and a SD card slot. > > > > For now only second stage booting is supported with AT91bootstrap as > > first stage loader. > Reminds me... > > I have noticed a brown-paper-bug introduced by me that would > hurt first stage bootloaders. > But only for at91sam926x boards I think, that this is likely not > considered. > +#define at91_sdramc_write(field, value) \ > + __raw_writel((value), cfg->sdramc + (field)) I prefer using plain __raw_writel rather than creating a new wrapper. The reason is a series I created that gets rid of these kind of wrappers in AT91 which decide during compile time on which SoC we are running. The above is not one of these, but I think doing it without accessors fits better into the series I created. 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