aboutsummaryrefslogtreecommitdiff
path: root/zenpower.c
diff options
context:
space:
mode:
authorOndrej Čerman2019-09-29 11:43:26 +0200
committerOndrej Čerman2019-09-29 11:43:26 +0200
commiteb45c2d2a118bd7d8ba7390202a4f8d4761da42e (patch)
tree0b2de9031f56214cfa9dbcc5e4f1bd805dd26365 /zenpower.c
parent966ae5b1b504b683328be469f4d13800923857c9 (diff)
Added option to swap CORE and SOC
Diffstat (limited to 'zenpower.c')
-rw-r--r--zenpower.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/zenpower.c b/zenpower.c
index bc8afd9..49258ce 100644
--- a/zenpower.c
+++ b/zenpower.c
@@ -318,8 +318,13 @@ static int zenpower_probe(struct pci_dev *pdev, const struct pci_device_id *id)
data->pdev = pdev;
data->read_amdsmn_addr = read_amdsmn_addr;
- data->svi_core_addr = F17H_M01H_SVI_TEL_PLANE0;
- data->svi_soc_addr = F17H_M01H_SVI_TEL_PLANE1;
+ #ifndef SWAP_CORE_SOC
+ data->svi_core_addr = F17H_M01H_SVI_TEL_PLANE0;
+ data->svi_soc_addr = F17H_M01H_SVI_TEL_PLANE1;
+ #else
+ data->svi_core_addr = F17H_M01H_SVI_TEL_PLANE1;
+ data->svi_soc_addr = F17H_M01H_SVI_TEL_PLANE0;
+ #endif
for (i = 0; i < ARRAY_SIZE(tctl_offset_table); i++) {
const struct tctl_offset *entry = &tctl_offset_table[i];