env.c (8c88cc53ffa62b4bb05931c878bcf3dd10db66b5) | env.c (68fbb9721ea76b2a3088b749e004456f2de05b9f) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Based on Ocelot Linux port, which is 4 * Copyright 2001 MontaVista Software Inc. 5 * Author: jsun@mvista.com or jsun@junsun.net 6 * 7 * Copyright 2003 ICT CAS 8 * Author: Michael Guo <guoyi@ict.ac.cn> --- 178 unchanged lines hidden (view full) --- 187 /* Read the ID of PCI host bridge to detect bridge type */ 188 id = readl(HOST_BRIDGE_CONFIG_ADDR); 189 vendor = id & 0xffff; 190 device = (id >> 16) & 0xffff; 191 192 if (vendor == PCI_VENDOR_ID_LOONGSON && device == 0x7a00) { 193 pr_info("The bridge chip is LS7A\n"); 194 loongson_sysconf.bridgetype = LS7A; | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Based on Ocelot Linux port, which is 4 * Copyright 2001 MontaVista Software Inc. 5 * Author: jsun@mvista.com or jsun@junsun.net 6 * 7 * Copyright 2003 ICT CAS 8 * Author: Michael Guo <guoyi@ict.ac.cn> --- 178 unchanged lines hidden (view full) --- 187 /* Read the ID of PCI host bridge to detect bridge type */ 188 id = readl(HOST_BRIDGE_CONFIG_ADDR); 189 vendor = id & 0xffff; 190 device = (id >> 16) & 0xffff; 191 192 if (vendor == PCI_VENDOR_ID_LOONGSON && device == 0x7a00) { 193 pr_info("The bridge chip is LS7A\n"); 194 loongson_sysconf.bridgetype = LS7A; |
195 loongson_sysconf.early_config = ls7a_early_config; |
|
195 } else { 196 pr_info("The bridge chip is RS780E or SR5690\n"); 197 loongson_sysconf.bridgetype = RS780E; | 196 } else { 197 pr_info("The bridge chip is RS780E or SR5690\n"); 198 loongson_sysconf.bridgetype = RS780E; |
199 loongson_sysconf.early_config = rs780e_early_config; |
|
198 } 199} | 200 } 201} |