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 __MAINBOARD_ONBOARD_H
4 #define __MAINBOARD_ONBOARD_H
5 
6 /* defines for programming the MAC address */
7 #define NIC_VENDOR_ID 0x10EC
8 #define NIC_DEVICE_ID 0x8168
9 
10 /* 0x00: White LINK LED and Amber ACTIVE LED */
11 #define NIC_LED_MODE 0x00
12 
13 /* NIC wake is GPIO 8 */
14 #define NIC_WAKE_GPIO 8
15 
16 /* WLAN wake is GPIO 10 */
17 #define WLAN_WAKE_GPIO 10
18 
19 /* Recovery: GPIO12 = RECOVERY_L, active low */
20 #define GPIO_REC_MODE 12
21 
22 /* Write Protect: GPIO58 = GPIO_SPI_WP, active high */
23 #define GPIO_SPI_WP 58
24 
25 /* IT8772F defs */
26 #define IT8772F_BASE 0x2e
27 #define IT8772F_SERIAL_DEV PNP_DEV(IT8772F_BASE, IT8772F_SP1)
28 #define IT8772F_GPIO_DEV PNP_DEV(IT8772F_BASE, IT8772F_GPIO)
29 #define IT8772F_SUPERIO_DEV PNP_DEV(IT8772F_BASE, 0)
30 
31 #ifndef __ACPI__
32 void lan_init(void);
33 
34 void set_power_led(int state);
35 
36 enum {
37  LED_OFF = 0,
40 };
41 #endif
42 
43 #endif /* __MAINBOARD_ONBOARD_H */
void lan_init(void)
Definition: mainboard.c:8
@ LED_BLINK
Definition: onboard.h:39
@ LED_ON
Definition: onboard.h:38
@ LED_OFF
Definition: onboard.h:37
void set_power_led(int state)
Definition: led.c:6
state
Definition: raminit.c:1787