From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 8 Nov 2016 22:44:18 -0500 Subject: [U-Boot] [PATCH RESEND 0/9] sunxi: chip: Enable the DIP auto-detection In-Reply-To: References: Message-ID: <20161109034418.GL6637@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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: