2020-05-05 22:49:26 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2015-11-13 03:19:41 +01:00
|
|
|
|
|
|
|
#include <device/pci.h>
|
2017-08-05 01:26:09 +02:00
|
|
|
#include <intelblocks/lpc_lib.h>
|
|
|
|
#include <intelblocks/rtc.h>
|
|
|
|
#include <soc/pcr_ids.h>
|
2016-05-18 03:06:49 +02:00
|
|
|
#include <soc/pm.h>
|
2016-04-04 19:47:49 +02:00
|
|
|
#include "chip.h"
|
|
|
|
|
2018-01-10 06:21:50 +01:00
|
|
|
void lpc_soc_init(struct device *dev)
|
2016-04-04 19:47:49 +02:00
|
|
|
{
|
2017-08-05 01:26:09 +02:00
|
|
|
const struct soc_intel_apollolake_config *cfg;
|
2019-07-13 21:16:25 +02:00
|
|
|
cfg = config_of(dev);
|
2016-04-04 19:47:49 +02:00
|
|
|
|
2017-08-05 01:26:09 +02:00
|
|
|
/* Set LPC Serial IRQ mode */
|
|
|
|
lpc_set_serirq_mode(cfg->serirq_mode);
|
2016-05-18 03:06:49 +02:00
|
|
|
|
|
|
|
/* Initialize RTC */
|
|
|
|
rtc_init();
|
2016-04-04 19:47:49 +02:00
|
|
|
}
|