aboutsummaryrefslogtreecommitdiff
path: root/platform/zynq/platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'platform/zynq/platform.c')
-rw-r--r--platform/zynq/platform.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/platform/zynq/platform.c b/platform/zynq/platform.c
index 10b16c0b..37f61ac1 100644
--- a/platform/zynq/platform.c
+++ b/platform/zynq/platform.c
@@ -35,6 +35,7 @@ STATIC_ASSERT(SDRAM_SIZE != 0);
static uint32_t saved_reboot_status;
/* target can specify this as the initial jam table to set up the soc */
+void ps7_init(void);
__WEAK void ps7_init(void) { }
/* These should be defined in the target somewhere */
@@ -60,7 +61,7 @@ static inline int reg_poll(uint32_t addr,uint32_t mask) {
* before doing a reset to switch to the new values. Then bypass is removed to switch back to using
* the PLL once its locked.
*/
-int zynq_pll_init(void) {
+static int zynq_pll_init(void) {
const zynq_pll_cfg_tree_t *cfg = &zynq_pll_cfg;
SLCR_REG(ARM_PLL_CFG) = PLL_CFG_LOCK_CNT(cfg->arm.lock_cnt) | PLL_CFG_PLL_CP(cfg->arm.cp) |
@@ -105,7 +106,7 @@ int zynq_pll_init(void) {
return 0;
}
-int zynq_mio_init(void) {
+static int zynq_mio_init(void) {
/* This DDRIOB configuration applies to both zybo and uzed, but it's possible
* it may not work for all boards in the future. Just something to keep in mind
@@ -124,7 +125,7 @@ int zynq_mio_init(void) {
return 0;
}
-void zynq_clk_init(void) {
+static void zynq_clk_init(void) {
SLCR_REG(DCI_CLK_CTRL) = zynq_clk_cfg.dci_clk;
SLCR_REG(GEM0_CLK_CTRL) = zynq_clk_cfg.gem0_clk;
SLCR_REG(GEM0_RCLK_CTRL) = zynq_clk_cfg.gem0_rclk;
@@ -149,7 +150,7 @@ void zynq_clk_init(void) {
}
#if ZYNQ_SDRAM_INIT
-void zynq_ddr_init(void) {
+static void zynq_ddr_init(void) {
SLCR_REG(DDRIOB_ADDR0) = zynq_ddriob_cfg.addr0;
SLCR_REG(DDRIOB_ADDR1) = zynq_ddriob_cfg.addr1;
SLCR_REG(DDRIOB_DATA0) = zynq_ddriob_cfg.data0;
@@ -446,6 +447,7 @@ void platform_quiesce(void) {
* having the BOOT_MODE pins set to JTAG should cause us to hang out in
* whatever binary is loaded at the time.
*/
+bool platform_abort_autoboot(void);
bool platform_abort_autoboot(void) {
/* test BOOT_MODE pins to see if we want to skip the autoboot stuff */
uint32_t boot_mode = zynq_get_boot_mode();