summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/quark/include/soc/iomap.h
blob: dcebb1e59cad53f83851f075c1c329f090a468e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * This file is part of the coreboot project.
 *
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 2 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#ifndef _QUARK_IOMAP_H_
#define _QUARK_IOMAP_H_

/*
 * Memory Mapped IO base addresses.
 */

/* UART MMIO */
#define UART_BASE_ADDRESS		CONFIG_TTYS0_BASE

/* I2C/GPIO Controller */
#define I2C_BASE_ADDRESS		0xa0020000
#define GPIO_BASE_ADDRESS		0xa0021000

/* Temporary BAR for SD controller */
#define SD_BASE_ADDRESS			0xa0022000

/*
 * I/O port address space
 */
#define GPE0_BASE_ADDRESS		0x2000
#define GPE0_SIZE			0x40

#define PM1BLK_BASE_ADDRESS		0x2040
#define PM1BLK_SIZE			0x10

#define LEGACY_GPIO_BASE_ADDRESS	0x2080
#define LEGACY_GPIO_SIZE		0x80

#define IO_ADDRESS_VALID		0x80000000

#endif /* _QUARK_IOMAP_H_ */