From 937cc8a64e5971def21303e7a19a4ad9553e0ace Mon Sep 17 00:00:00 2001 From: Steven Jian Date: Wed, 1 Apr 2015 01:25:42 +0800 Subject: mec1322: Simplify GPIO lists Our existing GPIO macros use port# / gpio#, but the concept of different GPIO ports does not exist on the mec1322. Therefore, add new GPIO macros for chips which do not have distinct GPIO ports. BUG=None BRANCH=None TEST=make buildall -j Change-Id: Ibda97c6563ad447d16dab39ecadab43ccb25174b Signed-off-by: Steven Jian Reviewed-on: https://chromium-review.googlesource.com/262841 Reviewed-by: Anton Staaf --- chip/it83xx/config_chip.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chip/it83xx') diff --git a/chip/it83xx/config_chip.h b/chip/it83xx/config_chip.h index 2c433262c9..0d688f7eb3 100644 --- a/chip/it83xx/config_chip.h +++ b/chip/it83xx/config_chip.h @@ -73,4 +73,7 @@ #define CONFIG_EC2I #define CONFIG_LPC +#define GPIO_PIN(port, index) GPIO_##port, (1 << index) +#define GPIO_PIN_MASK(port, mask) GPIO_##port, (mask) + #endif /* __CROS_EC_CONFIG_CHIP_H */ -- cgit v1.2.1