aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/amd
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-01-03 11:39:05 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-01-04 17:23:56 +0000
commitf112f9f912db901206b57f0e845cb43dd2263dd5 (patch)
tree9a24ef235cdbd46276456e36b1651e903cc22dc7 /src/northbridge/amd
parentee7e1300f44a635c12abcdfae46453ca253d6499 (diff)
amdfam10 boards: Use defaults for get_pci1234()
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 <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/30648 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/northbridge/amd')
-rw-r--r--src/northbridge/amd/amdfam10/get_pci1234.c12
1 files changed, 12 insertions, 0 deletions
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,