diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2013-09-03 08:33:33 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-09-04 08:32:17 +0200 |
commit | c9b62b2cb28edea986472f6799af82562d505717 (patch) | |
tree | 2861d3c2e4fd96fe5f9009367122f5386f1aa58d /arch/mips/dts | |
parent | 60c754e34d35b775091816da85c31eaf155153e5 (diff) | |
download | barebox-c9b62b2cb28edea986472f6799af82562d505717.tar.gz barebox-c9b62b2cb28edea986472f6799af82562d505717.tar.xz |
MIPS: qemu-malta: switch to devicetree
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips/dts')
-rw-r--r-- | arch/mips/dts/qemu-malta.dts | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/mips/dts/qemu-malta.dts b/arch/mips/dts/qemu-malta.dts index c4dcf056c1..4057729b57 100644 --- a/arch/mips/dts/qemu-malta.dts +++ b/arch/mips/dts/qemu-malta.dts @@ -6,7 +6,40 @@ model = "qemu malta"; compatible = "qemu,malta"; + chosen { + environment@0 { + compatible = "barebox,environment"; + device-path = &nor0, "partname:barebox-environment"; + }; + }; + memory { reg = <0x00000000 0x10000000>; }; + + uart0: serial@b00003f8 { + compatible = "ns16550a"; + reg = <0xb00003f8 0x08>; + reg-shift = <0>; + /* no matter for emulated port */ + clock-frequency = <1843200>; + }; + + nor0: flash@be000000 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "cfi-flash"; + reg = <0xbe000000 0x00400000>; + + partition@0 { + label = "barebox"; + reg = <0 0x80000>; + read-only; + }; + + partition@80000 { + label = "barebox-environment"; + reg = <0x80000 0x10000>; + }; + }; }; |