diff options
author | Jett Rink <jettrink@chromium.org> | 2018-06-08 16:10:31 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-06-11 17:29:48 -0700 |
commit | 7d36fb8991e7a249ae56db508078480c27914f2e (patch) | |
tree | bac641d2be2a906670a1a882040c0cece711e948 /chip/it83xx/config_chip.h | |
parent | 7c6f336362770c85a5df02064fd274eee1ff8555 (diff) | |
download | chrome-ec-7d36fb8991e7a249ae56db508078480c27914f2e.tar.gz |
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 <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1096018
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'chip/it83xx/config_chip.h')
-rw-r--r-- | chip/it83xx/config_chip.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/it83xx/config_chip.h b/chip/it83xx/config_chip.h index c56a974ba1..5e7a501a8f 100644 --- a/chip/it83xx/config_chip.h +++ b/chip/it83xx/config_chip.h @@ -109,6 +109,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 */ |