]> git.dujemihanovic.xyz Git - u-boot.git/commit
ram: stm32mp1: Conditionally enable ASR
authorMarek Vasut <marex@denx.de>
Tue, 26 Apr 2022 14:37:41 +0000 (16:37 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 10 May 2022 11:54:47 +0000 (13:54 +0200)
commit221869efc3a4cf975c1bf068227f17ce10cd5597
tree6c054ff5bcdee877e0ac361d2a239c4bb506f47d
parent189ec2fee6ef36f567640c61ccf4e04422cab70b
ram: stm32mp1: Conditionally enable ASR

Enable DRAM ASR, auto self-refresh, conditionally, based on DT PWRCTL
register bits. While ASR does save considerable amount of power at
runtime automatically, it also causes LTDC underruns on large panels.
Let user select whether or not ASR is required or not, generally ASR
should be enabled on portable and battery operated devices.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/ram/stm32mp1/stm32mp1_ddr.c