]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: ventana: added cputype env var
authorTim Harvey <tharvey@gateworks.com>
Fri, 8 Aug 2014 05:35:42 +0000 (22:35 -0700)
committerStefano Babic <sbabic@denx.de>
Tue, 9 Sep 2014 13:19:03 +0000 (15:19 +0200)
There are many similarities between the IMX6QUAD/IMX6DUAL and there are
many similarities between the IMX6SOLO/IMX6DUALITE. Add a 'soctype' env
variable that tells you which type you have.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
board/gateworks/gw_ventana/gw_ventana.c

index 5c98eb490866c674e5b8e22329d4c144563c8a4b..452a9053f51c0e9915d05078a73effb58ee18a8b 100644 (file)
@@ -1348,6 +1348,7 @@ int misc_init_r(void)
                else if (is_cpu_type(MXC_CPU_MX6DL) ||
                         is_cpu_type(MXC_CPU_MX6SOLO))
                        cputype = "imx6dl";
+               setenv("soctype", cputype);
                if (8 << (ventana_info.nand_flash_size-1) >= 2048)
                        setenv("flash_layout", "large");
                else