1 /*
2  * Copyright 2020 Broadcom
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include <zephyr/device.h>
8 #include <zephyr/init.h>
9 #include <soc.h>
10 #include <zephyr/arch/cpu.h>
11 
12 /**
13  * @brief Perform basic hardware initialization at boot.
14  *
15  * This needs to be run from the very beginning.
16  */
soc_early_init_hook(void)17 void soc_early_init_hook(void)
18 {
19 	uint32_t data;
20 
21 	/* pcie pmon lite init */
22 	data = sys_read32(LS_ICFG_PMON_LITE_CLK_CTRL);
23 	data |= PCIE_PMON_LITE_CLK_ENABLE;
24 	sys_write32(data, LS_ICFG_PMON_LITE_CLK_CTRL);
25 
26 	data = sys_read32(LS_ICFG_PMON_LITE_SW_RESETN);
27 	data |= PCIE_PMON_LITE_SW_RESETN;
28 	sys_write32(data, LS_ICFG_PMON_LITE_SW_RESETN);
29 }
30