mb/system76/cml-u/dt: Make use of chipset devicetree
[coreboot.git] / src / soc / intel / apollolake / lpc.c
blob21a0f44963b3097464c28953ed9117d8a2280d08
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>
7 #include <soc/pm.h>
8 #include <soc/intel/common/block/lpc/lpc_def.h>
9 #include "chip.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;
24 cfg = config_of(dev);
26 /* Set LPC Serial IRQ mode */
27 lpc_set_serirq_mode(cfg->serirq_mode);
29 /* Initialize RTC */
30 rtc_init();