Skip to content

Commit 77b7182

Browse files
digetxthierryreding
authored andcommitted
memory: tegra: Ensure timing control debug features are disabled
Timing control debug features should be disabled at a boot time, but you never now and hence it's better to disable them explicitly because some of those features are crucial for the driver to do a proper thing. Acked-by: Peter De Schrijver <[email protected]> Signed-off-by: Dmitry Osipenko <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent e34212c commit 77b7182

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

drivers/memory/tegra/mc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,9 @@ static int tegra_mc_probe(struct platform_device *pdev)
667667
} else
668668
#endif
669669
{
670+
/* ensure that debug features are disabled */
671+
mc_writel(mc, 0x00000000, MC_TIMING_CONTROL_DBG);
672+
670673
err = tegra_mc_setup_latency_allowance(mc);
671674
if (err < 0) {
672675
dev_err(&pdev->dev,

drivers/memory/tegra/mc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
#define MC_EMEM_ARB_OVERRIDE 0xe8
3131
#define MC_EMEM_ARB_OVERRIDE_EACK_MASK 0x3
3232

33+
#define MC_TIMING_CONTROL_DBG 0xf8
34+
3335
#define MC_TIMING_CONTROL 0xfc
3436
#define MC_TIMING_UPDATE BIT(0)
3537

0 commit comments

Comments
 (0)