Angel Pons | 8dcc818 | 2020-04-03 01:21:52 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Angel Pons | 963500f | 2018-04-29 19:56:49 +0200 | [diff] [blame] | 2 | |
Arthur Heymans | fa5d0f8 | 2019-11-12 19:11:50 +0100 | [diff] [blame] | 3 | #include <bootblock_common.h> |
Keith Hui | 45e4ab4 | 2023-07-22 12:49:05 -0400 | [diff] [blame^] | 4 | #include <northbridge/intel/sandybridge/raminit.h> |
Angel Pons | 963500f | 2018-04-29 19:56:49 +0200 | [diff] [blame] | 5 | #include <southbridge/intel/bd82x6x/pch.h> |
| 6 | #include <superio/ite/common/ite.h> |
| 7 | #include <superio/ite/it8728f/it8728f.h> |
| 8 | |
| 9 | #define SUPERIO_GPIO PNP_DEV(0x2e, IT8728F_GPIO) |
| 10 | #define SERIAL_DEV PNP_DEV(0x2e, 0x01) |
| 11 | |
Angel Pons | 963500f | 2018-04-29 19:56:49 +0200 | [diff] [blame] | 12 | const struct southbridge_usb_port mainboard_usb_ports[] = { |
| 13 | { 1, 0, 0 }, |
| 14 | { 1, 0, 0 }, |
| 15 | { 1, 0, 1 }, |
| 16 | { 1, 0, 1 }, |
| 17 | { 1, 0, 2 }, |
| 18 | { 1, 0, 2 }, |
| 19 | { 1, 0, 3 }, |
| 20 | { 1, 0, 3 }, |
| 21 | { 1, 0, 4 }, |
| 22 | { 1, 0, 4 }, |
| 23 | { 1, 0, 6 }, |
| 24 | { 1, 0, 5 }, |
| 25 | { 1, 0, 5 }, |
| 26 | { 1, 0, 6 }, |
| 27 | }; |
| 28 | |
Arthur Heymans | fa5d0f8 | 2019-11-12 19:11:50 +0100 | [diff] [blame] | 29 | void bootblock_mainboard_early_init(void) |
Angel Pons | 963500f | 2018-04-29 19:56:49 +0200 | [diff] [blame] | 30 | { |
Angel Pons | c6b44cd | 2019-03-10 13:21:12 +0100 | [diff] [blame] | 31 | if (!CONFIG(NO_UART_ON_SUPERIO)) { |
| 32 | /* Enable serial port */ |
| 33 | ite_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE); |
| 34 | } |
Angel Pons | 963500f | 2018-04-29 19:56:49 +0200 | [diff] [blame] | 35 | |
Angel Pons | 940bb4e | 2018-06-24 12:02:59 +0200 | [diff] [blame] | 36 | /* Disable SIO WDT which kicks in DualBIOS */ |
| 37 | ite_reg_write(SUPERIO_GPIO, 0xEF, 0x7E); |
Angel Pons | 963500f | 2018-04-29 19:56:49 +0200 | [diff] [blame] | 38 | } |