diff options
-rw-r--r-- | chip/it83xx/registers.h | 5 | ||||
-rw-r--r-- | chip/it83xx/system.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/chip/it83xx/registers.h b/chip/it83xx/registers.h index 57d73f7a26..cd7fcc0c2a 100644 --- a/chip/it83xx/registers.h +++ b/chip/it83xx/registers.h @@ -1105,11 +1105,12 @@ enum bram_indices { BRAM_IDX_RESET_FLAGS2 = 2, BRAM_IDX_RESET_FLAGS3 = 3, - /* PD state data for CONFIG_USB_PD_DUAL_ROLE uses 2 bytes */ + /* PD state data for CONFIG_USB_PD_DUAL_ROLE uses 1 byte per port */ BRAM_IDX_PD0 = 4, BRAM_IDX_PD1 = 5, + BRAM_IDX_PD2 = 6, - /* index 6 ~ 7 are reserved */ + /* index 7 is reserved */ BRAM_IDX_SCRATCHPAD0 = 8, BRAM_IDX_SCRATCHPAD1 = 9, diff --git a/chip/it83xx/system.c b/chip/it83xx/system.c index 02153424e1..98bf0e092a 100644 --- a/chip/it83xx/system.c +++ b/chip/it83xx/system.c @@ -290,6 +290,8 @@ static int bram_idx_lookup(enum system_bbram_idx idx) return BRAM_IDX_PD0; if (idx == SYSTEM_BBRAM_IDX_PD1) return BRAM_IDX_PD1; + if (idx == SYSTEM_BBRAM_IDX_PD2) + return BRAM_IDX_PD2; #endif return -1; } |