soc/intel/apollolake: Take advantage of common opregion code
[coreboot.git] / src / soc / intel / apollolake / chip.h
blobd74084ebffb1e8d4995a53ac0b4a79d4727b007d
1 /*
2 * This file is part of the coreboot project.
4 * Copyright (C) 2015 Intel Corp.
5 * (Written by Alexandru Gagniuc <alexandrux.gagniuc@intel.com> for Intel Corp.)
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
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.
18 #ifndef _SOC_APOLLOLAKE_CHIP_H_
19 #define _SOC_APOLLOLAKE_CHIP_H_
21 #define CLKREQ_DISABLED 0xf
23 /* Serial IRQ control. SERIRQ_QUIET is the default (0). */
24 enum serirq_mode {
25 SERIRQ_QUIET,
26 SERIRQ_CONTINUOUS,
27 SERIRQ_OFF,
30 struct soc_intel_apollolake_config {
32 * Mapping from PCIe root port to CLKREQ input on the SOC. The SOC has
33 * four CLKREQ inputs, but six root ports. Root ports without an
34 * associated CLKREQ signal must be marked with "CLKREQ_DISABLED"
36 uint8_t pcie_rp0_clkreq_pin;
37 uint8_t pcie_rp1_clkreq_pin;
38 uint8_t pcie_rp2_clkreq_pin;
39 uint8_t pcie_rp3_clkreq_pin;
40 uint8_t pcie_rp4_clkreq_pin;
41 uint8_t pcie_rp5_clkreq_pin;
43 /* Configure serial IRQ (SERIRQ) line. */
44 enum serirq_mode serirq_mode;
47 #endif /* _SOC_APOLLOLAKE_CHIP_H_ */