diff options
| author | Keguang Zhang <keguang.zhang@gmail.com> | 2025-07-16 19:25:15 +0800 |
|---|---|---|
| committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2025-08-29 22:34:31 +0200 |
| commit | ec7c2a107a59a60079eff3308e791a3441231f2e (patch) | |
| tree | d4d4110596f538d9955fd6e4a3fb65f4e84fa586 /arch/mips/boot | |
| parent | 11741215e287454bd4c6e9a4872790a1a2c0e0ae (diff) | |
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: Keguang Zhang <keguang.zhang@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/boot')
| -rw-r--r-- | arch/mips/boot/dts/loongson/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/boot/dts/loongson/Makefile b/arch/mips/boot/dts/loongson/Makefile index e8f76e7ac303..8ee12504d353 100644 --- a/arch/mips/boot/dts/loongson/Makefile +++ b/arch/mips/boot/dts/loongson/Makefile @@ -1,4 +1,8 @@ # 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 |
