coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
onboard.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#ifndef ONBOARD_H
4
#define ONBOARD_H
5
6
#ifndef __ACPI__
7
void
lan_init
(
void
);
8
9
void
set_power_led
(
int
state
);
10
11
enum
{
12
LED_OFF
= 0,
13
LED_ON
,
14
LED_BLINK
,
15
};
16
#endif
17
18
/* defines for programming the MAC address */
19
#define JECHT_NIC_VENDOR_ID 0x10EC
20
#define JECHT_NIC_DEVICE_ID 0x8168
21
22
/* 0x00: White LINK LED and Amber ACTIVE LED */
23
#define JECHT_NIC_LED_MODE 0x00
24
25
/* NIC wake is GPIO 8 */
26
#define JECHT_NIC_WAKE_GPIO 8
27
28
/* WLAN wake is GPIO 10 */
29
#define JECHT_WLAN_WAKE_GPIO 10
30
31
/* USB Charger Control: GPIO26 */
32
#define GPIO_USB_CTL_1 26
33
34
/* IT8772F defs */
35
#define IT8772F_BASE 0x2e
36
#define IT8772F_SERIAL_DEV PNP_DEV(IT8772F_BASE, IT8772F_SP1)
37
#define IT8772F_GPIO_DEV PNP_DEV(IT8772F_BASE, IT8772F_GPIO)
38
#define IT8772F_SUPERIO_DEV PNP_DEV(IT8772F_BASE, 0)
39
40
/* Write Protect: GPIO58 = GPIO_SPI_WP, active high */
41
#define GPIO_SPI_WP 58
42
43
/* Recovery: GPIO12 = RECOVERY_L, active low */
44
#define GPIO_REC_MODE 12
45
46
#endif
lan_init
void lan_init(void)
Definition:
mainboard.c:8
LED_BLINK
@ LED_BLINK
Definition:
onboard.h:39
LED_ON
@ LED_ON
Definition:
onboard.h:38
LED_OFF
@ LED_OFF
Definition:
onboard.h:37
set_power_led
void set_power_led(int state)
Definition:
led.c:6
state
state
Definition:
raminit.c:1787
src
mainboard
google
jecht
onboard.h
Generated by
1.9.1