summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/fsp_broadwell_de/include/soc/broadwell_de.h
blob: a44b857c1f4b498398996b7980837d6d35859c6f (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.
 *
 * Copyright (C) 2013 Google, Inc.
 * Copyright (C) 2015-2016 Intel Corp.
 * Copyright (C) 2017-2018 Siemens AG
 *
 * 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 _SOC_BROADWELL_DE_H_
#define _SOC_BROADWELL_DE_H_

uintptr_t sa_get_tseg_base(void);
size_t sa_get_tseg_size(void);

#define VTBAR_OFFSET		0x180
#define VTBAR_MASK		0xffffe000
#define VTBAR_ENABLED		0x01
#define VTBAR_SIZE		0x2000

#define SMM_FEATURE_CONTROL	0x58
#define  SMM_CPU_SAVE_EN	(1 << 1)
#define TSEG_BASE		0xa8	/* TSEG base */
#define TSEG_LIMIT		0xac	/* TSEG limit */

#define IIO_LTDPR		0x290
#define  DPR_LOCK	(1 << 0)
#define  DPR_EPM	(1 << 2)
#define  DPR_PRS	(1 << 1)
#define  DPR_SIZE_MASK	0xff0
#define  DPR_SIZE_SHIFT	4
#define  DPR_ADDR_MASK	0xfff00000
#define  DPR_ADDR_SHIFT	20

/* CPU bus clock is fixed at 100MHz */
#define CPU_BCLK		100

#endif /* _SOC_BROADWELL_DE_H_ */