coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
iomap.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef _QUARK_IOMAP_H_
4 #define _QUARK_IOMAP_H_
5 
6 /*
7  * Memory Mapped IO base addresses.
8  */
9 
10 /* UART MMIO */
11 #define UART_BASE_ADDRESS CONFIG_TTYS0_BASE
12 
13 /* I2C/GPIO Controller */
14 #define I2C_BASE_ADDRESS 0xa0020000
15 #define GPIO_BASE_ADDRESS 0xa0021000
16 
17 /* Temporary BAR for SD controller */
18 #define SD_BASE_ADDRESS 0xa0022000
19 
20 /*
21  * I/O port address space
22  */
23 #define GPE0_BASE_ADDRESS 0x2000
24 #define GPE0_SIZE 0x40
25 
26 #define PM1BLK_BASE_ADDRESS 0x2040
27 #define PM1BLK_SIZE 0x10
28 
29 #define LEGACY_GPIO_BASE_ADDRESS 0x2080
30 #define LEGACY_GPIO_SIZE 0x80
31 
32 #define IO_ADDRESS_VALID 0x80000000
33 
34 #endif /* _QUARK_IOMAP_H_ */