From f112f9f912db901206b57f0e845cb43dd2263dd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Thu, 3 Jan 2019 11:39:05 +0200 Subject: amdfam10 boards: Use defaults for get_pci1234() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All these boards use the same default initialiser. As this is initialized late after device enumeration, it can't really be used to alter platform configuration. Change-Id: I30fc0298081df0442ec4e9a527340b93a3cd6106 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/30648 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans Reviewed-by: Angel Pons --- src/northbridge/amd/amdfam10/get_pci1234.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/northbridge/amd') diff --git a/src/northbridge/amd/amdfam10/get_pci1234.c b/src/northbridge/amd/amdfam10/get_pci1234.c index 71772b3feb..0d372f41df 100644 --- a/src/northbridge/amd/amdfam10/get_pci1234.c +++ b/src/northbridge/amd/amdfam10/get_pci1234.c @@ -110,6 +110,18 @@ void get_pci1234(void) } } +void get_default_pci1234(int mb_hc_possible) +{ + int i; + + for (i = 0; i < mb_hc_possible; i++) { + sysconf.pci1234[i] = 0x0000ffc; + sysconf.hcdn[i] = 0x20202020; + } + sysconf.hc_possible_num = mb_hc_possible; + get_pci1234(); +} + static void amd_bs_sysconf(void *arg) { /* Prepare sysconf structures, which are used to generate IRQ, -- cgit v1.2.3