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)
commit8e2fe0ecfb96d7b1baa9720e36305515c3079e8c
treee16622c38a8a4ea9724cb3fdd9030599f7c51ece
parentb1a792601f264df7172a728f1a83a05b6b399dfb
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