Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sami Nurmenniemi
u-boot-stm32
Commits
b38452d4
Commit
b38452d4
authored
Nov 30, 2012
by
Sergei Poselenov
Browse files
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
cpu/arm_cortexm3/m2s/soc.c
View file @
b38452d4
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment