]> git.baikalelectronics.ru Git - arm-tf.git/commit
stm32mp1: correct crash console GPIO alternate configuration
authorYann Gautier <yann.gautier@st.com>
Tue, 25 Feb 2020 16:51:52 +0000 (17:51 +0100)
committerYann Gautier <yann.gautier@st.com>
Mon, 21 Sep 2020 15:53:42 +0000 (17:53 +0200)
commit4170079ae05a962a43962f426815e12d516fb3f9
tree98cc2539c3b98ede1b0e2b27d12171ae61bcef13
parent6397423ed4a08adea3605f60a168a34c2a7ec526
stm32mp1: correct crash console GPIO alternate configuration

If GPIO port for UART TX is less than 8, the register GPIO_AFRL should
be used to set the alternate. GPIO_AFRH is used if GPIO port is greater
or equal to 8. The macro GPIO_TX_ALT_SHIFT is removed and the GPIO port
number is tested against GPIO_ALT_LOWER_LIMIT (=8) in
plat_crash_console_init() function.

Change-Id: Ibb62223ed6bce589bbcab59a5e986b2677e6d118
Signed-off-by: Yann Gautier <yann.gautier@st.com>
plat/st/stm32mp1/stm32mp1_helper.S