1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <device/pci.h>
4 #include <intelblocks/lpc_lib.h>
5 #include <intelblocks/rtc.h>
6 #include <soc/pcr_ids.h>
8 #include <soc/intel/common/block/lpc/lpc_def.h>
11 void soc_get_gen_io_dec_range(uint32_t gen_io_dec
[LPC_NUM_GENERIC_IO_RANGES
])
13 const config_t
*config
= config_of_soc();
15 gen_io_dec
[0] = config
->gen1_dec
;
16 gen_io_dec
[1] = config
->gen2_dec
;
17 gen_io_dec
[2] = config
->gen3_dec
;
18 gen_io_dec
[3] = config
->gen4_dec
;
21 void lpc_soc_init(struct device
*dev
)
23 const struct soc_intel_apollolake_config
*cfg
;
26 /* Set LPC Serial IRQ mode */
27 lpc_set_serirq_mode(cfg
->serirq_mode
);