summaryrefslogtreecommitdiff
path: root/chip/ish/aontaskfw
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2019-04-23 09:32:15 -0600
committerchrome-bot <chrome-bot@chromium.org>2019-05-02 05:38:23 -0700
commit2487d2012337b19e1c409c1ab5c7f763ec40b5b8 (patch)
tree1e248be080c2c3530f9bde7ab9b4ec841eb08466 /chip/ish/aontaskfw
parent5e3a5bf39077ea2856d599a7ea7c4643fd5d4acc (diff)
downloadchrome-ec-2487d2012337b19e1c409c1ab5c7f763ec40b5b8.tar.gz
ish: refactor IPC usage of REG macros into registers.h
This is the final CL needed to resolve b:130573158. BUG=b:130573158 BRANCH=none TEST=arcada_ish functions as normal after changes Change-Id: Ia4cc9bfa95938b9f57fc1cd241cd6821b42a3ce6 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1578435 Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'chip/ish/aontaskfw')
-rw-r--r--chip/ish/aontaskfw/ish_aontask.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/chip/ish/aontaskfw/ish_aontask.c b/chip/ish/aontaskfw/ish_aontask.c
index 4bfd6fcab4..f90ec94d8c 100644
--- a/chip/ish/aontaskfw/ish_aontask.c
+++ b/chip/ish/aontaskfw/ish_aontask.c
@@ -541,7 +541,7 @@ static void handle_d3(void)
static void handle_reset(int pm_state)
{
/* disable CSME CSR irq */
- REG32(IPC_PIMR) &= ~IPC_PIMR_CSME_CSR_BIT;
+ IPC_PIMR &= ~IPC_PIMR_CSME_CSR_BIT;
/* power off main SRAM */
sram_power(0);
@@ -549,10 +549,10 @@ static void handle_reset(int pm_state)
while (1) {
/* check if host ish driver already set the DMA enable flag */
- if (REG32(IPC_ISH_RMP2) & DMA_ENABLED_MASK) {
+ if (IPC_ISH_RMP2 & DMA_ENABLED_MASK) {
/* clear ISH2HOST doorbell register */
- REG32(IPC_ISH2HOST_DOORBELL) = 0;
+ *IPC_ISH2HOST_DOORBELL_ADDR = 0;
/* clear error register in MISC space */
MISC_ISH_ECC_ERR_SRESP = 1;