]> git.baikalelectronics.ru Git - kernel.git/commit
memory: ti-emif-sram: Add resume function to recopy sram code
authorDave Gerlach <d-gerlach@ti.com>
Tue, 26 Jun 2018 17:05:17 +0000 (10:05 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Tue, 26 Jun 2018 17:05:17 +0000 (10:05 -0700)
commit08b26a150536c635aaeca392b40bf56badf85b31
tree4e760c4ad3ecc722ab87448128e55cf2008920a9
parent2358d48a6db92cb022eb848a0943363a742d51a5
memory: ti-emif-sram: Add resume function to recopy sram code

After an RTC+DDR cycle we lose sram context so emif pm functions present
in sram are lost. We can check if the first byte of the original
code in DDR contains the same first byte as the code in sram, and if
they do not match we know we have lost context and must recopy the
functions to the previous address to maintain PM functionality.

Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/memory/ti-emif-pm.c