aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/amd/amdk8/northbridge.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2015-02-05 15:48:38 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2015-06-05 10:17:35 +0200
commit7748ee5ee188bf6b3846501b32a9ae82ccb8e853 (patch)
treeb795bbb255aeb0345f744fce4a41a0d433c0f01b /src/northbridge/amd/amdk8/northbridge.c
parent98a915e2621df4885ba42f09502775f1f4a288b4 (diff)
AMD K8 fam10: Refactor Kconfig SB_HT_CHAIN_ON_BUS0
If SB_HT_CHAIN_ON_BUS0 is selected, HyperTransport chain for System Bus is the first to scan and it will be assigned with bus number 0. If HT_CHAIN_DISTRIBUTE is selected, each link will reserve a fixed range of bus numbers instead of assigning consecutive numbers across all the links. All fam10 have SB_HT_CHAIN_ON_BUS0 selected under northbridge. Follow-up can easily drop this if we find this is dictated by architecture. Change-Id: I8deddcb4c3fd679b6b27e2879d9dba3895c4dd6f Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/8366 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <edward.ocallaghan@koparo.com> Reviewed-by: Timothy Pearson <tpearson@raptorengineeringinc.com>
Diffstat (limited to 'src/northbridge/amd/amdk8/northbridge.c')
-rw-r--r--src/northbridge/amd/amdk8/northbridge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/northbridge/amd/amdk8/northbridge.c b/src/northbridge/amd/amdk8/northbridge.c
index bdfe355490..3ac626d5c5 100644
--- a/src/northbridge/amd/amdk8/northbridge.c
+++ b/src/northbridge/amd/amdk8/northbridge.c
@@ -179,11 +179,11 @@ static u32 amdk8_scan_chain(device_t dev, u32 nodeid, struct bus *link, bool is_
* so we set the subordinate bus number to 0xff for the moment.
*/
- if ((CONFIG_SB_HT_CHAIN_ON_BUS0 == 0) || !is_sblink)
+ if (!CONFIG_SB_HT_CHAIN_ON_BUS0 || !is_sblink)
max++;
/* Second chain will be on 0x40, third 0x80, forth 0xc0. */
- if ((CONFIG_SB_HT_CHAIN_ON_BUS0 > 1) && !is_sblink)
+ if (CONFIG_HT_CHAIN_DISTRIBUTE && !is_sblink)
max = ALIGN_UP(max, 0x40);
link->secondary = max;