ipq8064: Added mtd_node for qcom_nand and updated MTDPARTS_MAXLEN to 4096
In ft_board_setup,
1. Added ipq nand device qcom,qcom_nand to mtd nodes list.
2. The maximum size of mtdparts used is 4096. Hence,
updating MTDPARTS_MAXLEN to match this value.
Change-Id: Iede752ddf72c410c6f4a6f828d8c2caef90cbf09
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
diff --git a/board/qca/common/fdt_fixup.c b/board/qca/common/fdt_fixup.c
index 1754b1c..926c2b3 100644
--- a/board/qca/common/fdt_fixup.c
+++ b/board/qca/common/fdt_fixup.c
@@ -231,6 +231,7 @@
qca_smem_flash_info_t *sfi = &qca_smem_flash_info;
struct flash_node_info nodes[] = {
{ "qcom,msm-nand", MTD_DEV_TYPE_NAND, 0 },
+ { "qcom,qcom_nand", MTD_DEV_TYPE_NAND, 0 },
{ "spinand,mt29f", MTD_DEV_TYPE_NAND, 1 },
{ "n25q128a11", MTD_DEV_TYPE_NAND, 2 },
{ NULL, 0, -1 }, /* Terminator */
diff --git a/common/cmd_mtdparts.c b/common/cmd_mtdparts.c
index 422c069..ebdc25d 100644
--- a/common/cmd_mtdparts.c
+++ b/common/cmd_mtdparts.c
@@ -123,7 +123,7 @@
/* copies of last seen 'mtdids', 'mtdparts' and 'partition' env variables */
#define MTDIDS_MAXLEN 128
-#define MTDPARTS_MAXLEN 512
+#define MTDPARTS_MAXLEN 4096
#define PARTITION_MAXLEN 16
static char last_ids[MTDIDS_MAXLEN];
static char last_parts[MTDPARTS_MAXLEN];