emif-common: support DRA7XX all versions

commit ef236f2929
(DRA7: Add support for ES1.1 silicon ID code)

from upstream does not contain the TI internal changes necessary.
The missing change for emif is now incorporated

Reported-by: Aparna Balasubramanian <aparnab@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
This commit is contained in:
Nishanth Menon 2014-01-21 14:35:07 -06:00 committed by Tom Rini
parent 2fc1125c3c
commit cc11b91920
1 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ static void ddr3_leveling(u32 base, const struct emif_regs *regs)
{
struct emif_reg_struct *emif = (struct emif_reg_struct *)base;
if (omap_revision() != DRA752_ES1_0) {
if (!is_dra7xx()) {
/* keep sdram in self-refresh */
writel(((LP_MODE_SELF_REFRESH << EMIF_REG_LP_MODE_SHIFT)
& EMIF_REG_LP_MODE_MASK), &emif->emif_pwr_mgmt_ctrl);
@ -1277,7 +1277,7 @@ static void do_bug0039_workaround(u32 base)
u32 *phy_status_base = &emif_base->emif_ddr_phy_status[0];
u32 *phy_ctrl_base = &emif_base->emif_ddr_ext_phy_ctrl_1;
if (omap_revision() == DRA752_ES1_0)
if (is_dra7xx())
phy_status_base++;
bug_00339_regs = get_bug_regs(&iterations);