]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
powerpc/T1040: add mtdparts suppport for T104xRDB and T1040QDS
authorPrabhakar Kushwaha <prabhakar@freescale.com>
Wed, 2 Apr 2014 11:56:23 +0000 (17:26 +0530)
committerYork Sun <yorksun@freescale.com>
Wed, 23 Apr 2014 00:58:48 +0000 (17:58 -0700)
We use dynamical mtdparts partition instead of directly puting
mtd partitions nodes in device tree.

Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
include/configs/T1040QDS.h
include/configs/T104xRDB.h

index 63a7efccf231455d53b87c7e12aa3aedcf37014b..030ea7e66051decf14fb6d9951af4aaf2a9c23f2 100644 (file)
@@ -650,6 +650,23 @@ unsigned long get_board_ddr_clk(void);
 #define CONFIG_PHY_GIGE                /* Include GbE speed/duplex detection */
 #endif
 
+/*
+ * Dynamic MTD Partition support with mtdparts
+ */
+#ifndef CONFIG_SYS_NO_FLASH
+#define CONFIG_MTD_DEVICE
+#define CONFIG_MTD_PARTITIONS
+#define CONFIG_CMD_MTDPARTS
+#define CONFIG_FLASH_CFI_MTD
+#define MTDIDS_DEFAULT "nor0=fe8000000.nor,nand0=fff800000.flash," \
+                       "spi0=spife110000.0"
+#define MTDPARTS_DEFAULT       "mtdparts=fe8000000.nor:1m(uboot),5m(kernel)," \
+                               "128k(dtb),96m(fs),-(user);"\
+                               "fff800000.flash:2m(uboot),9m(kernel),"\
+                               "128k(dtb),96m(fs),-(user);spife110000.0:" \
+                               "2m(uboot),9m(kernel),128k(dtb),-(user)"
+#endif
+
 /*
  * Environment
  */
index eacbdf0cee0d90c35441d9f4b5129d0b57174013..ffc96f1b6fff613f125b4b4536b092684d44b84a 100644 (file)
 #define CONFIG_KGDB_BAUDRATE   230400  /* speed to run kgdb serial port */
 #endif
 
+/*
+ * Dynamic MTD Partition support with mtdparts
+ */
+#ifndef CONFIG_SYS_NO_FLASH
+#define CONFIG_MTD_DEVICE
+#define CONFIG_MTD_PARTITIONS
+#define CONFIG_CMD_MTDPARTS
+#define CONFIG_FLASH_CFI_MTD
+#define MTDIDS_DEFAULT "nor0=fe8000000.nor,nand0=fff800000.flash," \
+                       "spi0=spife110000.0"
+#define MTDPARTS_DEFAULT       "mtdparts=fe8000000.nor:1m(uboot),5m(kernel)," \
+                               "128k(dtb),96m(fs),-(user);"\
+                               "fff800000.flash:2m(uboot),9m(kernel),"\
+                               "128k(dtb),96m(fs),-(user);spife110000.0:" \
+                               "2m(uboot),9m(kernel),128k(dtb),-(user)"
+#endif
+
 /*
  * Environment Configuration
  */