configblock.c: add configblock creation for iMX6 modules
authorMax Krummenacher <max.krummenacher@toradex.com>
Thu, 7 May 2015 14:10:11 +0000 (16:10 +0200)
committerMax Krummenacher <max.krummenacher@toradex.com>
Thu, 7 May 2015 15:32:24 +0000 (17:32 +0200)
board/toradex/common/configblock.c

index f7bfee62bd560eb00ccd26896935a0085487d5c8..11e2ba2b5578350ed0a2b3fe25645bf25dec9f8d 100644 (file)
@@ -248,8 +248,26 @@ static int get_cfgblock_interactive(void)
 
        soc = getenv("soc");
        if (!strcmp("mx6", soc)) {
-               printf("Interactive mode on iMX6 modules not yet supported\n");
-               return -1;
+#ifdef CONFIG_MACH_TYPE
+               if (it == 'y' || it == 'Y')
+                       trdx_hw_tag.prodid = APALIS_IMX6Q_IT;
+               else
+                       if (gd->ram_size == 0x40000000)
+                               trdx_hw_tag.prodid = APALIS_IMX6Q;
+                       else
+                               trdx_hw_tag.prodid = APALIS_IMX6D;
+#else
+               if (it == 'y' || it == 'Y')
+                       if (gd->ram_size == 0x20000000)
+                               trdx_hw_tag.prodid = COLIBRI_IMX6DL_IT;
+                       else
+                               trdx_hw_tag.prodid = COLIBRI_IMX6S_IT;
+                else
+                       if (gd->ram_size == 0x20000000)
+                               trdx_hw_tag.prodid = COLIBRI_IMX6DL;
+                       else
+                               trdx_hw_tag.prodid = COLIBRI_IMX6S;
+#endif /* CONFIG_MACH_TYPE */
        } else if (!strcmp("tegra20", soc)) {
                if (it == 'y' || it == 'Y')
                        if (gd->ram_size == 0x10000000)