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"
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#ifndef MAINBOARD_GPIO_H
|
||||
#define MAINBOARD_GPIO_H
|
||||
|
||||
#include <soc/gpe.h>
|
||||
#include <mainboard/gpio.h>
|
||||
#include <soc/gpio.h>
|
||||
|
||||
#ifndef __ACPI__
|
||||
|
||||
/* Pad configuration in ramstage. */
|
||||
static const struct pad_config gpio_table[] = {
|
||||
EOF
|
||||
|
||||
@ -108,7 +102,8 @@ done
|
||||
cat <<"EOF"
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
void mainboard_configure_gpios(void)
|
||||
{
|
||||
gpio_configure_pads(gpio_table, ARRAY_SIZE(gpio_table));
|
||||
}
|
||||
EOF
|
||||
|
@ -56,7 +56,7 @@ cargo build --release
|
||||
sudo target/release/coreboot-collector > "${MODEL_DIR}/coreboot-collector.txt"
|
||||
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"
|
||||
|
||||
if [ -n "${BIOS_IMAGE}" ]
|
||||
|
Loading…
x
Reference in New Issue
Block a user