mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-06 20:09:32 +00:00
mx7: set soc environment according to exact SoC type
This can be useful if the same U-Boot binary is used for boards available with a i.MX 7Solo and i.MX 7Dual. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
c4483093f3
commit
ec7fde3ebf
2 changed files with 16 additions and 0 deletions
|
@ -248,6 +248,20 @@ int arch_cpu_init(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_ARCH_MISC_INIT
|
||||||
|
int arch_misc_init(void)
|
||||||
|
{
|
||||||
|
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
|
||||||
|
if (is_mx7d())
|
||||||
|
setenv("soc", "imx7d");
|
||||||
|
else
|
||||||
|
setenv("soc", "imx7s");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SERIAL_TAG
|
#ifdef CONFIG_SERIAL_TAG
|
||||||
void get_board_serial(struct tag_serialnr *serialnr)
|
void get_board_serial(struct tag_serialnr *serialnr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -28,6 +28,8 @@
|
||||||
/* Enable iomux-lpsr support */
|
/* Enable iomux-lpsr support */
|
||||||
#define CONFIG_IOMUX_LPSR
|
#define CONFIG_IOMUX_LPSR
|
||||||
|
|
||||||
|
#define CONFIG_ARCH_MISC_INIT
|
||||||
|
|
||||||
#define CONFIG_DISPLAY_CPUINFO
|
#define CONFIG_DISPLAY_CPUINFO
|
||||||
#define CONFIG_DISPLAY_BOARDINFO
|
#define CONFIG_DISPLAY_BOARDINFO
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue