espi/it8xxx2: extend h2ram offset mask

This extends h2ram offset mask to support chips with
128KB or 256KB of memory.

Signed-off-by: Dino Li <Dino.Li@ite.com.tw>
This commit is contained in:
Dino Li 2023-08-29 11:31:15 +08:00 committed by Carles Cufí
commit 423b5b2d42

View file

@ -207,7 +207,7 @@ static const struct ec2i_t pmc2_settings[] = {
* Linker script of h2ram.ld will make the pool 4K aligned.
*/
#define IT8XXX2_ESPI_H2RAM_POOL_SIZE_MAX 0x1000
#define IT8XXX2_ESPI_H2RAM_OFFSET_MASK GENMASK(3, 0)
#define IT8XXX2_ESPI_H2RAM_OFFSET_MASK GENMASK(5, 0)
#if defined(CONFIG_ESPI_PERIPHERAL_ACPI_SHM_REGION)
#define H2RAM_ACPI_SHM_MAX ((CONFIG_ESPI_IT8XXX2_ACPI_SHM_H2RAM_SIZE) + \