mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
fix(stm32mp1): set reset pulse duration to 31ms
According to ST Application note AN5256 [1], the minimum reset pulse duration should be set to 31ms on boards powered with discrete regulators. [1] https://www.st.com/resource/en/application_note/dm00561921.pdf Change-Id: Ib6ed029ee8a4b95f75a80948fdd2154b4ebe484f Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
This commit is contained in:
parent
c8076a0e69
commit
9a73a56c35
1 changed files with 10 additions and 0 deletions
|
@ -227,6 +227,16 @@ void bl2_el3_plat_arch_setup(void)
|
||||||
/* Disable MCKPROT */
|
/* Disable MCKPROT */
|
||||||
mmio_clrbits_32(rcc_base + RCC_TZCR, RCC_TZCR_MCKPROT);
|
mmio_clrbits_32(rcc_base + RCC_TZCR, RCC_TZCR_MCKPROT);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Set minimum reset pulse duration to 31ms for discrete power
|
||||||
|
* supplied boards.
|
||||||
|
*/
|
||||||
|
if (dt_pmic_status() <= 0) {
|
||||||
|
mmio_clrsetbits_32(rcc_base + RCC_RDLSICR,
|
||||||
|
RCC_RDLSICR_MRD_MASK,
|
||||||
|
31U << RCC_RDLSICR_MRD_SHIFT);
|
||||||
|
}
|
||||||
|
|
||||||
generic_delay_timer_init();
|
generic_delay_timer_init();
|
||||||
|
|
||||||
#if STM32MP_UART_PROGRAMMER
|
#if STM32MP_UART_PROGRAMMER
|
||||||
|
|
Loading…
Add table
Reference in a new issue