memory: ti-emif-sram: Add ti_emif_run_hw_leveling for DDR3 hardware leveling
authorDave Gerlach <d-gerlach@ti.com>
Tue, 2 Apr 2019 16:57:42 +0000 (11:57 -0500)
committerTony Lindgren <tony@atomide.com>
Tue, 9 Apr 2019 15:31:51 +0000 (08:31 -0700)
commit6c110561eb2d4d1496961c13a92f96f29eea7c72
tree8c1237a3dbc0f2bafb8df589b2f9c1dbf8c04a69
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b
memory: ti-emif-sram: Add ti_emif_run_hw_leveling for DDR3 hardware leveling

In certain situations, such as when returning from low power modes, the
EMIF must re-run hardware leveling to properly restore DDR3 access.

This is accomplished by introducing a new ti-emif-sram-pm call,
ti_emif_run_hw_leveling, to check if DDR3 is in use and if so, trigger
the full write and read leveling processes.

Suggested-by: Brad Griffis <bgriffis@ti.com>
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/memory/emif.h
drivers/memory/ti-emif-pm.c
drivers/memory/ti-emif-sram-pm.S
include/linux/ti-emif-sram.h