[U-Boot] [PATCH] powerpc/BSC9131RDB: Add mtdparts suppport

2014-09-22 Thread Ashish Kumar
  * Use mtdparts to create partitions dynamically rather
than using static partitions in device tree

Signed-off-by: Ashish Kumar ashish.ku...@freescale.com
---
 include/configs/BSC9131RDB.h |   15 +++
 1 files changed, 15 insertions(+), 0 deletions(-)

V2: - Reduce uboot and dtb size in NAND
- Remove user partition from NAND and SPI

diff --git a/include/configs/BSC9131RDB.h b/include/configs/BSC9131RDB.h
index 56a3e94..7cc3fe0 100644
--- a/include/configs/BSC9131RDB.h
+++ b/include/configs/BSC9131RDB.h
@@ -393,6 +393,21 @@ extern unsigned long get_sdram_size(void);
 #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 nand0=ff80.flash, \
+   spi0=spiff707000.0
+#define MTDPARTS_DEFAULT mtdparts=ff80.flash:1m(uboot), \
+   8m(kernel),512k(dtb),-(fs);spiff707000.0: \
+   1m(uboot),4m(kernel),512k(dtb),11m(fs)
+#endif
+
+/*
  * Environment Configuration
  */
 
-- 
1.7.6.GIT

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] powerpc/BSC9131RDB: Add mtdparts suppport

2014-09-22 Thread Ashish Kumar
  * Use mtdparts to create partitions dynamically rather
than using static partitions in device tree

Signed-off-by: Ashish Kumar ashish.ku...@freescale.com
---
 include/configs/BSC9131RDB.h |   15 +++
 1 files changed, 15 insertions(+), 0 deletions(-)

V2: - Reduce uboot and dtb size in NAND
- Remove user partition from NAND and NAND

diff --git a/include/configs/BSC9131RDB.h b/include/configs/BSC9131RDB.h
index 56a3e94..7cc3fe0 100644
--- a/include/configs/BSC9131RDB.h
+++ b/include/configs/BSC9131RDB.h
@@ -393,6 +393,21 @@ extern unsigned long get_sdram_size(void);
 #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 nand0=ff80.flash, \
+   spi0=spiff707000.0
+#define MTDPARTS_DEFAULT mtdparts=ff80.flash:1m(uboot), \
+   8m(kernel),512k(dtb),-(fs);spiff707000.0: \
+   1m(uboot),4m(kernel),512k(dtb),11m(fs)
+#endif
+
+/*
  * Environment Configuration
  */
 
-- 
1.7.6.GIT

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] powerpc/BSC9131RDB: Add mtdparts suppport

2014-09-22 Thread Ashish Kumar
Sorry
Please ignore this patch, since version info is incorrect 

Regards
Ashish

-Original Message-
From: Ashish Kumar [mailto:ashish.ku...@freescale.com] 
Sent: Monday, September 22, 2014 8:06 PM
To: u-boot@lists.denx.de
Cc: Wood Scott-B07421; Sun York-R58495; Kumar Ashish-B37399
Subject: [PATCH] powerpc/BSC9131RDB: Add mtdparts suppport

  * Use mtdparts to create partitions dynamically rather
than using static partitions in device tree

Signed-off-by: Ashish Kumar ashish.ku...@freescale.com
---
 include/configs/BSC9131RDB.h |   15 +++
 1 files changed, 15 insertions(+), 0 deletions(-)

V2: - Reduce uboot and dtb size in NAND
- Remove user partition from NAND and NAND

diff --git a/include/configs/BSC9131RDB.h b/include/configs/BSC9131RDB.h index 
56a3e94..7cc3fe0 100644
--- a/include/configs/BSC9131RDB.h
+++ b/include/configs/BSC9131RDB.h
@@ -393,6 +393,21 @@ extern unsigned long get_sdram_size(void);  #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 nand0=ff80.flash, \
+   spi0=spiff707000.0
+#define MTDPARTS_DEFAULT mtdparts=ff80.flash:1m(uboot), \
+   8m(kernel),512k(dtb),-(fs);spiff707000.0: \
+   1m(uboot),4m(kernel),512k(dtb),11m(fs)
+#endif
+
+/*
  * Environment Configuration
  */
 
--
1.7.6.GIT

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] powerpc/BSC9131RDB: add mtdparts suppport

2014-09-10 Thread Ashish Kumar
Use mtdparts to create partitions dynamically rather
than using static partitions in device tree

Signed-off-by: Ashish Kumar ashish.ku...@freescale.com
---
 include/configs/BSC9131RDB.h |   15 +++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/include/configs/BSC9131RDB.h b/include/configs/BSC9131RDB.h
index 56a3e94..5c7b64e 100644
--- a/include/configs/BSC9131RDB.h
+++ b/include/configs/BSC9131RDB.h
@@ -393,6 +393,21 @@ extern unsigned long get_sdram_size(void);
 #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 nand0=ff80.flash, \
+   spi0=SPIFLASH0
+#define MTDPARTS_DEFAULT mtdparts=ff80.flash:3m(uboot), \
+   8m(kernel),1m(dtb),-(user);SPIFLASH0: \
+   1m(uboot),4m(kernel),512k(dtb),11m(fs),-(user)
+#endif
+
+/*
  * Environment Configuration
  */
 
-- 
1.7.6.GIT

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot