mb/google/brya/var/uldrenite: Generate RAM ID and SPD file
[coreboot.git] / src / soc / intel / apollolake / lpc.c
blobc7a57c8f9dc8559059cbec510cd641a28c128dff
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 <static.h>
10 #include "chip.h"
12 void soc_get_gen_io_dec_range(uint32_t gen_io_dec[LPC_NUM_GENERIC_IO_RANGES])
14 const config_t *config = config_of_soc();
16 gen_io_dec[0] = config->gen1_dec;
17 gen_io_dec[1] = config->gen2_dec;
18 gen_io_dec[2] = config->gen3_dec;
19 gen_io_dec[3] = config->gen4_dec;
22 void lpc_soc_init(struct device *dev)
24 const struct soc_intel_apollolake_config *cfg;
25 cfg = config_of(dev);
27 /* Set LPC Serial IRQ mode */
28 lpc_set_serirq_mode(cfg->serirq_mode);
30 /* Initialize RTC */
31 rtc_init();