From 7d36fb8991e7a249ae56db508078480c27914f2e Mon Sep 17 00:00:00 2001 From: Jett Rink Date: Fri, 8 Jun 2018 16:10:31 -0600 Subject: gpio: extend flags size to accommodate GPIO_ flags Widen the flags field from 16-bit to 32-bit to fit all of the current GPIO_flags. Also reorder fields within struct to allow arm compiler to use 16-bit instructions instead of 32-bit instructions when accessing fields (which is important for kevin board, otherwise it runs out of space) Lastly, re-tool macros to all reordering of gpio_alt_func struct fields. BRANCH=none BUG=b:109884927 TEST=builds on all boards Change-Id: I20b136c94a607c19031a88bddd255cc34cc57bbd Signed-off-by: Jett Rink Reviewed-on: https://chromium-review.googlesource.com/1096018 Reviewed-by: Furquan Shaikh --- chip/npcx/config_chip.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chip/npcx/config_chip.h') diff --git a/chip/npcx/config_chip.h b/chip/npcx/config_chip.h index 1311edca4f..9dac257850 100644 --- a/chip/npcx/config_chip.h +++ b/chip/npcx/config_chip.h @@ -71,6 +71,6 @@ #define CONFIG_CHIP_PRE_INIT #define GPIO_PIN(port, index) GPIO_##port, (1 << index) -#define GPIO_PIN_MASK(port, mask) GPIO_##port, (mask) +#define GPIO_PIN_MASK(p, m) .port = GPIO_##p, .mask = (m) #endif /* __CROS_EC_CONFIG_CHIP_H */ -- cgit v1.2.1