]> git.baikalelectronics.ru Git - uboot.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)
commitaa96e7de56361e661f781c14e7d30c9267a8aeb8
tree6c054ff5bcdee877e0ac361d2a239c4bb506f47d
parent6f49aafe374876336ed4ea04117bc20c4208b1ea
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