summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/clock.c
diff options
context:
space:
mode:
authorAlex Frid <afrid@nvidia.com>2011-01-16 21:25:14 -0800
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:41:56 -0800
commit8a532d787ba1720b52e0590aee72508699f7eb65 (patch)
tree3d3c87f747fa0b6fdd4071014b6f7b2030077593 /arch/arm/mach-tegra/clock.c
parent96133b6042b7418074cdf14a647937f4b28a1548 (diff)
ARM: tegra: clock: Adjust max rates to match SKU ID
Adjust max rates for CPU and several SKU-dependent core clocks (system bus, AVP, VDE, 3D) to match chip SKU ID. Added max_rate node to debugfs. Original-Change-Id: Ifd72d45a303b3d8b5ae5f327693bb97c8510031d Reviewed-on: http://git-master/r/16077 Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: R7aa44477fd12c9d046baf7ecb8e5e2fcb71818d7
Diffstat (limited to 'arch/arm/mach-tegra/clock.c')
-rw-r--r--arch/arm/mach-tegra/clock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/clock.c b/arch/arm/mach-tegra/clock.c
index 889c032767f4..3c09fbec040e 100644
--- a/arch/arm/mach-tegra/clock.c
+++ b/arch/arm/mach-tegra/clock.c
@@ -873,6 +873,10 @@ static int clk_debugfs_register_one(struct clk *c)
if (!d)
goto err_out;
+ d = debugfs_create_u32("max", S_IRUGO, c->dent, (u32 *)&c->max_rate);
+ if (!d)
+ goto err_out;
+
d = debugfs_create_file(
"parent", parent_rate_mode, c->dent, c, &parent_fops);
if (!d)