Patrick Georgi | ac95903 | 2020-05-05 22:49:26 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Jonathan Zhang | 8f89549 | 2020-01-16 11:16:45 -0800 | [diff] [blame] | 2 | |
| 3 | #include <console/console.h> |
Jonathan Zhang | 8f89549 | 2020-01-16 11:16:45 -0800 | [diff] [blame] | 4 | #include <intelblocks/lpc_lib.h> |
Jonathan Zhang | 8f89549 | 2020-01-16 11:16:45 -0800 | [diff] [blame] | 5 | #include <soc/iomap.h> |
Johnny Lin | ebb7f54 | 2020-02-19 15:52:45 +0800 | [diff] [blame] | 6 | #include <soc/pcr_ids.h> |
| 7 | |
Andrey Petrov | 662da6c | 2020-03-16 22:46:57 -0700 | [diff] [blame] | 8 | #include <chip.h> |
Jonathan Zhang | 8f89549 | 2020-01-16 11:16:45 -0800 | [diff] [blame] | 9 | |
Patrick Georgi | 40b8f01 | 2021-05-12 14:52:12 +0200 | [diff] [blame] | 10 | void soc_get_gen_io_dec_range(uint32_t gen_io_dec[LPC_NUM_GENERIC_IO_RANGES]) |
Johnny Lin | ebb7f54 | 2020-02-19 15:52:45 +0800 | [diff] [blame] | 11 | { |
Furquan Shaikh | e4f7e04 | 2020-12-23 14:11:00 -0800 | [diff] [blame] | 12 | const config_t *config = config_of_soc(); |
Johnny Lin | ebb7f54 | 2020-02-19 15:52:45 +0800 | [diff] [blame] | 13 | |
| 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 Zhang | 8f89549 | 2020-01-16 11:16:45 -0800 | [diff] [blame] | 20 | void 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älkki | 401ec98 | 2021-06-06 08:27:15 +0300 | [diff] [blame] | 25 | /* Should read back the ID to fill ACPI IOAPIC accordingly. */ |
Jonathan Zhang | 8f89549 | 2020-01-16 11:16:45 -0800 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | void pch_lpc_soc_fill_io_resources(struct device *dev) |
| 29 | { |
| 30 | } |