coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
lpc_def.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3
#ifndef _SOC_COMMON_BLOCK_LPC_DEF_H_
4
#define _SOC_COMMON_BLOCK_LPC_DEF_H_
5
6
#define LPC_SERIRQ_CTL 0x64
7
#define LPC_SCNT_EN (1 << 7)
8
#define LPC_SCNT_MODE (1 << 6)
9
#define LPC_IO_DECODE 0x80
10
#define LPC_IOD_COMA_RANGE_MASK (7 << 0)
11
#define LPC_IOD_COMB_RANGE_MASK (7 << 4)
12
#define LPC_IOD_COMA_RANGE (0 << 0)
/* 0x3F8 - 0x3FF COMA */
13
#define LPC_IOD_COMB_RANGE (1 << 4)
/* 0x2F8 - 0x2FF COMB */
14
/* Use IO_<peripheral>_<IO port> style macros defined in lpc_lib.h
15
* to enable decoding of I/O locations for a peripheral. */
16
#define LPC_IO_ENABLES 0x82
17
#define LPC_GENERIC_IO_RANGE(n) ((((n) & 0x3) * 4) + 0x84)
18
#define LPC_LGIR_AMASK_MASK (0xfc << 16)
19
#define LPC_LGIR_ADDR_MASK 0xfffc
20
#define LPC_LGIR_EN (1 << 0)
21
#define LPC_LGIR_MAX_WINDOW_SIZE 256
22
#define LPC_GENERIC_MEM_RANGE 0x98
23
#define LPC_LGMR_ADDR_MASK 0xffff0000
24
#define LPC_LGMR_EN (1 << 0)
25
#define LPC_LGMR_WINDOW_SIZE (64 * KiB)
26
#define LPC_BIOS_CNTL 0xdc
27
#define LPC_BC_BILD (1 << 7)
/* BILD */
28
#define LPC_BC_LE (1 << 1)
/* LE */
29
#define LPC_BC_WPD (1 << 0)
/* WPD */
30
#define LPC_BC_EISS (1 << 5)
/* EISS */
31
#define LPC_PCCTL 0xE0
/* PCI Clock Control */
32
#define LPC_PCCTL_CLKRUN_EN (1 << 0)
33
34
#endif
/* _SOC_COMMON_BLOCK_LPC_DEF_H_ */
src
soc
intel
common
block
lpc
lpc_def.h
Generated by
1.9.1