blob: 7b4656458851b6320a03a377a9c71fd8153072c5 [file] [log] [blame]
Patrick Georgiac959032020-05-05 22:49:26 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Jonathan Zhang8f895492020-01-16 11:16:45 -08002
3#include <console/console.h>
Jonathan Zhang8f895492020-01-16 11:16:45 -08004#include <intelblocks/lpc_lib.h>
Jonathan Zhang8f895492020-01-16 11:16:45 -08005#include <soc/iomap.h>
Johnny Linebb7f542020-02-19 15:52:45 +08006#include <soc/pcr_ids.h>
7
Andrey Petrov662da6c2020-03-16 22:46:57 -07008#include <chip.h>
Jonathan Zhang8f895492020-01-16 11:16:45 -08009
Patrick Georgi40b8f012021-05-12 14:52:12 +020010void soc_get_gen_io_dec_range(uint32_t gen_io_dec[LPC_NUM_GENERIC_IO_RANGES])
Johnny Linebb7f542020-02-19 15:52:45 +080011{
Furquan Shaikhe4f7e042020-12-23 14:11:00 -080012 const config_t *config = config_of_soc();
Johnny Linebb7f542020-02-19 15:52:45 +080013
14 gen_io_dec[0] = config->gen1_dec;
15 gen_io_dec[1] = config->gen2_dec;
16 gen_io_dec[2] = config->gen3_dec;
17 gen_io_dec[3] = config->gen4_dec;
18}
19
Jonathan Zhang8f895492020-01-16 11:16:45 -080020void lpc_soc_init(struct device *dev)
21{
22 printk(BIOS_SPEW, "pch: lpc_init\n");
23
24 /* FSP configures IOAPIC and PCHInterrupt Config */
Kyösti Mälkki401ec982021-06-06 08:27:15 +030025 /* Should read back the ID to fill ACPI IOAPIC accordingly. */
Jonathan Zhang8f895492020-01-16 11:16:45 -080026}
27
28void pch_lpc_soc_fill_io_resources(struct device *dev)
29{
30}