summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2015-05-07 16:10:11 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2015-05-07 17:32:24 +0200
commitdb9abc87f80ef8bfc91ce9578f32e2a33dbaed4b (patch)
treec009e177ddfd1cd67d813fd753c797a5d00c69f2
parentc77659ac472fede04ce3129e3ab8236df0817424 (diff)
configblock.c: add configblock creation for iMX6 modules
-rw-r--r--board/toradex/common/configblock.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/board/toradex/common/configblock.c b/board/toradex/common/configblock.c
index f7bfee62bd..11e2ba2b55 100644
--- a/board/toradex/common/configblock.c
+++ b/board/toradex/common/configblock.c
@@ -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)