build/patch/kernel/mvebu-default/add-spi-flash.patch
zador-blood-stained baab6587a5 Refactor Marvell kernel sources
Rename LINUXFAMILY: marvell to mvebu
Replace default kernel with 4.4.x branch from dev configuration
2016-12-09 21:09:22 +03:00

34 lines
844 B
Diff

diff --git a/arch/arm/boot/dts/armada-388-clearfog.dtsi b/arch/arm/boot/dts/armada-388-clearfog.dtsi
index 1307e83e..e019ca23 100644
--- a/arch/arm/boot/dts/armada-388-clearfog.dtsi
+++ b/arch/arm/boot/dts/armada-388-clearfog.dtsi
@@ -263,7 +263,28 @@
compatible = "w25q32", "jedec,spi-nor";
reg = <0>; /* Chip select 0 */
spi-max-frequency = <3000000>;
- status = "enabled";
+ status = "okay";
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "uboot";
+ reg = <0x0 0x100000>;
+ };
+
+ partition@100000 {
+ label = "env";
+ reg = <0x100000 0x100000>;
+ };
+
+ partition@200000 {
+ label = "data";
+ reg = <0x200000 0x200000>;
+ };
+ };
};
};