diff options
author | Aaron Durbin <adurbin@chromium.org> | 2016-02-11 16:05:50 -0600 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2016-02-13 01:16:00 +0100 |
commit | c65b8f128e25346ba01b90cb4f59d07ea84157af (patch) | |
tree | 5f402f9295d536f40f78215810fa4d1fdfb5bd45 /src/soc/intel/apollolake/gpio.c | |
parent | ada13ed4cbc519fde092dc54cda21e9d8ad94aa1 (diff) | |
download | coreboot-c65b8f128e25346ba01b90cb4f59d07ea84157af.tar.xz |
soc/intel/apollolake: pre-evaluate gpio number values
To allow sharing macros in ASL as well as C the macros can't
have complex expression because the ASL compiler does not
evaluate those expressions. To that end, just pre-calculate
the values. Lastly, add N_OFFSET and utilize it for symmetry.
Change-Id: I546d71008e776b27ce8bcd24d2cbd2ee1b2d8020
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/13693
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/soc/intel/apollolake/gpio.c')
-rw-r--r-- | src/soc/intel/apollolake/gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/apollolake/gpio.c b/src/soc/intel/apollolake/gpio.c index 33500da558..ab0e0ed9a4 100644 --- a/src/soc/intel/apollolake/gpio.c +++ b/src/soc/intel/apollolake/gpio.c @@ -29,7 +29,7 @@ static const struct pad_community { .first_pad = NW_OFFSET, }, { .port = GPIO_NORTH, - .first_pad = 0, + .first_pad = N_OFFSET, } }; |