Skip to content

Commit 0f78964

Browse files
tmlindkrzk
authored andcommitted
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 <[email protected]> Signed-off-by: Tony Lindgren <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent e73f0f0 commit 0f78964

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/memory/omap-gpmc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2595,6 +2595,8 @@ void omap3_gpmc_restore_context(void)
25952595
gpmc_context.cs_context[i].config6);
25962596
gpmc_cs_write_reg(i, GPMC_CS_CONFIG7,
25972597
gpmc_context.cs_context[i].config7);
2598+
} else {
2599+
gpmc_cs_write_reg(i, GPMC_CS_CONFIG7, 0);
25982600
}
25992601
}
26002602
}

0 commit comments

Comments
 (0)