Angel Pons | 381c4eb | 2020-04-03 01:22:06 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Patrick Rudolph | 05284b6 | 2019-06-04 15:56:44 +0200 | [diff] [blame] | 2 | |
Arthur Heymans | fa5d0f8 | 2019-11-12 19:11:50 +0100 | [diff] [blame] | 3 | #include <bootblock_common.h> |
Patrick Rudolph | 05284b6 | 2019-06-04 15:56:44 +0200 | [diff] [blame] | 4 | #include <superio/nuvoton/npcd378/npcd378.h> |
| 5 | #include <superio/nuvoton/common/nuvoton.h> |
Patrick Rudolph | 05284b6 | 2019-06-04 15:56:44 +0200 | [diff] [blame] | 6 | #include <southbridge/intel/bd82x6x/pch.h> |
| 7 | |
| 8 | #define SERIAL_DEV PNP_DEV(0x2e, NPCD378_SP2) |
| 9 | |
Patrick Rudolph | 05284b6 | 2019-06-04 15:56:44 +0200 | [diff] [blame] | 10 | const struct southbridge_usb_port mainboard_usb_ports[] = { |
| 11 | { 1, 0, 0 }, |
| 12 | { 1, 0, 0 }, |
| 13 | { 1, 0, 0 }, |
| 14 | { 1, 0, 0 }, |
| 15 | { 1, 0, 3 }, |
| 16 | { 1, 0, 3 }, |
| 17 | { 1, 0, 3 }, |
| 18 | { 1, 0, 3 }, |
| 19 | { 1, 1, 5 }, |
| 20 | { 1, 0, 5 }, |
| 21 | { 1, 0, 5 }, |
| 22 | { 1, 0, 5 }, |
| 23 | { 1, 0, 7 }, |
| 24 | { 1, 0, 7 }, |
| 25 | }; |
| 26 | |
Arthur Heymans | fa5d0f8 | 2019-11-12 19:11:50 +0100 | [diff] [blame] | 27 | void bootblock_mainboard_early_init(void) |
Patrick Rudolph | 05284b6 | 2019-06-04 15:56:44 +0200 | [diff] [blame] | 28 | { |
| 29 | if (CONFIG(CONSOLE_SERIAL)) |
| 30 | nuvoton_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE); |
| 31 | } |