]> 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)
commit9d65384ce1a005c1744de59c56cd9062c5a0374a
tree4e760c4ad3ecc722ab87448128e55cf2008920a9
parent0d5624e606504772b89d3c3d6b1be740ef176c61
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