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>
This commit is contained in:
Aaron Durbin
2016-02-11 16:05:50 -06:00
parent ada13ed4cb
commit c65b8f128e
2 changed files with 175 additions and 172 deletions

View File

@ -29,7 +29,7 @@ static const struct pad_community {
.first_pad = NW_OFFSET,
}, {
.port = GPIO_NORTH,
.first_pad = 0,
.first_pad = N_OFFSET,
}
};