* [U-Boot] [PATCH] p1010rdb: enable mtdparts for NAND
@ 2013-09-26 1:10 Zhao Qiang
2013-11-25 21:03 ` York Sun
0 siblings, 1 reply; 2+ messages in thread
From: Zhao Qiang @ 2013-09-26 1:10 UTC (permalink / raw)
To: u-boot
The default partition table matches the .dts files for these boards in
Linux. This allows these partitions to be used by name with U-Boot's
"nand" command.
Signed-off-by: Zhao Qiang <B45475@freescale.com>
---
include/configs/P1010RDB.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/configs/P1010RDB.h b/include/configs/P1010RDB.h
index f0d6c8b..5864402 100644
--- a/include/configs/P1010RDB.h
+++ b/include/configs/P1010RDB.h
@@ -329,6 +329,13 @@ extern unsigned long get_sdram_size(void);
#define CONFIG_SYS_NAND_BASE_PHYS CONFIG_SYS_NAND_BASE
#endif
+#define CONFIG_MTD_DEVICE
+#define CONFIG_MTD_PARTITION
+#define CONFIG_CMD_MTDPARTS
+#define MTDIDS_DEFAULT "nand0=ff800000.flash"
+#define MTDPARTS_DEFAULT \
+ "mtdparts=ff800000.flash:2m(uboot-env),1m(dtb),5m(kernel),56m(fs),-(usr)"
+
#define CONFIG_SYS_NAND_CSPR (CSPR_PHYS_ADDR(CONFIG_SYS_NAND_BASE_PHYS) \
| CSPR_PORT_SIZE_8 \
| CSPR_MSEL_NAND \
--
1.8.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] p1010rdb: enable mtdparts for NAND
2013-09-26 1:10 [U-Boot] [PATCH] p1010rdb: enable mtdparts for NAND Zhao Qiang
@ 2013-11-25 21:03 ` York Sun
0 siblings, 0 replies; 2+ messages in thread
From: York Sun @ 2013-11-25 21:03 UTC (permalink / raw)
To: u-boot
On 09/25/2013 06:10 PM, Zhao Qiang wrote:
> The default partition table matches the .dts files for these boards in
> Linux. This allows these partitions to be used by name with U-Boot's
> "nand" command.
>
> Signed-off-by: Zhao Qiang <B45475@freescale.com>
> ---
Applied to u-boot-mpc85xx/master. Thanks.
York
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-25 21:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-26 1:10 [U-Boot] [PATCH] p1010rdb: enable mtdparts for NAND Zhao Qiang
2013-11-25 21:03 ` York Sun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox