]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Loongson64: Distinguish firmware dependencies DTB/LEFI
authorQing Zhang <zhangqing@loongson.cn>
Mon, 15 Mar 2021 07:49:59 +0000 (15:49 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 25 Mar 2021 09:44:01 +0000 (10:44 +0100)
commite107216542b433e5a380cb3c7a5bf202d9af0f7b
treee16622c38a8a4ea9724cb3fdd9030599f7c51ece
parent8b726023c435b8fafe4b16ca58b693241241b999
MIPS: Loongson64: Distinguish firmware dependencies DTB/LEFI

Add DTB boot support, only support Loongson-2K1000 processor
for now, determine whether to use the built-in DTB or the DTB
from the firmware by checking the range of CKSEG0 and XKPHYS.
loongson_fw_interface will be used in the future.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Qing Zhang <zhangqing@loongson.cn>
Tested-by: Ming Wang <wangming01@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/mach-loongson64/loongson.h
arch/mips/loongson64/env.c
arch/mips/loongson64/init.c