soc: x86: raptor_lake: soc_gpio : Modified to support RPL-P

Added Modifications to support RPL-P platform.

Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
This commit is contained in:
Anisetti Avinash Krishna 2023-08-11 12:38:01 +05:30 committed by Fabio Baltieri
parent 465c34ef58
commit b7609ff5a8

View file

@ -15,14 +15,22 @@
#ifndef __SOC_GPIO_H_
#define __SOC_GPIO_H_
#if defined(CONFIG_BOARD_INTEL_RPL_S_CRB)
#define GPIO_INTEL_NR_SUBDEVS 13
#define REG_PAD_OWNER_BASE 0x00A0
#define REG_GPI_INT_STS_BASE 0x0200
#define PAD_CFG0_PMODE_MASK (0x07 << 10)
#define REG_GPI_INT_EN_BASE 0x0220
#define REG_PAD_HOST_SW_OWNER 0x150
#elif defined(CONFIG_BOARD_INTEL_RPL_P_CRB)
#define GPIO_INTEL_NR_SUBDEVS 11
#define REG_PAD_OWNER_BASE 0x0020
#define REG_GPI_INT_STS_BASE 0x0100
#define REG_GPI_INT_EN_BASE 0x0120
#define REG_PAD_HOST_SW_OWNER 0x0B0
#endif
#define PAD_CFG0_PMODE_MASK (0x07 << 10)
#define PAD_BASE_ADDR_MASK 0xfff
#define GPIO_REG_BASE(reg_base) \