libpayload: configs: Add new config.featuretest to broaden CI
[coreboot2.git] / src / mainboard / hp / pro_3500_series / early_init.c
blobfbf73cfbf81414c2a621603f25bcd0d22aecb9ed
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <bootblock_common.h>
4 #include <device/pci_ops.h>
5 #include <superio/ite/common/ite.h>
6 #include <southbridge/intel/bd82x6x/pch.h>
7 #include <superio/hwm5_conf.h>
8 #include "common_defines.h"
9 #include "led.h"
11 const struct southbridge_usb_port mainboard_usb_ports[] = {
12 { 1, 6, 0 },
13 { 1, 6, 0 },
14 { 1, 6, 1 },
15 { 1, 9, 1 },
16 { 1, 10, 2 },
17 { 1, 11, 2 },
18 { 1, 6, 3 },
19 { 1, 6, 3 },
20 { 1, 6, 4 },
21 { 1, 12, 4 },
22 { 1, 6, 6 },
23 { 1, 11, 5 },
24 { 1, 6, 5 },
25 { 1, 6, 6 },
28 void bootblock_mainboard_early_init(void)
30 pci_write_config16(PCH_LPC_DEV, LPC_EN, CNF1_LPC_EN | KBC_LPC_EN);
32 /* Early SuperIO setup */
33 ite_conf_clkin(GPIO_DEV, ITE_UART_CLK_PREDIVIDE_24);
34 /* Clear when resuming from S3: */
35 ite_disable_3vsbsw(GPIO_DEV);
36 ite_disable_pme_out(EC_DEV);
37 ite_ac_resume_southbridge(EC_DEV);
39 set_power_led(LED_WHITE);