Skip to content

Commit e3d9091

Browse files
committed
scripts/coreboot-gpio: Handle NF4 and NF8
Signed-off-by: Tim Crawford <tcrawford@system76.com>
1 parent 565333d commit e3d9091

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

models/lemp14/gpio.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ static const struct pad_config gpio_table[] = {
1818
PAD_CFG_NF(GPP_A11, UP_20K, DEEP, NF1),
1919
PAD_NC(GPP_A12, NATIVE),
2020
PAD_CFG_NF(GPP_A13, NATIVE, DEEP, NF2),
21-
_PAD_CFG_STRUCT(GPP_A14, 0x40001300, 0x3c00),
21+
PAD_CFG_NF(GPP_A14, NATIVE, DEEP, NF4),
2222
PAD_CFG_NF(GPP_A15, UP_20K, DEEP, NF1),
2323
PAD_CFG_NF(GPP_A16, UP_20K, DEEP, NF1),
2424
PAD_CFG_NF(GPP_A17, UP_20K, DEEP, NF1),
@@ -109,8 +109,8 @@ static const struct pad_config gpio_table[] = {
109109
PAD_NC(GPP_E9, NONE),
110110
PAD_CFG_GPO(GPP_E10, 1, DEEP),
111111
PAD_CFG_GPI(GPP_E11, NONE, DEEP),
112-
_PAD_CFG_STRUCT(GPP_E12, 0x44002300, 0x0000),
113-
_PAD_CFG_STRUCT(GPP_E13, 0x44002300, 0x0000),
112+
PAD_CFG_NF(GPP_E12, NONE, DEEP, NF8),
113+
PAD_CFG_NF(GPP_E13, NONE, DEEP, NF8),
114114
PAD_CFG_GPI(GPP_E14, NONE, DEEP),
115115
PAD_CFG_GPI(GPP_E15, NONE, DEEP),
116116
PAD_CFG_GPO(GPP_E16, 1, DEEP),
@@ -132,8 +132,8 @@ static const struct pad_config gpio_table[] = {
132132
PAD_CFG_GPI(GPP_F9, NONE, DEEP),
133133
PAD_CFG_GPO(GPP_F10, 1, DEEP),
134134
PAD_CFG_GPO(GPP_F11, 1, DEEP),
135-
_PAD_CFG_STRUCT(GPP_F12, 0x44002300, 0x0000),
136-
_PAD_CFG_STRUCT(GPP_F13, 0x44002300, 0x0000),
135+
PAD_CFG_NF(GPP_F12, NONE, DEEP, NF8),
136+
PAD_CFG_NF(GPP_F13, NONE, DEEP, NF8),
137137
PAD_CFG_GPO(GPP_F14, 1, DEEP),
138138
PAD_CFG_GPO(GPP_F15, 1, DEEP),
139139
PAD_CFG_GPO(GPP_F16, 1, PLTRST),

scripts/coreboot-gpio.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ do
9393
0x??000c00 | 0x??000d00 | 0x??000e00 | 0x??000f00)
9494
echo -e "\tPAD_CFG_NF(${parts[0]}, ${term}, ${reset}, NF3),"
9595
;;
96+
0x??001000 | 0x??001100 | 0x??001200 | 0x??001300)
97+
echo -e "\tPAD_CFG_NF(${parts[0]}, ${term}, ${reset}, NF4),"
98+
;;
99+
0x??002000 | 0x??002100 | 0x??002200 | 0x??002300)
100+
echo -e "\tPAD_CFG_NF(${parts[0]}, ${term}, ${reset}, NF8),"
101+
;;
96102
*)
97103
echo -e "\t_PAD_CFG_STRUCT(${parts[0]}, ${parts[1]}, ${parts[2]}),"
98104
;;

0 commit comments

Comments
 (0)