summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/arch-apollolake/iomap.h
blob: 21c5f33021af2ab653cc7b400e9425a596ea5073 (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
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (C) 2017 Intel Corporation.
 * Take from coreboot project file of the same name
 */

#ifndef _ASM_ARCH_IOMAP_H
#define _ASM_ARCH_IOMAP_H

#define R_ACPI_PM1_TMR			0x8

/* Put p2sb at 0xd0000000 in TPL */
#define IOMAP_P2SB_BAR		0xd0000000
#define IOMAP_P2SB_SIZE		0x10000000

#define IOMAP_SPI_BASE		0xfe010000

#define IOMAP_ACPI_BASE		0x400
#define IOMAP_ACPI_SIZE		0x100
#define ACPI_BASE_ADDRESS	IOMAP_ACPI_BASE

#define PMC_BAR0		0xfe042000

#define MCH_BASE_ADDRESS	0xfed10000
#define MCH_SIZE		0x8000

#ifdef __ACPI__
#define HPET_BASE_ADDRESS	0xfed00000

#define SRAM_BASE_0		0xfe900000
#define SRAM_SIZE_0		(8 * KiB)
#define SRAM_BASE_2		0xfe902000
#define SRAM_SIZE_2		(4 * KiB)
#endif

/*
 * Use UART2. To use UART1 you need to set '2' to '1', change device tree serial
 * node name and 'reg' property, and update CONFIG_DEBUG_UART_BASE.
 */
#define PCH_DEV_UART		PCI_BDF(0, 0x18, 2)

#define PCH_DEV_LPC		PCI_BDF(0, 0x1f, 0)
#define PCH_DEV_SPI		PCI_BDF(0, 0x0d, 2)

#endif