Skip to content
Commit 32a19ea2 authored by Tim Lin's avatar Tim Lin Committed by Alberto Escolar
Browse files

drivers/espi: it8xxx2: Fix mask when SRAM size not the power of 2



When using the it8xxx2bx chip, because the SRAM size is 60k and
not a power of 2, using (CONFIG_SRAM_SIZE - 1) results in an
incorrect value for the h2ram base address mask.
Therefore, the mask is declared as GEMASK(19, 0) here.

Signed-off-by: default avatarTim Lin <tim2.lin@ite.corp-partner.google.com>
parent b9a4900c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment