From 971416091d3d357a35f1e453ce32fb8d656f4cf3 Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Thu, 15 Apr 2021 08:58:47 -0600 Subject: [PATCH] scripts: Use PAD_CFG_GPO if there is no pull --- scripts/coreboot-gpio.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/coreboot-gpio.sh b/scripts/coreboot-gpio.sh index 660cf27..33fce86 100755 --- a/scripts/coreboot-gpio.sh +++ b/scripts/coreboot-gpio.sh @@ -71,10 +71,18 @@ do case "${parts[1]}" in 0x??000000 | 0x??000200) - echo -e "\tPAD_CFG_TERM_GPO(${parts[0]}, 0, ${term}, ${reset})," + if [ "${term}" = "NONE" ]; then + echo -e "\tPAD_CFG_GPO(${parts[0]}, 0, ${reset})," + else + echo -e "\tPAD_CFG_TERM_GPO(${parts[0]}, 0, ${term}, ${reset})," + fi ;; 0x??000001 | 0x??000201) - echo -e "\tPAD_CFG_TERM_GPO(${parts[0]}, 1, ${term}, ${reset})," + if [ "${term}" = "NONE" ]; then + echo -e "\tPAD_CFG_GPO(${parts[0]}, 1, ${reset})," + else + echo -e "\tPAD_CFG_TERM_GPO(${parts[0]}, 1, ${term}, ${reset})," + fi ;; 0x??000100) echo -e "\tPAD_CFG_GPI(${parts[0]}, ${term}, ${reset}),"