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>
Reviewed-on: http://review.coreboot.org/8203
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <gaumless@gmail.com>
This commit is contained in:
Edward O'Callaghan 2015-01-13 05:48:13 +11:00
parent b50921e5bd
commit 735e10a0d5
1 changed files with 5 additions and 2 deletions

View File

@ -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);
}