diff options
author | Ondrej Čerman | 2019-09-29 11:43:26 +0200 |
---|---|---|
committer | Ondrej Čerman | 2019-09-29 11:43:26 +0200 |
commit | eb45c2d2a118bd7d8ba7390202a4f8d4761da42e (patch) | |
tree | 0b2de9031f56214cfa9dbcc5e4f1bd805dd26365 /zenpower.c | |
parent | 966ae5b1b504b683328be469f4d13800923857c9 (diff) |
Added option to swap CORE and SOC
Diffstat (limited to 'zenpower.c')
-rw-r--r-- | zenpower.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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]; |