Commit ec7c2a10 authored by Keguang Zhang's avatar Keguang Zhang Committed by Thomas Bogendoerfer
Browse files

MIPS: loongson: Add built-in DTB support



Since the current bootloader for Loongson-1 does not support FDT,
introduce CONFIG_BUILTIN_DTB_NAME to enable a built-in DTB.

Signed-off-by: default avatarKeguang Zhang <keguang.zhang@gmail.com>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent 11741215
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0

ifneq ($(CONFIG_BUILTIN_DTB_NAME),)
dtb-y	:= $(addsuffix .dtb, $(CONFIG_BUILTIN_DTB_NAME))
else
dtb-$(CONFIG_MACH_LOONGSON64)	+= loongson64_2core_2k1000.dtb
dtb-$(CONFIG_MACH_LOONGSON64)	+= loongson64c_4core_ls7a.dtb
dtb-$(CONFIG_MACH_LOONGSON64)	+= loongson64c_4core_rs780e.dtb
@@ -10,3 +14,4 @@ dtb-$(CONFIG_MACH_LOONGSON32) += cq-t300b.dtb
dtb-$(CONFIG_MACH_LOONGSON32)	+= ls1b-demo.dtb
dtb-$(CONFIG_MACH_LOONGSON32)	+= lsgz_1b_dev.dtb
dtb-$(CONFIG_MACH_LOONGSON32)	+= smartloong-1c.dtb
endif
+8 −0
Original line number Diff line number Diff line
@@ -36,3 +36,11 @@ config LOONGSON1_LS1C
endchoice

endif # MACH_LOONGSON32

config BUILTIN_DTB_NAME
	string "Source file for built-in DTB"
	depends on BUILTIN_DTB
	help
	  Base name (without suffix, relative to arch/mips/boot/dts/loongson)
	  for the DTS file that will be used to produce the DTB linked into
	  the kernel.