scripts: Update GPIO file generated for coreboot
The use of `gpio.h` has been replaced with `gpio.c` for a while. Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
parent
269b537c00
commit
c4b9a727c4
@ -11,15 +11,9 @@ fi
|
|||||||
cat <<"EOF"
|
cat <<"EOF"
|
||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
#ifndef MAINBOARD_GPIO_H
|
#include <mainboard/gpio.h>
|
||||||
#define MAINBOARD_GPIO_H
|
|
||||||
|
|
||||||
#include <soc/gpe.h>
|
|
||||||
#include <soc/gpio.h>
|
#include <soc/gpio.h>
|
||||||
|
|
||||||
#ifndef __ACPI__
|
|
||||||
|
|
||||||
/* Pad configuration in ramstage. */
|
|
||||||
static const struct pad_config gpio_table[] = {
|
static const struct pad_config gpio_table[] = {
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -108,7 +102,8 @@ done
|
|||||||
cat <<"EOF"
|
cat <<"EOF"
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
void mainboard_configure_gpios(void)
|
||||||
|
{
|
||||||
#endif
|
gpio_configure_pads(gpio_table, ARRAY_SIZE(gpio_table));
|
||||||
|
}
|
||||||
EOF
|
EOF
|
||||||
|
@ -56,7 +56,7 @@ cargo build --release
|
|||||||
sudo target/release/coreboot-collector > "${MODEL_DIR}/coreboot-collector.txt"
|
sudo target/release/coreboot-collector > "${MODEL_DIR}/coreboot-collector.txt"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
"${SCRIPT_DIR}/coreboot-gpio.sh" "${MODEL_DIR}/coreboot-collector.txt" > "${MODEL_DIR}/gpio.h"
|
"${SCRIPT_DIR}/coreboot-gpio.sh" "${MODEL_DIR}/coreboot-collector.txt" > "${MODEL_DIR}/gpio.c"
|
||||||
"${SCRIPT_DIR}/coreboot-hda.sh" "${MODEL_DIR}/coreboot-collector.txt" > "${MODEL_DIR}/hda_verb.c"
|
"${SCRIPT_DIR}/coreboot-hda.sh" "${MODEL_DIR}/coreboot-collector.txt" > "${MODEL_DIR}/hda_verb.c"
|
||||||
|
|
||||||
if [ -n "${BIOS_IMAGE}" ]
|
if [ -n "${BIOS_IMAGE}" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user