Edward O'Callaghan (eocallaghan@alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8203
-gerrit
commit 4f9c436460f20bbf1b798bedd4ab7cd9f13b3e15 Author: Edward O'Callaghan eocallaghan@alterapraxis.com Date: Tue Jan 13 05:48:13 2015 +1100
soc/intel/fsp_baytrail/gpio.c: Silence unused variable warning
Put functions in appropriate pre-processor sections to avoid false-positive 'unused function' compiler warnings.
Change-Id: Ia83d721827ad9924807c0ca5ebd681060af49a82 Signed-off-by: Edward O'Callaghan eocallaghan@alterapraxis.com --- src/soc/intel/fsp_baytrail/gpio.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/soc/intel/fsp_baytrail/gpio.c b/src/soc/intel/fsp_baytrail/gpio.c index aeb0998..b202f00 100644 --- a/src/soc/intel/fsp_baytrail/gpio.c +++ b/src/soc/intel/fsp_baytrail/gpio.c @@ -32,11 +32,13 @@ * PCU iLB GPIO CFIO_SCORE Address Map * PCU iLB GPIO CFIO_SSUS Address Map */ +#ifndef __PRE_RAM__ static const u8 gpncore_gpio_to_pad[GPNCORE_COUNT] = { 19, 18, 17, 20, 21, 22, 24, 25, /* [ 0: 7] */ 23, 16, 14, 15, 12, 26, 27, 1, /* [ 8:15] */ 4, 8, 11, 0, 3, 6, 10, 13, /* [16:23] */ 2, 5, 9 }; /* [24:26] */ +#endif
static const u8 gpscore_gpio_to_pad[GPSCORE_COUNT] = { 85, 89, 93, 96, 99, 102, 98, 101, /* [ 0: 7] */ @@ -61,6 +63,9 @@ static const u8 gpssus_gpio_to_pad[GPSSUS_COUNT] = 56, 54, 49, 55, 48, 57, 50, 58, /* [32:39] */ 52, 53, 59, 40 }; /* [40:43] */
+ +#ifndef __PRE_RAM__ + /* GPIO bank descriptions */ static const struct gpio_bank gpncore_bank = { .gpio_count = GPNCORE_COUNT, @@ -92,7 +97,6 @@ static const struct gpio_bank gpssus_bank = { .gpio_f1_range_end = GPSSUS_GPIO_F1_RANGE_END, };
-#ifndef __PRE_RAM__
static void setup_gpios(const struct soc_gpio_map *gpios, const struct gpio_bank *bank) @@ -346,4 +350,3 @@ void configure_score_gpio(uint8_t gpio_num, uint32_t pconf0, uint32_t pad_val) { configure_ssus_score_gpio(0, gpio_num, pconf0, pad_val); } -