blob: 1b4f3ba6b2641dd5c627eb33894d7b1f516de675 [file] [log] [blame]
Lee Leahy77ff0b12015-05-05 15:07:29 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2013 Google Inc.
Lee Leahy32471722015-04-20 15:20:28 -07005 * Copyright (C) 2015 Intel Corp.
Frans Hendriks96220242018-12-17 11:51:34 +01006 * Copyright (C) 2018 Eltan B.V.
Lee Leahy77ff0b12015-05-05 15:07:29 -07007 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; version 2 of the License.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
Lee Leahy77ff0b12015-05-05 15:07:29 -070016 */
17
Lee Leahy32471722015-04-20 15:20:28 -070018#ifndef _SOC_DEVICE_NVS_H_
19#define _SOC_DEVICE_NVS_H_
Lee Leahy77ff0b12015-05-05 15:07:29 -070020
21#include <stdint.h>
22
Lee Leahy77ff0b12015-05-05 15:07:29 -070023#define LPSS_NVS_SIO_DMA1 0
24#define LPSS_NVS_I2C1 1
25#define LPSS_NVS_I2C2 2
26#define LPSS_NVS_I2C3 3
27#define LPSS_NVS_I2C4 4
28#define LPSS_NVS_I2C5 5
29#define LPSS_NVS_I2C6 6
30#define LPSS_NVS_I2C7 7
31#define LPSS_NVS_SIO_DMA2 8
32#define LPSS_NVS_SPI 9
33#define LPSS_NVS_PWM1 10
34#define LPSS_NVS_PWM2 11
35#define LPSS_NVS_HSUART1 12
36#define LPSS_NVS_HSUART2 13
37
38#define SCC_NVS_MMC 0
39#define SCC_NVS_SDIO 1
40#define SCC_NVS_SD 2
41
42typedef struct {
43 /* Device Enabled in ACPI Mode */
44 u8 lpss_en[14];
45 u8 scc_en[3];
46 u8 lpe_en;
47
48 /* BAR 0 */
49 u32 lpss_bar0[14];
50 u32 scc_bar0[3];
51 u32 lpe_bar0;
52
Frans Hendriks96220242018-12-17 11:51:34 +010053 /* BAR 1 */
Lee Leahy77ff0b12015-05-05 15:07:29 -070054 u32 lpss_bar1[14];
55 u32 scc_bar1[3];
56 u32 lpe_bar1;
57
58 /* Extra */
59 u32 lpe_fw; /* LPE Firmware */
Stefan Reinauer6a001132017-07-13 02:20:27 +020060} __packed device_nvs_t;
Lee Leahy77ff0b12015-05-05 15:07:29 -070061
Lee Leahy32471722015-04-20 15:20:28 -070062#endif /* _SOC_DEVICE_NVS_H_ */