2020-05-05 22:49:26 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2020-01-16 20:16:45 +01:00
|
|
|
|
|
|
|
#include <console/console.h>
|
|
|
|
#include <intelblocks/lpc_lib.h>
|
|
|
|
#include <soc/iomap.h>
|
2020-02-19 08:52:45 +01:00
|
|
|
#include <soc/pcr_ids.h>
|
|
|
|
|
2020-03-17 06:46:57 +01:00
|
|
|
#include <chip.h>
|
2020-01-16 20:16:45 +01:00
|
|
|
|
2021-05-12 14:52:12 +02:00
|
|
|
void soc_get_gen_io_dec_range(uint32_t gen_io_dec[LPC_NUM_GENERIC_IO_RANGES])
|
2020-02-19 08:52:45 +01:00
|
|
|
{
|
2020-12-23 23:11:00 +01:00
|
|
|
const config_t *config = config_of_soc();
|
2020-02-19 08:52:45 +01:00
|
|
|
|
|
|
|
gen_io_dec[0] = config->gen1_dec;
|
|
|
|
gen_io_dec[1] = config->gen2_dec;
|
|
|
|
gen_io_dec[2] = config->gen3_dec;
|
|
|
|
gen_io_dec[3] = config->gen4_dec;
|
|
|
|
}
|
|
|
|
|
2020-01-16 20:16:45 +01:00
|
|
|
void lpc_soc_init(struct device *dev)
|
|
|
|
{
|
|
|
|
printk(BIOS_SPEW, "pch: lpc_init\n");
|
|
|
|
|
|
|
|
/* FSP configures IOAPIC and PCHInterrupt Config */
|
2021-06-06 07:27:15 +02:00
|
|
|
/* Should read back the ID to fill ACPI IOAPIC accordingly. */
|
2020-01-16 20:16:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void pch_lpc_soc_fill_io_resources(struct device *dev)
|
|
|
|
{
|
|
|
|
}
|