MIPS: Loongson: Get host bridge information
authorTiezhu Yang <yangtiezhu@loongson.cn>
Fri, 3 Apr 2020 09:29:49 +0000 (17:29 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 28 Apr 2020 11:26:09 +0000 (13:26 +0200)
commit8c88cc53ffa62b4bb05931c878bcf3dd10db66b5
tree71d35c56e18ae3cfb15cdf5b7f9e611d411e180b
parent618c35556e5f2156c8bc5cd43664363838e38e45
MIPS: Loongson: Get host bridge information

Read the address of host bridge configuration space to get the vendor ID
and device ID of host bridge, and then we can distinguish various types
of host bridge such as LS7A or RS780E.

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/mach-loongson64/boot_param.h
arch/mips/loongson64/env.c