summaryrefslogtreecommitdiff
path: root/src/include/device
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2015-02-04 13:09:06 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2015-02-20 07:04:00 +0100
commit26c664759b53cca1de4bbb4c517fc65f4ca079c4 (patch)
treeb762375d053c9fd6f5264245aab35325dc9807e7 /src/include/device
parentf5e7fa22e7f1d4292d26e72e4a801cb4c6669e26 (diff)
AMD K8 fam10: Refactor offset_unitid configuration
Change-Id: I198f2ad321e1a8b6d932f5624b129e312e36a309 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/8349 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Diffstat (limited to 'src/include/device')
-rw-r--r--src/include/device/hypertransport_def.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/device/hypertransport_def.h b/src/include/device/hypertransport_def.h
index d6276ba003..8af94d94ac 100644
--- a/src/include/device/hypertransport_def.h
+++ b/src/include/device/hypertransport_def.h
@@ -18,4 +18,11 @@
#define HT_FREQ_2600Mhz 14
#define HT_FREQ_VENDOR 15 /* AMD defines this to be 100Mhz */
+
+static inline bool offset_unit_id(bool is_sb_ht_chain)
+{
+ bool need_offset = (CONFIG_HT_CHAIN_UNITID_BASE != 1) || (CONFIG_HT_CHAIN_END_UNITID_BASE != 0x20);
+ return need_offset && (!CONFIG_SB_HT_CHAIN_UNITID_OFFSET_ONLY || is_sb_ht_chain);
+}
+
#endif /* DEVICE_HYPERTRANSPORT_DEF_H */