[U-Boot] [PATCH RESEND 0/9] sunxi: chip: Enable the DIP auto-detection

Tom Rini trini at konsulko.com
Wed Nov 9 04:44:18 CET 2016


On Tue, Nov 08, 2016 at 11:19:20AM +0100, Maxime Ripard wrote:

[snip]
> I think the biggest drawback at the moment is that we maintain a list of
> DIPs and the actions needed directly into the C code, which will make it
> quite hard to customise for end users and tedious to maintain in the long
> term. I couldn't really get my head around a better solution, so feel free
> to suggest alternative approaches.

A thought I had after reading over 8/9 in the series was, could we try
something like:
- In C, loop over everything in w1 and set environment variables based
  on each thing we find.
- In a CONFIG_PREBOOT load a U-Boot shell script in that will look for
  the right env variables to be set for a given DIP and then do whatever
  is needed to load in the overlay.

Does that make sense?

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161108/7afd37da/attachment.sig>


More information about the U-Boot mailing list