diff options
author | Shreshtha Sahu <ssahu@nvidia.com> | 2014-03-24 11:45:25 +0530 |
---|---|---|
committer | Bharat Nihalani <bnihalani@nvidia.com> | 2014-04-01 21:11:36 -0700 |
commit | 4d0fa6f0c069d796de4b037f12b532c856742256 (patch) | |
tree | 99da74666b668b94c6b621320ac9c9bd8746c366 /arch/arm/mach-tegra/tegra12_emc.c | |
parent | b30505d6e98ca74b727f1adebc4f5d3a65cdf246 (diff) |
arm: tegra12: enable dram temperature only for LPDDR2
This patch disables creating debugfs entry for non
LP DRAM variants. As currently two DRAM variants are
supported i.e. LPDDR2 and DDR3, so it enables dram
temperature entry only for LPDDR2.
Bug 1473611
Change-Id: I3b9ef616e5110a09f06522d761549f6db4bd578d
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/385488
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/tegra12_emc.c')
-rw-r--r-- | arch/arm/mach-tegra/tegra12_emc.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/tegra12_emc.c b/arch/arm/mach-tegra/tegra12_emc.c index 7628afbdc0d3..16acbc94d293 100644 --- a/arch/arm/mach-tegra/tegra12_emc.c +++ b/arch/arm/mach-tegra/tegra12_emc.c @@ -2091,8 +2091,13 @@ static int __init tegra_emc_debug_init(void) emc_debugfs_root, (u32 *)&clkchange_delay)) goto err_out; - if (!debugfs_create_file("dram_temperature", S_IRUGO, emc_debugfs_root, - NULL, &dram_temperature_fops)) + /* + * Reading dram temperature supported only for LP DDR variants, + * Currently two variants of DDR are supported i.e. LPDDR2 and DDR3 + */ + if (dram_type == DRAM_TYPE_LPDDR2 && + !debugfs_create_file("dram_temperature", + S_IRUGO, emc_debugfs_root, NULL, &dram_temperature_fops)) goto err_out; if (!debugfs_create_file("over_temp_state", S_IRUGO | S_IWUSR, |