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/npcx/config_chip.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chip/npcx/config_chip.h') diff --git a/chip/npcx/config_chip.h b/chip/npcx/config_chip.h index 272c5eebed..cd951e1f22 100644 --- a/chip/npcx/config_chip.h +++ b/chip/npcx/config_chip.h @@ -110,4 +110,7 @@ /* Compile for running from RAM instead of flash */ /* #define COMPILE_FOR_RAM */ +#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