[PATCH 5/6] ARM i.MX6: sabrelite: move flash partitions into device tree
Philipp Zabel
p.zabel at pengutronix.de
Mon Nov 18 06:06:36 EST 2013
Signed-off-by: Philipp Zabel <p.zabel at pengutronix.de>
---
arch/arm/boards/freescale-mx6-sabrelite/board.c | 2 --
arch/arm/dts/imx6q-sabrelite.dts | 17 +++++++++++++++++
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boards/freescale-mx6-sabrelite/board.c b/arch/arm/boards/freescale-mx6-sabrelite/board.c
index 3584951..22be6f8 100644
--- a/arch/arm/boards/freescale-mx6-sabrelite/board.c
+++ b/arch/arm/boards/freescale-mx6-sabrelite/board.c
@@ -123,8 +123,6 @@ static int sabrelite_devices_init(void)
armlinux_set_bootparams((void *)0x10000100);
armlinux_set_architecture(3769);
- devfs_add_partition("m25p0", 0, SZ_512K, DEVFS_PARTITION_FIXED, "self0");
- devfs_add_partition("m25p0", SZ_512K, SZ_512K, DEVFS_PARTITION_FIXED, "env0");
return 0;
}
diff --git a/arch/arm/dts/imx6q-sabrelite.dts b/arch/arm/dts/imx6q-sabrelite.dts
index 97372dd..0d05574 100644
--- a/arch/arm/dts/imx6q-sabrelite.dts
+++ b/arch/arm/dts/imx6q-sabrelite.dts
@@ -19,6 +19,11 @@
chosen {
linux,stdout-path = &uart2;
+
+ environment at 0 {
+ compatible = "barebox,environment";
+ device-path = &flash, "partname:barebox-environment";
+ };
};
memory {
@@ -80,6 +85,18 @@
compatible = "sst,sst25vf016b", "m25p80";
spi-max-frequency = <20000000>;
reg = <0>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition at 0 {
+ label = "barebox";
+ reg = <0x0 0x80000>;
+ };
+
+ partition at 1 {
+ label = "barebox-environment";
+ reg = <0x80000 0x80000>;
+ };
};
};
--
1.8.4.2
More information about the barebox
mailing list