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:
Tony Lindgren 2021-07-27 13:10:33 +03:00 committed by Krzysztof Kozlowski
parent e73f0f0ee7
commit 0f78964b52
1 changed files with 2 additions and 0 deletions

View File

@ -2595,6 +2595,8 @@ void omap3_gpmc_restore_context(void)
gpmc_context.cs_context[i].config6);
gpmc_cs_write_reg(i, GPMC_CS_CONFIG7,
gpmc_context.cs_context[i].config7);
} else {
gpmc_cs_write_reg(i, GPMC_CS_CONFIG7, 0);
}
}
}