diff options
-rw-r--r-- | board/freescale/mx6qsabreauto/mx6qsabreauto.c | 3 | ||||
-rw-r--r-- | board/freescale/mx6sxsabreauto/mx6sxsabreauto.c | 3 | ||||
-rw-r--r-- | include/configs/mx6sabreandroid_common.h | 4 | ||||
-rw-r--r-- | include/configs/mx6sxsabreautoandroid.h | 4 |
4 files changed, 10 insertions, 4 deletions
diff --git a/board/freescale/mx6qsabreauto/mx6qsabreauto.c b/board/freescale/mx6qsabreauto/mx6qsabreauto.c index 9663013..f34c796 100644 --- a/board/freescale/mx6qsabreauto/mx6qsabreauto.c +++ b/board/freescale/mx6qsabreauto/mx6qsabreauto.c @@ -1007,8 +1007,7 @@ void board_fastboot_setup(void) if (!getenv("fastboot_dev")) setenv("fastboot_dev", "nand"); if (!getenv("fbparts")) - setenv("fbparts", - "16m@16m(boot) 16m@32m(recovery) 810m@48m(android_root)ubifs"); + setenv("fbparts", ANDROID_FASTBOOT_NAND_PARTS); if (!getenv("bootcmd")) setenv("bootcmd", "nand read ${loadaddr} ${boot_nand_offset} " diff --git a/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c b/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c index 0f0afb9..c18a83d 100644 --- a/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c +++ b/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c @@ -964,8 +964,7 @@ void board_fastboot_setup(void) if (!getenv("fastboot_dev")) setenv("fastboot_dev", "nand"); if (!getenv("fbparts")) - setenv("fbparts", - "16m@16m(boot) 16m@32m(recovery) 810m@48m(android_root)ubifs"); + setenv("fbparts", ANDROID_FASTBOOT_NAND_PARTS); if (!getenv("bootcmd")) setenv("bootcmd", "nand read ${loadaddr} ${boot_nand_offset} " diff --git a/include/configs/mx6sabreandroid_common.h b/include/configs/mx6sabreandroid_common.h index 6602c7d..c9d9576 100644 --- a/include/configs/mx6sabreandroid_common.h +++ b/include/configs/mx6sabreandroid_common.h @@ -54,4 +54,8 @@ "fdt_high=0xffffffff\0" \ "initrd_high=0xffffffff\0" \ +#if defined(CONFIG_FASTBOOT_STORAGE_NAND) +#define ANDROID_FASTBOOT_NAND_PARTS "16m@64m(boot) 16m@80m(recovery) 810m@96m(android_root)ubifs" +#endif + #endif /* MX6_SABRE_ANDROID_COMMON_H */ diff --git a/include/configs/mx6sxsabreautoandroid.h b/include/configs/mx6sxsabreautoandroid.h index ec1cc76..905debf 100644 --- a/include/configs/mx6sxsabreautoandroid.h +++ b/include/configs/mx6sxsabreautoandroid.h @@ -53,4 +53,8 @@ "fdt_high=0xffffffff\0" \ "initrd_high=0xffffffff\0" \ +#if defined(CONFIG_FASTBOOT_STORAGE_NAND) +#define ANDROID_FASTBOOT_NAND_PARTS "16m@64m(boot) 16m@80m(recovery) 810m@96m(android_root)ubifs" +#endif + #endif |