memory: omap-gpmc: Clear GPMC_CS_CONFIG7 register on restore if unused
We want to clear any unused GPMC_CS_CONFIG7 register on restore to ensure unused chip selects are not enabled. Cc: Roger Quadros <rogerq@kernel.org> Signed-off-by: Tony Lindgren <tony@atomide.com> Link: https://lore.kernel.org/r/20210727101034.32148-1-tony@atomide.com Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
This commit is contained in:
parent
e73f0f0ee7
commit
0f78964b52
|
@ -2595,6 +2595,8 @@ void omap3_gpmc_restore_context(void)
|
||||||
gpmc_context.cs_context[i].config6);
|
gpmc_context.cs_context[i].config6);
|
||||||
gpmc_cs_write_reg(i, GPMC_CS_CONFIG7,
|
gpmc_cs_write_reg(i, GPMC_CS_CONFIG7,
|
||||||
gpmc_context.cs_context[i].config7);
|
gpmc_context.cs_context[i].config7);
|
||||||
|
} else {
|
||||||
|
gpmc_cs_write_reg(i, GPMC_CS_CONFIG7, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue