]> git.dujemihanovic.xyz Git - u-boot.git/commit
ram: stm32mp1: tuning: add timeout for polling BISTGSR.BDDONE
authorPatrick Delaunay <patrick.delaunay@st.com>
Fri, 6 Mar 2020 10:14:06 +0000 (11:14 +0100)
committerPatrick Delaunay <patrick.delaunay@st.com>
Tue, 24 Mar 2020 13:20:50 +0000 (14:20 +0100)
commitf711d1f0804e01586b8f68af81cde6a15b58d427
tree2f17a645eba94320b64ddad092ae3c15b5d91d5c
parent1c55a91b9d35ddd30a37bb5efe4ba1ea66b5720d
ram: stm32mp1: tuning: add timeout for polling BISTGSR.BDDONE

Avoid to block the tuning procedure on BIST error (not finished
BIST procedure) by adding a 1000us timeout on the polling of
BISTGSR.BDDONE executed to detect the end of BIST.

The normal duration of the BIST test is around 5us.

This patch also cleanup comments.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
drivers/ram/stm32mp1/stm32mp1_tuning.c