coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
com_init.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3
#include <
bootblock_common.h
>
4
#include <
superio/ite/common/ite.h
>
5
#include <
superio/ite/it8613e/it8613e.h
>
6
7
#define SERIAL1_DEV PNP_DEV(0x2e, IT8613E_SP1)
8
#define GPIO_DEV PNP_DEV(0x2e, IT8613E_GPIO)
9
10
void
bootblock_mainboard_early_init
(
void
)
11
{
12
ite_reg_write
(
GPIO_DEV
, 0x2c, 0x41);
/* disable K8 power seq */
13
ite_reg_write
(
GPIO_DEV
, 0x2d, 0x02);
/* PCICLK 25MHz */
14
ite_enable_serial
(
SERIAL1_DEV
, CONFIG_TTYS0_BASE);
15
}
bootblock_common.h
bootblock_mainboard_early_init
void bootblock_mainboard_early_init(void)
Definition:
com_init.c:8
it8613e.h
ite_enable_serial
void ite_enable_serial(pnp_devfn_t dev, u16 iobase)
Definition:
early_serial.c:61
ite_reg_write
void ite_reg_write(pnp_devfn_t dev, u8 reg, u8 value)
Definition:
early_serial.c:41
ite.h
GPIO_DEV
#define GPIO_DEV
Definition:
com_init.c:8
SERIAL1_DEV
#define SERIAL1_DEV
Definition:
com_init.c:7
src
mainboard
protectli
vault_bsw
com_init.c
Generated by
1.9.1