Add a weak functions to save the vddcore voltage value provided
in the OPP node when the clock tree is initialized.
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
u32 get_bootmode(void);
int setup_mac_address(void);
+
+/* board power management : configure vddcore according OPP */
+void board_vddcore_init(u32 voltage_mv);
}
}
+__weak void board_vddcore_init(u32 voltage_mv)
+{
+}
+
/*
* gets OPP parameters (frequency in KHz and voltage in mV) from
* an OPP table subnode. Platform HW support capabilities are also checked.
return -FDT_ERR_NOTFOUND;
*freq_hz = (u64)1000U * freq;
+ board_vddcore_init(voltage);
return 0;
}