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

Go to the source code of this file.

Macros

#define ECMM(x)   (*((volatile u8 *)(CONFIG_EC_BASE_ADDRESS + x)))
 
#define ec_mm_read(addr)   (ECMM(0x100 + addr))
 
#define ec_mm_write(addr, data)   (ECMM(0x100 + addr) = data)
 
#define ec_mm_set_bit(addr, bit)   (ECMM(0x100 + addr) |= 1 << bit)
 
#define ec_mm_clr_bit(addr, bit)   (ECMM(0x100 + addr) &= ~(1 << bit))
 

Functions

void lenovo_s230u_ec_init (void)
 

Macro Definition Documentation

◆ ec_mm_clr_bit

#define ec_mm_clr_bit (   addr,
  bit 
)    (ECMM(0x100 + addr) &= ~(1 << bit))

Definition at line 12 of file ec.h.

◆ ec_mm_read

#define ec_mm_read (   addr)    (ECMM(0x100 + addr))

Definition at line 9 of file ec.h.

◆ ec_mm_set_bit

#define ec_mm_set_bit (   addr,
  bit 
)    (ECMM(0x100 + addr) |= 1 << bit)

Definition at line 11 of file ec.h.

◆ ec_mm_write

#define ec_mm_write (   addr,
  data 
)    (ECMM(0x100 + addr) = data)

Definition at line 10 of file ec.h.

◆ ECMM

#define ECMM (   x)    (*((volatile u8 *)(CONFIG_EC_BASE_ADDRESS + x)))

Definition at line 8 of file ec.h.

Function Documentation

◆ lenovo_s230u_ec_init()

void lenovo_s230u_ec_init ( void  )

Definition at line 20 of file ec.c.

References ec_mm_set_bit, enter_apm_mode(), and set_keyboard_matrix_us().

Referenced by mainboard_enable().

Here is the call graph for this function:
Here is the caller graph for this function: