Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: generic: Allow generating FIT image for Marduk board

Marduk is based on IMG pistachio SoC. The platform is using
MIPS UHI booting protocol and does have a proper devicetree
implement, thus it could be a part of generic kernel.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Jiaxun Yang and committed by
Thomas Bogendoerfer
666173ee cb95ea79

+32
+1
arch/mips/boot/dts/Makefile
··· 2 2 subdir-$(CONFIG_BMIPS_GENERIC) += brcm 3 3 subdir-$(CONFIG_CAVIUM_OCTEON_SOC) += cavium-octeon 4 4 subdir-$(CONFIG_MACH_PISTACHIO) += img 5 + subdir-$(CONFIG_FIT_IMAGE_FDT_MARDUK) += img 5 6 subdir-$(CONFIG_FIT_IMAGE_FDT_BOSTON) += img 6 7 subdir-$(CONFIG_MACH_INGENIC) += ingenic 7 8 subdir-$(CONFIG_LANTIQ) += lantiq
+2
arch/mips/boot/dts/img/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 dtb-$(CONFIG_FIT_IMAGE_FDT_BOSTON) += boston.dtb 3 3 4 + dtb-$(CONFIG_FIT_IMAGE_FDT_MARDUK) += pistachio_marduk.dtb 5 + 4 6 dtb-$(CONFIG_MACH_PISTACHIO) += pistachio_marduk.dtb 5 7 obj-$(CONFIG_MACH_PISTACHIO) += pistachio_marduk.dtb.o
+6
arch/mips/generic/Kconfig
··· 58 58 enable this if you wish to boot on a MIPS Boston board, as it is 59 59 expected by the bootloader. 60 60 61 + config FIT_IMAGE_FDT_MARDUK 62 + bool "Include FDT for IMG Pistachio Marduk (CI40) boards" 63 + help 64 + Enable this to include the FDT for the IMG Pistachio Marduk (CI40) 65 + from Imagination Technologies in the FIT kernel image. 66 + 61 67 config FIT_IMAGE_FDT_NI169445 62 68 bool "Include FDT for NI 169445" 63 69 help
+1
arch/mips/generic/Platform
··· 24 24 its-$(CONFIG_FIT_IMAGE_FDT_JAGUAR2) += board-jaguar2.its.S 25 25 its-$(CONFIG_FIT_IMAGE_FDT_SERVAL) += board-serval.its.S 26 26 its-$(CONFIG_FIT_IMAGE_FDT_XILFPGA) += board-xilfpga.its.S 27 + its-$(CONFIG_FIT_IMAGE_FDT_MARDUK) += board-marduk.its.S
+22
arch/mips/generic/board-marduk.its.S
··· 1 + / { 2 + images { 3 + fdt-marduk { 4 + description = "img,pistachio-marduk Device Tree"; 5 + data = /incbin/("boot/dts/img/pistachio_marduk.dtb"); 6 + type = "flat_dt"; 7 + arch = "mips"; 8 + compression = "none"; 9 + hash { 10 + algo = "sha1"; 11 + }; 12 + }; 13 + }; 14 + 15 + configurations { 16 + conf-marduk { 17 + description = "Marduk Linux kernel"; 18 + kernel = "kernel"; 19 + fdt = "fdt-marduk"; 20 + }; 21 + }; 22 + };