Skip to content

Commit d5be4ae

Browse files
alexandrebellonipaulburton
authored andcommitted
mips: mscc: build FIT image for Ocelot
Ocelot now has a u-boot port, allow building FIT images instead of relying on the legacy detection and builtin DTB. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Reviewed-by: James Hogan <jhogan@kernel.org> Signed-off-by: Paul Burton <paul.burton@mips.com> Patchwork: https://patchwork.linux-mips.org/patch/19632/ Cc: Ralf Baechle <ralf@linux-mips.org> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org
1 parent 840267e commit d5be4ae

4 files changed

Lines changed: 35 additions & 3 deletions

File tree

‎arch/mips/boot/dts/mscc/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
dtb-$(CONFIG_LEGACY_BOARD_OCELOT) += ocelot_pcb123.dtb
1+
dtb-$(CONFIG_MSCC_OCELOT) += ocelot_pcb123.dtb
22

33
obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y))

‎arch/mips/generic/Kconfig‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ config LEGACY_BOARD_OCELOT
3535
depends on LEGACY_BOARD_SEAD3=n
3636
select LEGACY_BOARDS
3737
select MSCC_OCELOT
38+
select SYS_HAS_EARLY_PRINTK
39+
select USE_GENERIC_EARLY_PRINTK_8250
3840

3941
config MSCC_OCELOT
4042
bool
4143
select GPIOLIB
4244
select MSCC_OCELOT_IRQ
43-
select SYS_HAS_EARLY_PRINTK
44-
select USE_GENERIC_EARLY_PRINTK_8250
4545

4646
comment "FIT/UHI Boards"
4747

@@ -65,6 +65,14 @@ config FIT_IMAGE_FDT_XILFPGA
6565
Enable this to include the FDT for the MIPSfpga platform
6666
from Imagination Technologies in the FIT kernel image.
6767

68+
config FIT_IMAGE_FDT_OCELOT_PCB123
69+
bool "Include FDT for Microsemi Ocelot PCB123"
70+
select MSCC_OCELOT
71+
help
72+
Enable this to include the FDT for the Ocelot PCB123 platform
73+
from Microsemi in the FIT kernel image.
74+
This requires u-boot on the platform.
75+
6876
config VIRT_BOARD_RANCHU
6977
bool "Support Ranchu platform for Android emulator"
7078
help

‎arch/mips/generic/Platform‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ all-$(CONFIG_MIPS_GENERIC) := vmlinux.gz.itb
1616
its-y := vmlinux.its.S
1717
its-$(CONFIG_FIT_IMAGE_FDT_BOSTON) += board-boston.its.S
1818
its-$(CONFIG_FIT_IMAGE_FDT_NI169445) += board-ni169445.its.S
19+
its-$(CONFIG_FIT_IMAGE_FDT_OCELOT_PCB123) += board-ocelot_pcb123.its.S
1920
its-$(CONFIG_FIT_IMAGE_FDT_XILFPGA) += board-xilfpga.its.S
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
2+
/ {
3+
images {
4+
fdt@ocelot_pcb123 {
5+
description = "MSCC Ocelot PCB123 Device Tree";
6+
data = /incbin/("boot/dts/mscc/ocelot_pcb123.dtb");
7+
type = "flat_dt";
8+
arch = "mips";
9+
compression = "none";
10+
hash@0 {
11+
algo = "sha1";
12+
};
13+
};
14+
};
15+
16+
configurations {
17+
conf@ocelot_pcb123 {
18+
description = "Ocelot Linux kernel";
19+
kernel = "kernel@0";
20+
fdt = "fdt@ocelot_pcb123";
21+
};
22+
};
23+
};

0 commit comments

Comments
 (0)