diff options
Diffstat (limited to 'drivers/platform/x86/intel_pmc_ipc.c')
-rw-r--r-- | drivers/platform/x86/intel_pmc_ipc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/platform/x86/intel_pmc_ipc.c b/drivers/platform/x86/intel_pmc_ipc.c index 092519e37de6..3b0182c189d6 100644 --- a/drivers/platform/x86/intel_pmc_ipc.c +++ b/drivers/platform/x86/intel_pmc_ipc.c | |||
@@ -67,7 +67,8 @@ | |||
67 | /* exported resources from IFWI */ | 67 | /* exported resources from IFWI */ |
68 | #define PLAT_RESOURCE_IPC_INDEX 0 | 68 | #define PLAT_RESOURCE_IPC_INDEX 0 |
69 | #define PLAT_RESOURCE_IPC_SIZE 0x1000 | 69 | #define PLAT_RESOURCE_IPC_SIZE 0x1000 |
70 | #define PLAT_RESOURCE_GCR_SIZE 0x1000 | 70 | #define PLAT_RESOURCE_GCR_OFFSET 0x1008 |
71 | #define PLAT_RESOURCE_GCR_SIZE 0x4 | ||
71 | #define PLAT_RESOURCE_BIOS_DATA_INDEX 1 | 72 | #define PLAT_RESOURCE_BIOS_DATA_INDEX 1 |
72 | #define PLAT_RESOURCE_BIOS_IFACE_INDEX 2 | 73 | #define PLAT_RESOURCE_BIOS_IFACE_INDEX 2 |
73 | #define PLAT_RESOURCE_TELEM_SSRAM_INDEX 3 | 74 | #define PLAT_RESOURCE_TELEM_SSRAM_INDEX 3 |
@@ -766,7 +767,7 @@ static int ipc_plat_get_res(struct platform_device *pdev) | |||
766 | } | 767 | } |
767 | ipcdev.ipc_base = addr; | 768 | ipcdev.ipc_base = addr; |
768 | 769 | ||
769 | ipcdev.gcr_base = res->start + size; | 770 | ipcdev.gcr_base = res->start + PLAT_RESOURCE_GCR_OFFSET; |
770 | ipcdev.gcr_size = PLAT_RESOURCE_GCR_SIZE; | 771 | ipcdev.gcr_size = PLAT_RESOURCE_GCR_SIZE; |
771 | dev_info(&pdev->dev, "ipc res: %pR\n", res); | 772 | dev_info(&pdev->dev, "ipc res: %pR\n", res); |
772 | 773 | ||