coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
onboard.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define JECHT_NIC_VENDOR_ID   0x10EC
 
#define JECHT_NIC_DEVICE_ID   0x8168
 
#define JECHT_NIC_LED_MODE   0x00
 
#define JECHT_NIC_WAKE_GPIO   8
 
#define JECHT_WLAN_WAKE_GPIO   10
 
#define GPIO_USB_CTL_1   26
 
#define IT8772F_BASE   0x2e
 
#define IT8772F_SERIAL_DEV   PNP_DEV(IT8772F_BASE, IT8772F_SP1)
 
#define IT8772F_GPIO_DEV   PNP_DEV(IT8772F_BASE, IT8772F_GPIO)
 
#define IT8772F_SUPERIO_DEV   PNP_DEV(IT8772F_BASE, 0)
 
#define GPIO_SPI_WP   58
 
#define GPIO_REC_MODE   12
 

Enumerations

enum  { LED_OFF = 0 , LED_ON , LED_BLINK }
 

Functions

void lan_init (void)
 
void set_power_led (int state)
 

Macro Definition Documentation

◆ GPIO_REC_MODE

#define GPIO_REC_MODE   12

Definition at line 44 of file onboard.h.

◆ GPIO_SPI_WP

#define GPIO_SPI_WP   58

Definition at line 41 of file onboard.h.

◆ GPIO_USB_CTL_1

#define GPIO_USB_CTL_1   26

Definition at line 32 of file onboard.h.

◆ IT8772F_BASE

#define IT8772F_BASE   0x2e

Definition at line 35 of file onboard.h.

◆ IT8772F_GPIO_DEV

#define IT8772F_GPIO_DEV   PNP_DEV(IT8772F_BASE, IT8772F_GPIO)

Definition at line 37 of file onboard.h.

◆ IT8772F_SERIAL_DEV

#define IT8772F_SERIAL_DEV   PNP_DEV(IT8772F_BASE, IT8772F_SP1)

Definition at line 36 of file onboard.h.

◆ IT8772F_SUPERIO_DEV

#define IT8772F_SUPERIO_DEV   PNP_DEV(IT8772F_BASE, 0)

Definition at line 38 of file onboard.h.

◆ JECHT_NIC_DEVICE_ID

#define JECHT_NIC_DEVICE_ID   0x8168

Definition at line 20 of file onboard.h.

◆ JECHT_NIC_LED_MODE

#define JECHT_NIC_LED_MODE   0x00

Definition at line 23 of file onboard.h.

◆ JECHT_NIC_VENDOR_ID

#define JECHT_NIC_VENDOR_ID   0x10EC

Definition at line 19 of file onboard.h.

◆ JECHT_NIC_WAKE_GPIO

#define JECHT_NIC_WAKE_GPIO   8

Definition at line 26 of file onboard.h.

◆ JECHT_WLAN_WAKE_GPIO

#define JECHT_WLAN_WAKE_GPIO   10

Definition at line 29 of file onboard.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
LED_OFF 
LED_ON 
LED_BLINK 

Definition at line 11 of file onboard.h.

Function Documentation

◆ lan_init()

void lan_init ( void  )

Definition at line 8 of file mainboard.c.

◆ set_power_led()

void set_power_led ( int  state)

Definition at line 6 of file led.c.

References CONFIG, IT8772F_GPIO_BLINK_FREQUENCY_1_HZ, IT8772F_GPIO_DEV, it8772f_gpio_led(), LED_BLINK, LED_OFF, SIO_GPIO_BLINK_GPIO10, and SIO_GPIO_BLINK_GPIO22.

Here is the call graph for this function: