aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/beltino/bootblock.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-07-03 14:03:16 +0200
committerAngel Pons <th3fanbus@gmail.com>2020-07-11 20:46:06 +0000
commitc06648b8c1f33e0f9d2356edc740e7661b7eb4f2 (patch)
tree6acd94d5cbc37c152931ba84457c722b8b6df242 /src/mainboard/google/beltino/bootblock.c
parent2446c1e9e99e6448f5f62c7a4f9c50dceec2b25e (diff)
mb/google/beltino: Move Super I/O init to bootblock
Also remove an unneeded `pch_enable_lpc` function call. Change-Id: I83158a655670d4e6cd91f6bf3332d1b6f9f655d1 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43104 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tristan Corrick <tristan@corrick.kiwi> Reviewed-by: Michael Niewöhner Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Diffstat (limited to 'src/mainboard/google/beltino/bootblock.c')
-rw-r--r--src/mainboard/google/beltino/bootblock.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mainboard/google/beltino/bootblock.c b/src/mainboard/google/beltino/bootblock.c
new file mode 100644
index 0000000000..c52059bcdc
--- /dev/null
+++ b/src/mainboard/google/beltino/bootblock.c
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <stdint.h>
+#include <southbridge/intel/lynxpoint/pch.h>
+#include <superio/ite/common/ite.h>
+#include <superio/ite/it8772f/it8772f.h>
+#include "onboard.h"
+
+void mainboard_config_superio(void)
+{
+ /* Early SuperIO setup */
+ ite_kill_watchdog(IT8772F_GPIO_DEV);
+ it8772f_ac_resume_southbridge(IT8772F_SUPERIO_DEV);
+ ite_enable_serial(IT8772F_SERIAL_DEV, CONFIG_TTYS0_BASE);
+
+ /* Turn on Power LED */
+ set_power_led(LED_ON);
+}