coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
early_serial.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3
#include <
device/pnp_type.h
>
4
#include <
superio/ite/common/ite.h
>
5
#include "
it8718f.h
"
6
7
/*
8
* GIGABYTE uses a special Super I/O register to protect its Dual BIOS
9
* mechanism. It lives in the GPIO LDN. However, register 0xEF is not
10
* mentioned in the IT8718F datasheet so just hardcode it to 0x7E for now.
11
*/
12
void
it8718f_disable_reboot
(
pnp_devfn_t
dev)
13
{
14
ite_reg_write
(dev, 0xEF, 0x7E);
15
}
it8718f.h
ite_reg_write
void ite_reg_write(pnp_devfn_t dev, u8 reg, u8 value)
Definition:
early_serial.c:41
it8718f_disable_reboot
void it8718f_disable_reboot(pnp_devfn_t dev)
Definition:
early_serial.c:12
ite.h
pnp_type.h
pnp_devfn_t
u32 pnp_devfn_t
Definition:
pnp_type.h:8
src
superio
ite
it8718f
early_serial.c
Generated by
1.9.1