From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio Estevam Date: Mon, 4 Jul 2016 09:27:30 -0300 Subject: [U-Boot] [PATCH 4/9] mx7: set soc environment according to exact SoC type In-Reply-To: <20160703193354.25900-5-stefan@agner.ch> References: <20160703193354.25900-1-stefan@agner.ch> <20160703193354.25900-5-stefan@agner.ch> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Stefan, On Sun, Jul 3, 2016 at 4:33 PM, Stefan Agner wrote: > +#ifdef CONFIG_ARCH_MISC_INIT > +int arch_misc_init(void) > +{ > + if (is_mx7d()) > + setenv("soc", "imx7d"); > + else > + setenv("soc", "imx7s"); > + > + return 0; > +} > +#endif For SoC detection type in run-time we usually use "ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG". Take a look at udoo, wandboard, mx6cubox, mx6sabresd.c for reference. It would be nice to keep it consistent here too.