diff options
Diffstat (limited to 'src/soc/intel/skylake/include')
-rw-r--r-- | src/soc/intel/skylake/include/soc/gpio.h | 2 | ||||
-rw-r--r-- | src/soc/intel/skylake/include/soc/gpio_defs.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/soc/intel/skylake/include/soc/gpio.h b/src/soc/intel/skylake/include/soc/gpio.h index dd9b9a340c..75d8abe63a 100644 --- a/src/soc/intel/skylake/include/soc/gpio.h +++ b/src/soc/intel/skylake/include/soc/gpio.h @@ -19,6 +19,8 @@ #include <soc/gpio_defs.h> +#define GPIO_DWx_SIZE(x) (sizeof(uint32_t) * (x)) + #define CROS_GPIO_DEVICE_NAME "INT344B:00" #ifndef __ACPI__ diff --git a/src/soc/intel/skylake/include/soc/gpio_defs.h b/src/soc/intel/skylake/include/soc/gpio_defs.h index 112db63e18..42a409bec2 100644 --- a/src/soc/intel/skylake/include/soc/gpio_defs.h +++ b/src/soc/intel/skylake/include/soc/gpio_defs.h @@ -33,6 +33,7 @@ #define GPIO_NUM_GROUPS 8 #define GPIO_MAX_NUM_PER_GROUP 24 +#define GPIO_DWx_COUNT 2 /* DW0 and DW1 */ /* * GPIOs are ordered monotonically increasing to match ACPI/OS driver. */ |