diff options
author | Mario Scheithauer <mario.scheithauer@siemens.com> | 2017-03-27 13:25:57 +0200 |
---|---|---|
committer | Werner Zeh <werner.zeh@siemens.com> | 2017-03-29 06:31:52 +0200 |
commit | 2d98120d3b4740c45714b1c75230490bc281ce81 (patch) | |
tree | 486b1fcf82fb5cd2611dfd4e9f3f10fc55b72df4 /src/mainboard/siemens/mc_apl1/brd_gpio.h | |
parent | 2e2370075d24facd0f7ba0c63077f65321c8e9c9 (diff) |
siemens/mc_apl1: Adjust gpio settings
Adjust gpio settings according to the hardware layout.
Change-Id: I2f440e863c2e6f59298c500ac5aefa3b7386bcdf
Signed-off-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Reviewed-on: https://review.coreboot.org/18995
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Diffstat (limited to 'src/mainboard/siemens/mc_apl1/brd_gpio.h')
-rw-r--r-- | src/mainboard/siemens/mc_apl1/brd_gpio.h | 42 |
1 files changed, 6 insertions, 36 deletions
diff --git a/src/mainboard/siemens/mc_apl1/brd_gpio.h b/src/mainboard/siemens/mc_apl1/brd_gpio.h index 564ee69504..0858a1add2 100644 --- a/src/mainboard/siemens/mc_apl1/brd_gpio.h +++ b/src/mainboard/siemens/mc_apl1/brd_gpio.h @@ -16,39 +16,9 @@ #include <soc/gpio.h> -#if ENV_ROMSTAGE - -static const struct pad_config gpio_table[] = { - /* Debug tracing. */ - PAD_CFG_NF(GPIO_0, NATIVE, DEEP, NF1), - PAD_CFG_NF(GPIO_1, NATIVE, DEEP, NF1), - PAD_CFG_NF(GPIO_2, NATIVE, DEEP, NF1), - PAD_CFG_NF(GPIO_3, NATIVE, DEEP, NF1), - PAD_CFG_NF(GPIO_4, NATIVE, DEEP, NF1), - PAD_CFG_NF(GPIO_5, NATIVE, DEEP, NF1), - PAD_CFG_NF(GPIO_6, NATIVE, DEEP, NF1), - PAD_CFG_NF(GPIO_7, NATIVE, DEEP, NF1), - PAD_CFG_NF(GPIO_8, NATIVE, DEEP, NF1), - - PAD_CFG_GPI(GPIO_152, DN_20K, DEEP), /* Unused */ - PAD_CFG_GPI(GPIO_19, UP_20K, DEEP), /* Unused */ - PAD_CFG_GPI(GPIO_13, UP_20K, DEEP), /* Unused */ - PAD_CFG_GPI(GPIO_17, UP_20K, DEEP), /* Unused */ - PAD_CFG_GPI(GPIO_15, UP_20K, DEEP), /* Unused */ - - PAD_CFG_NF(GPIO_210, NATIVE, DEEP, NF1), /* CLKREQ# */ - - PAD_CFG_NF(SMB_CLK, NATIVE, DEEP, NF1), - PAD_CFG_NF(SMB_DATA, NATIVE, DEEP, NF1), - PAD_CFG_NF(LPC_ILB_SERIRQ, UP_20K, DEEP, NF1), - PAD_CFG_NF(LPC_CLKOUT0, NATIVE, DEEP, NF1), - PAD_CFG_GPI(LPC_CLKOUT1, UP_20K, DEEP), /* LPC_CLKOUT1 -- unused */ - PAD_CFG_NF(LPC_AD0, UP_20K, DEEP, NF1), - PAD_CFG_NF(LPC_AD1, UP_20K, DEEP, NF1), - PAD_CFG_NF(LPC_AD2, UP_20K, DEEP, NF1), - PAD_CFG_NF(LPC_AD3, UP_20K, DEEP, NF1), - PAD_CFG_NF(LPC_CLKRUNB, UP_20K, DEEP, NF1), - PAD_CFG_NF(LPC_FRAMEB, UP_20K, DEEP, NF1), -}; - -#endif +/* + * The next set of functions return the gpio table and fill in the number of + * entries for each table. + */ +const struct pad_config *brd_gpio_table(size_t *num); +const struct pad_config *brd_early_gpio_table(size_t *num); |