[U-Boot] [PATCH 4/9] mx7: set soc environment according to exact SoC type
Fabio Estevam
festevam at gmail.com
Mon Jul 4 14:27:30 CEST 2016
Hi Stefan,
On Sun, Jul 3, 2016 at 4:33 PM, Stefan Agner <stefan at agner.ch> 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.
More information about the U-Boot
mailing list