diff options
| -rw-r--r-- | drivers/memory/tegra/mc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/memory/tegra/mc.c b/drivers/memory/tegra/mc.c index a08b61a86760..1735e23dbc28 100644 --- a/drivers/memory/tegra/mc.c +++ b/drivers/memory/tegra/mc.c | |||
| @@ -51,6 +51,9 @@ | |||
| 51 | #define MC_EMEM_ADR_CFG 0x54 | 51 | #define MC_EMEM_ADR_CFG 0x54 |
| 52 | #define MC_EMEM_ADR_CFG_EMEM_NUMDEV BIT(0) | 52 | #define MC_EMEM_ADR_CFG_EMEM_NUMDEV BIT(0) |
| 53 | 53 | ||
| 54 | #define MC_TIMING_CONTROL 0xfc | ||
| 55 | #define MC_TIMING_UPDATE BIT(0) | ||
| 56 | |||
| 54 | static const struct of_device_id tegra_mc_of_match[] = { | 57 | static const struct of_device_id tegra_mc_of_match[] = { |
| 55 | #ifdef CONFIG_ARCH_TEGRA_2x_SOC | 58 | #ifdef CONFIG_ARCH_TEGRA_2x_SOC |
| 56 | { .compatible = "nvidia,tegra20-mc-gart", .data = &tegra20_mc_soc }, | 59 | { .compatible = "nvidia,tegra20-mc-gart", .data = &tegra20_mc_soc }, |
| @@ -301,6 +304,9 @@ static int tegra_mc_setup_latency_allowance(struct tegra_mc *mc) | |||
| 301 | writel(value, mc->regs + la->reg); | 304 | writel(value, mc->regs + la->reg); |
| 302 | } | 305 | } |
| 303 | 306 | ||
| 307 | /* latch new values */ | ||
| 308 | writel(MC_TIMING_UPDATE, mc->regs + MC_TIMING_CONTROL); | ||
| 309 | |||
| 304 | return 0; | 310 | return 0; |
| 305 | } | 311 | } |
| 306 | 312 | ||
