Commit b38452d4 authored by Sergei Poselenov's avatar Sergei Poselenov

RT #80404. Added workaround for Libero bug - initialize iomuxes for

UART0 and SPI in U-Boot.

Use only with the respective .stp design!
parent b7bdb4cb
......@@ -58,8 +58,16 @@ void cortex_m3_soc_init(void)
*/
M2S_SYSREG->soft_reset_cr |= (1 << 7);
M2S_SYSREG->soft_reset_cr &= ~(1 << 7);
/* Initialize iomux for MSS UART0 */
*(volatile int *)0x4003827C = 0xc;
*(volatile int *)0x40038280 = 0x361;
#endif
#ifdef CONFIG_M2S_SPI
/* Initialize iomux for SPI */
*(volatile int *)0x400381F4 = 0x36C;
#endif
/*
* Configure the memory protection unit (MPU) to allow full access to
* the whole 4GB address space.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment