apm821xx: convert legacy nand partition layout
in order to get nvmem-cells to work on AP and routers (Netgears WNDR4700). The nvmem-cell needs to be within a fixed-partition dt-node. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
This commit is contained in:
@@ -251,9 +251,6 @@
|
|||||||
nand-ecc-algo = "hamming";
|
nand-ecc-algo = "hamming";
|
||||||
nand-ecc-step-size = <256>;
|
nand-ecc-step-size = <256>;
|
||||||
nand-ecc-strength = <1>;
|
nand-ecc-strength = <1>;
|
||||||
|
|
||||||
#address-cells = <1>;
|
|
||||||
#size-cells = <1>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -38,14 +38,18 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&EBC0 {
|
&ndfc {
|
||||||
/* Ikarem has 32MB of NAND */
|
/* Ikarem has 32MB of NAND */
|
||||||
ndfc@1,0 {
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
/* 32 MiB NAND Flash */
|
|
||||||
nand {
|
nand {
|
||||||
nand-is-boot-medium;
|
nand-is-boot-medium;
|
||||||
|
|
||||||
|
partitions {
|
||||||
|
compatible = "fixed-partitions";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
partition@0 {
|
partition@0 {
|
||||||
label = "u-boot";
|
label = "u-boot";
|
||||||
reg = <0x00000000 0x00150000>;
|
reg = <0x00000000 0x00150000>;
|
||||||
|
|||||||
@@ -42,13 +42,18 @@
|
|||||||
dr_mode = "host";
|
dr_mode = "host";
|
||||||
};
|
};
|
||||||
|
|
||||||
&EBC0 {
|
&ndfc {
|
||||||
/* Buckminster has 1GiB of NAND */
|
/* Buckminster has 1GiB of NAND */
|
||||||
ndfc@1,0 {
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
nand {
|
nand {
|
||||||
nand-is-boot-medium;
|
nand-is-boot-medium;
|
||||||
|
|
||||||
|
partitions {
|
||||||
|
compatible = "fixed-partitions";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
partition@0 {
|
partition@0 {
|
||||||
label = "u-boot";
|
label = "u-boot";
|
||||||
reg = <0x00000000 0x00100000>;
|
reg = <0x00000000 0x00100000>;
|
||||||
|
|||||||
@@ -28,13 +28,18 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&EBC0 {
|
&ndfc {
|
||||||
ndfc@1,0 {
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
/* 32 MiB SLC NAND Flash */
|
/* 32 MiB SLC NAND Flash */
|
||||||
|
|
||||||
nand {
|
nand {
|
||||||
nand-is-boot-medium;
|
nand-is-boot-medium;
|
||||||
|
|
||||||
|
partitions {
|
||||||
|
compatible = "fixed-partitions";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
partition@0 {
|
partition@0 {
|
||||||
label = "u-boot";
|
label = "u-boot";
|
||||||
reg = <0x00000000 0x00100000>;
|
reg = <0x00000000 0x00100000>;
|
||||||
|
|||||||
@@ -169,14 +169,17 @@
|
|||||||
dr_mode = "host";
|
dr_mode = "host";
|
||||||
};
|
};
|
||||||
|
|
||||||
&EBC0 {
|
&ndfc {
|
||||||
ndfc: ndfc@1,0 {
|
|
||||||
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
/* 128 MiB Nand Flash */
|
/* 128 MiB Nand Flash */
|
||||||
nand {
|
nand {
|
||||||
nand-is-boot-medium;
|
nand-is-boot-medium;
|
||||||
|
|
||||||
|
partitions {
|
||||||
|
compatible = "fixed-partitions";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
partition@0 {
|
partition@0 {
|
||||||
label = "uboot";
|
label = "uboot";
|
||||||
reg = <0x00000000 0x00180000>;
|
reg = <0x00000000 0x00180000>;
|
||||||
|
|||||||
Reference in New Issue
Block a user