diff options
Diffstat (limited to 'drivers/platform/x86/intel_pmc_ipc.c')
-rw-r--r-- | drivers/platform/x86/intel_pmc_ipc.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/platform/x86/intel_pmc_ipc.c b/drivers/platform/x86/intel_pmc_ipc.c index 6f497e80c9df..b86e1bcaa055 100644 --- a/drivers/platform/x86/intel_pmc_ipc.c +++ b/drivers/platform/x86/intel_pmc_ipc.c | |||
@@ -85,7 +85,7 @@ | |||
85 | * platform device and to export resources for those functions. | 85 | * platform device and to export resources for those functions. |
86 | */ | 86 | */ |
87 | #define TCO_DEVICE_NAME "iTCO_wdt" | 87 | #define TCO_DEVICE_NAME "iTCO_wdt" |
88 | #define SMI_EN_OFFSET 0x30 | 88 | #define SMI_EN_OFFSET 0x40 |
89 | #define SMI_EN_SIZE 4 | 89 | #define SMI_EN_SIZE 4 |
90 | #define TCO_BASE_OFFSET 0x60 | 90 | #define TCO_BASE_OFFSET 0x60 |
91 | #define TCO_REGS_SIZE 16 | 91 | #define TCO_REGS_SIZE 16 |
@@ -94,6 +94,8 @@ | |||
94 | #define TELEM_SSRAM_SIZE 240 | 94 | #define TELEM_SSRAM_SIZE 240 |
95 | #define TELEM_PMC_SSRAM_OFFSET 0x1B00 | 95 | #define TELEM_PMC_SSRAM_OFFSET 0x1B00 |
96 | #define TELEM_PUNIT_SSRAM_OFFSET 0x1A00 | 96 | #define TELEM_PUNIT_SSRAM_OFFSET 0x1A00 |
97 | #define TCO_PMC_OFFSET 0x8 | ||
98 | #define TCO_PMC_SIZE 0x4 | ||
97 | 99 | ||
98 | static const int iTCO_version = 3; | 100 | static const int iTCO_version = 3; |
99 | 101 | ||
@@ -502,7 +504,7 @@ static struct resource tco_res[] = { | |||
502 | 504 | ||
503 | static struct itco_wdt_platform_data tco_info = { | 505 | static struct itco_wdt_platform_data tco_info = { |
504 | .name = "Apollo Lake SoC", | 506 | .name = "Apollo Lake SoC", |
505 | .version = 3, | 507 | .version = 5, |
506 | }; | 508 | }; |
507 | 509 | ||
508 | #define TELEMETRY_RESOURCE_PUNIT_SSRAM 0 | 510 | #define TELEMETRY_RESOURCE_PUNIT_SSRAM 0 |
@@ -572,8 +574,8 @@ static int ipc_create_tco_device(void) | |||
572 | res->end = res->start + SMI_EN_SIZE - 1; | 574 | res->end = res->start + SMI_EN_SIZE - 1; |
573 | 575 | ||
574 | res = tco_res + TCO_RESOURCE_GCR_MEM; | 576 | res = tco_res + TCO_RESOURCE_GCR_MEM; |
575 | res->start = ipcdev.gcr_base; | 577 | res->start = ipcdev.gcr_base + TCO_PMC_OFFSET; |
576 | res->end = res->start + ipcdev.gcr_size - 1; | 578 | res->end = res->start + TCO_PMC_SIZE - 1; |
577 | 579 | ||
578 | ret = platform_device_add_resources(pdev, tco_res, ARRAY_SIZE(tco_res)); | 580 | ret = platform_device_add_resources(pdev, tco_res, ARRAY_SIZE(tco_res)); |
579 | if (ret) { | 581 | if (ret) { |