diff options
author | Paul Burton <paul.burton@imgtec.com> | 2016-10-05 13:18:21 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2016-10-06 12:04:20 -0400 |
commit | 3f5f0a4475e13345326061f00c68f428232ba2bc (patch) | |
tree | 0ad2657c668b23aafab4692d83c7156e55ca138f /arch/mips/boot | |
parent | eed0eabd12ef061821cbfa20d903476e07645320 (diff) |
MIPS: generic: Convert SEAD-3 to a generic board
Convert the MIPS SEAD-3 board support to be a generic board, supported
by generic kernels.
Because the SEAD-3 boot protocol was defined long ago and we don't want
to force a switch to the UHI protocol, SEAD-3 is added as a legacy board
which is detected by reading the REVISION register. This may technically
not be a valid memory read & future work will include attempting to
handle that gracefully. In practice since SEAD-3 is the only legacy
board supported by the generic kernel so far the read will only happen
on SEAD-3 boards, and even once Malta is converted the same REVISION
register exists there too. Other boards such as Boston, Ci20 & Ci40 will
use the UHI boot protocol & thus not run any of the legacy board detect
functions.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14354/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/boot')
-rw-r--r-- | arch/mips/boot/dts/mti/Makefile | 2 | ||||
-rw-r--r-- | arch/mips/boot/dts/mti/sead3.dts | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/boot/dts/mti/Makefile b/arch/mips/boot/dts/mti/Makefile index 144d776cc9f2..fcabd69b7030 100644 --- a/arch/mips/boot/dts/mti/Makefile +++ b/arch/mips/boot/dts/mti/Makefile | |||
@@ -1,5 +1,5 @@ | |||
1 | dtb-$(CONFIG_MIPS_MALTA) += malta.dtb | 1 | dtb-$(CONFIG_MIPS_MALTA) += malta.dtb |
2 | dtb-$(CONFIG_MIPS_SEAD3) += sead3.dtb | 2 | dtb-$(CONFIG_LEGACY_BOARD_SEAD3) += sead3.dtb |
3 | 3 | ||
4 | obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y)) | 4 | obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y)) |
5 | 5 | ||
diff --git a/arch/mips/boot/dts/mti/sead3.dts b/arch/mips/boot/dts/mti/sead3.dts index 2579ca51c0b6..b112879a5d9d 100644 --- a/arch/mips/boot/dts/mti/sead3.dts +++ b/arch/mips/boot/dts/mti/sead3.dts | |||
@@ -10,6 +10,7 @@ | |||
10 | #address-cells = <1>; | 10 | #address-cells = <1>; |
11 | #size-cells = <1>; | 11 | #size-cells = <1>; |
12 | compatible = "mti,sead-3"; | 12 | compatible = "mti,sead-3"; |
13 | model = "MIPS SEAD-3"; | ||
13 | interrupt-parent = <&gic>; | 14 | interrupt-parent = <&gic>; |
14 | 15 | ||
15 | chosen { | 16 | chosen { |