clk: stm32f7: retrieve PWR base address from DT
PWR IP is used to enable over-drive feature in order to reach a higher frequency. Get its base address from DT instead of hard-coded value Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: Vikas Manocha <vikas.manocha@st.com>
This commit is contained in:
committed by
Tom Rini
parent
d3651aac46
commit
d0a768b1c8
@@ -95,13 +95,6 @@ struct stm32_rcc_regs {
|
||||
};
|
||||
#define STM32_RCC ((struct stm32_rcc_regs *)RCC_BASE)
|
||||
|
||||
struct stm32_pwr_regs {
|
||||
u32 cr1; /* power control register 1 */
|
||||
u32 csr1; /* power control/status register 2 */
|
||||
u32 cr2; /* power control register 2 */
|
||||
u32 csr2; /* power control/status register 2 */
|
||||
};
|
||||
#define STM32_PWR ((struct stm32_pwr_regs *)PWR_BASE)
|
||||
|
||||
void stm32_flash_latency_cfg(int latency);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user