summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/toradex/common/tegra2_partitions.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/toradex/common/tegra2_partitions.c b/board/toradex/common/tegra2_partitions.c
index b8d8bf29ba1..c64d5e7299c 100644
--- a/board/toradex/common/tegra2_partitions.c
+++ b/board/toradex/common/tegra2_partitions.c
@@ -103,7 +103,11 @@ int nvtegra_read_partition_table(nvtegra_parttable_t * pt)
pt_logical = readw(bct_start + BCT_PTINFO_OFFSET);
/* In case we are running with a recovery BCT missing the partition
table offset information */
+#ifdef CONFIG_ENV_IS_IN_MMC
+ if (1) {
+#else
if (pt_logical == 0) {
+#endif
/* BCT partition size is 3 M in our default layout */
pt_logical = 3 * 1024 * 1024 / nand_info->writesize;
}