Skip to content

Commit

Permalink
ARM: mvebu: Add BootROM to Armada 370/XP device tree
Browse files Browse the repository at this point in the history
In order to access the SoC BootROM, we need to declare a mapping
(through a ranges property). The mbus driver will use this property
to allocate a suitable address decoding window.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
  • Loading branch information
Ezequiel Garcia authored and Jason Cooper committed Aug 6, 2013
1 parent 5e12a61 commit 0cd3754
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 6 deletions.
3 changes: 2 additions & 1 deletion arch/arm/boot/dts/armada-370-db.dts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
};

soc {
ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000>;
ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>;

internal-regs {
serial@12000 {
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/boot/dts/armada-370-mirabox.dts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
};

soc {
ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000>;
ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>;

internal-regs {
serial@12000 {
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/boot/dts/armada-370-rd.dts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
};

soc {
ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000>;
ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>;

internal-regs {
serial@12000 {
Expand Down
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/armada-370.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
soc {
compatible = "marvell,armada370-mbus", "simple-bus";

bootrom {
compatible = "marvell,bootrom";
reg = <MBUS_ID(0x01, 0xe0) 0 0x100000>;
};

internal-regs {
system-controller@18200 {
compatible = "marvell,armada-370-xp-system-controller";
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/boot/dts/armada-xp-db.dts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
};

soc {
ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000>;
ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000>;

internal-regs {
serial@12000 {
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/boot/dts/armada-xp-gp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
};

soc {
ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000>;
ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000>;

internal-regs {
serial@12000 {
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
};

soc {
ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000>;
ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000>;

internal-regs {
serial@12000 {
Expand Down
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/armada-xp.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
soc {
compatible = "marvell,armadaxp-mbus", "simple-bus";

bootrom {
compatible = "marvell,bootrom";
reg = <MBUS_ID(0x01, 0x1d) 0 0x100000>;
};

internal-regs {
L2: l2-cache {
compatible = "marvell,aurora-system-cache";
Expand Down

0 comments on commit 0cd3754

Please sign in to comment.