| 1 |
|
| 2 |
|
| 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" |
| 11 |
|
| 12 |
void soc_get_gen_io_dec_range(uint32_t gen_io_dec[LPC_NUM_GENERIC_IO_RANGES]) |
| 13 |
{ |
| 14 |
const config_t *config = config_of_soc(); |
| 15 |
|
| 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; |
| 20 |
} |
| 21 |
|
| 22 |
void lpc_soc_init(struct device *dev) |
| 23 |
{ |
| 24 |
const struct soc_intel_apollolake_config *cfg; |
| 25 |
cfg = config_of(dev); |
| 26 |
|
| 27 |
|
| 28 |
lpc_set_serirq_mode(cfg->serirq_mode); |
| 29 |
|
| 30 |
|
| 31 |
rtc_init(); |
| 32 |
} |