summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/alderlake/include/soc/bootblock.h
blob: 41f99e1102960beb107c657f01ac58b38d5cb263 (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
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef _SOC_ALDERLAKE_BOOTBLOCK_H_
#define _SOC_ALDERLAKE_BOOTBLOCK_H_

#if	CONFIG(SOC_INTEL_ALDERLAKE_PCH_M) +	\
	CONFIG(SOC_INTEL_ALDERLAKE_PCH_N) +	\
	CONFIG(SOC_INTEL_ALDERLAKE_PCH_P) +	\
	CONFIG(SOC_INTEL_ALDERLAKE_PCH_S) != 1
#error "Please select exactly one PCH type"
#endif

struct descriptor_byte {
	size_t offset;
	uint8_t desired_value;
};

/* Bootblock pre console init programming */
void bootblock_pch_early_init(void);

/* Bootblock post console init programming */
void bootblock_pch_init(void);
void pch_early_iorange_init(void);
void report_platform_info(void);

void configure_descriptor(struct descriptor_byte *bytes, size_t num);

#endif