Porting BareBox to Variscite iMX6 SOM

Sascha Hauer s.hauer at pengutronix.de
Thu Aug 22 17:06:26 EDT 2013

On Thu, Aug 22, 2013 at 11:49:01AM -0400, Michael Burkey wrote:
> I don't know why I said github -- the one at pengutronix is the one I
> have been looking at. I think my brain must have been focused on lunch
> when I was sending that!


> The PhyFlex and i.MX6 NAND support being in the next release was sort
> of what I thought based on the comments in the mailing list and the
> differences in the code on the git vs the actual release.
> Which brings me to my next question: what is the preferred way of
> setting up a new platform at this point in time?
> Specifically, things seem to be in a lot of flux with the i.MX systems.
> So, right now, for new systems:
> 1) The initial hardware setup should be in devicetree format under
> arch/arm/dts, correct?

Yes, correct.

> 2) Where should the DCD config go? I am looking at multiple i.MX6
> platforms with it in 4 different spots -- lowlevel.c, flash_header.c,
> an imxcfg file, as a .h file included from the imxcfg file, etc.

The imxcfg file is the way to go. Historically we assembled the flash
header as struct types in C, but that turned out to be too inflexible.

> (and
> the dmo-mx6-realq7 has both a very basic .imxcfg file and then
> manually configures everything else with writel's in lowlevel.c).

Yeah, this is done because the dmo board needs the SDRAM calibration
functions to setup SDRAM. You can ignore this if you do not have a
good reason to setup the SDRAM in code.


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 |

More information about the barebox mailing list