6b5bc77c9b
Stefan thinks they don't add value. Command used: sed -i -e '/file is part of /d' $(git grep "file is part of " |egrep ":( */\*.*\*/\$|#|;#|-- | *\* )" | cut -d: -f1 |grep -v crossgcc |grep -v gcov | grep -v /elf.h |grep -v nvramtool) The exceptions are for: - crossgcc (patch file) - gcov (imported from gcc) - elf.h (imported from GNU's libc) - nvramtool (more complicated header) The removed lines are: - fmt.Fprintln(f, "/* This file is part of the coreboot project. */") -# This file is part of a set of unofficial pre-commit hooks available -/* This file is part of coreboot */ -# This file is part of msrtool. -/* This file is part of msrtool. */ - * This file is part of ncurses, designed to be appended after curses.h.in -/* This file is part of pgtblgen. */ - * This file is part of the coreboot project. - /* This file is part of the coreboot project. */ -# This file is part of the coreboot project. -# This file is part of the coreboot project. -## This file is part of the coreboot project. --- This file is part of the coreboot project. -/* This file is part of the coreboot project */ -/* This file is part of the coreboot project. */ -;## This file is part of the coreboot project. -# This file is part of the coreboot project. It originated in the - * This file is part of the coreinfo project. -## This file is part of the coreinfo project. - * This file is part of the depthcharge project. -/* This file is part of the depthcharge project. */ -/* This file is part of the ectool project. */ - * This file is part of the GNU C Library. - * This file is part of the libpayload project. -## This file is part of the libpayload project. -/* This file is part of the Linux kernel. */ -## This file is part of the superiotool project. -/* This file is part of the superiotool project */ -/* This file is part of uio_usbdebug */ Change-Id: I82d872b3b337388c93d5f5bf704e9ee9e53ab3a9 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41194 Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
116 lines
2.9 KiB
C
116 lines
2.9 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#include <southbridge/intel/common/gpio.h>
|
|
|
|
static const struct pch_gpio_set1 pch_gpio_set1_mode = {
|
|
.gpio0 = GPIO_MODE_GPIO,
|
|
.gpio6 = GPIO_MODE_GPIO,
|
|
.gpio7 = GPIO_MODE_GPIO,
|
|
.gpio8 = GPIO_MODE_GPIO,
|
|
.gpio9 = GPIO_MODE_GPIO,
|
|
.gpio10 = GPIO_MODE_GPIO,
|
|
.gpio11 = GPIO_MODE_GPIO,
|
|
.gpio12 = GPIO_MODE_GPIO,
|
|
.gpio13 = GPIO_MODE_GPIO,
|
|
.gpio14 = GPIO_MODE_GPIO,
|
|
.gpio15 = GPIO_MODE_GPIO,
|
|
.gpio16 = GPIO_MODE_GPIO,
|
|
.gpio18 = GPIO_MODE_GPIO,
|
|
.gpio19 = GPIO_MODE_GPIO,
|
|
.gpio20 = GPIO_MODE_GPIO,
|
|
.gpio21 = GPIO_MODE_GPIO,
|
|
.gpio24 = GPIO_MODE_GPIO,
|
|
.gpio25 = GPIO_MODE_GPIO,
|
|
.gpio26 = GPIO_MODE_GPIO,
|
|
.gpio27 = GPIO_MODE_GPIO,
|
|
.gpio28 = GPIO_MODE_GPIO,
|
|
};
|
|
|
|
static const struct pch_gpio_set1 pch_gpio_set1_direction = {
|
|
.gpio0 = GPIO_DIR_OUTPUT,
|
|
.gpio6 = GPIO_DIR_INPUT,
|
|
.gpio7 = GPIO_DIR_INPUT,
|
|
.gpio8 = GPIO_DIR_INPUT,
|
|
.gpio9 = GPIO_DIR_INPUT,
|
|
.gpio10 = GPIO_DIR_INPUT,
|
|
.gpio11 = GPIO_DIR_OUTPUT,
|
|
.gpio12 = GPIO_DIR_INPUT,
|
|
.gpio13 = GPIO_DIR_INPUT,
|
|
.gpio14 = GPIO_DIR_INPUT,
|
|
.gpio15 = GPIO_DIR_INPUT,
|
|
.gpio16 = GPIO_DIR_OUTPUT,
|
|
.gpio18 = GPIO_DIR_OUTPUT,
|
|
.gpio19 = GPIO_DIR_INPUT,
|
|
.gpio20 = GPIO_DIR_OUTPUT,
|
|
.gpio21 = GPIO_DIR_INPUT,
|
|
.gpio24 = GPIO_DIR_OUTPUT,
|
|
.gpio25 = GPIO_DIR_OUTPUT,
|
|
.gpio26 = GPIO_DIR_OUTPUT,
|
|
.gpio27 = GPIO_DIR_OUTPUT,
|
|
.gpio28 = GPIO_DIR_OUTPUT,
|
|
};
|
|
|
|
static const struct pch_gpio_set1 pch_gpio_set1_level = {
|
|
.gpio0 = GPIO_LEVEL_LOW,
|
|
.gpio11 = GPIO_LEVEL_HIGH,
|
|
.gpio16 = GPIO_LEVEL_LOW,
|
|
.gpio18 = GPIO_LEVEL_HIGH,
|
|
.gpio20 = GPIO_LEVEL_HIGH,
|
|
.gpio24 = GPIO_LEVEL_LOW,
|
|
.gpio25 = GPIO_LEVEL_HIGH,
|
|
.gpio26 = GPIO_LEVEL_LOW,
|
|
.gpio27 = GPIO_LEVEL_LOW,
|
|
.gpio28 = GPIO_LEVEL_LOW,
|
|
};
|
|
|
|
static const struct pch_gpio_set1 pch_gpio_set1_blink = {
|
|
};
|
|
|
|
static const struct pch_gpio_set1 pch_gpio_set1_invert = {
|
|
.gpio13 = GPIO_INVERT,
|
|
.gpio14 = GPIO_INVERT,
|
|
};
|
|
|
|
static const struct pch_gpio_set2 pch_gpio_set2_mode = {
|
|
.gpio32 = GPIO_MODE_NATIVE,
|
|
.gpio33 = GPIO_MODE_NATIVE,
|
|
.gpio34 = GPIO_MODE_NATIVE,
|
|
.gpio35 = GPIO_MODE_NATIVE,
|
|
.gpio36 = GPIO_MODE_NATIVE,
|
|
.gpio37 = GPIO_MODE_NATIVE,
|
|
.gpio38 = GPIO_MODE_NATIVE,
|
|
.gpio39 = GPIO_MODE_NATIVE,
|
|
};
|
|
|
|
static const struct pch_gpio_set2 pch_gpio_set2_direction = {
|
|
.gpio32 = GPIO_DIR_OUTPUT,
|
|
.gpio33 = GPIO_DIR_OUTPUT,
|
|
.gpio34 = GPIO_DIR_OUTPUT,
|
|
.gpio35 = GPIO_DIR_OUTPUT,
|
|
.gpio36 = GPIO_DIR_INPUT,
|
|
.gpio37 = GPIO_DIR_INPUT,
|
|
.gpio38 = GPIO_DIR_INPUT,
|
|
.gpio39 = GPIO_DIR_INPUT,
|
|
};
|
|
|
|
static const struct pch_gpio_set2 pch_gpio_set2_level = {
|
|
.gpio32 = GPIO_LEVEL_HIGH,
|
|
.gpio33 = GPIO_LEVEL_HIGH,
|
|
.gpio34 = GPIO_LEVEL_LOW,
|
|
.gpio35 = GPIO_LEVEL_LOW,
|
|
};
|
|
|
|
const struct pch_gpio_map mainboard_gpio_map = {
|
|
.set1 = {
|
|
.mode = &pch_gpio_set1_mode,
|
|
.direction = &pch_gpio_set1_direction,
|
|
.level = &pch_gpio_set1_level,
|
|
.blink = &pch_gpio_set1_blink,
|
|
.invert = &pch_gpio_set1_invert,
|
|
},
|
|
.set2 = {
|
|
.mode = &pch_gpio_set2_mode,
|
|
.direction = &pch_gpio_set2_direction,
|
|
.level = &pch_gpio_set2_level,
|
|
},
|
|
};
|