Skip to content

Commit

Permalink
powerpc/8544ds: add partition table for norflash
Browse files Browse the repository at this point in the history
create partition table for norflash.

Signed-off-by: Wang Dongsheng <Dongsheng.Wang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Wang Dongsheng authored and Kumar Gala committed Sep 12, 2012
1 parent 17ae4f0 commit 3a0f880
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/powerpc/boot/dts/mpc8544ds.dts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
reg = <0 0 0 0>; // Filled by U-Boot
};

lbc: localbus@e0005000 {
board_lbc: lbc: localbus@e0005000 {
reg = <0 0xe0005000 0 0x1000>;

ranges = <0x0 0x0 0x0 0xff800000 0x800000>;
};

board_soc: soc: soc8544@e0000000 {
Expand Down
39 changes: 39 additions & 0 deletions arch/powerpc/boot/dts/mpc8544ds.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,45 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

&board_lbc {
nor@0,0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "cfi-flash";
reg = <0x0 0x0 0x800000>;
bank-width = <2>;
device-width = <1>;

partition@0 {
reg = <0x0 0x10000>;
label = "dtb-nor";
};

partition@20000 {
reg = <0x20000 0x30000>;
label = "diagnostic-nor";
read-only;
};

partition@200000 {
reg = <0x200000 0x200000>;
label = "dink-nor";
read-only;
};

partition@400000 {
reg = <0x400000 0x380000>;
label = "kernel-nor";
};

partition@780000 {
reg = <0x780000 0x80000>;
label = "u-boot-nor";
read-only;
};
};
};

&board_soc {
enet0: ethernet@24000 {
phy-handle = <&phy0>;
Expand Down

0 comments on commit 3a0f880

Please sign in to comment.