ARM: tegra: clock: Record boot rates for all clocks
Alex Frid [Sun, 17 Feb 2013 08:46:46 +0000 (00:46 -0800)]
Change-Id: Ibb376c7251e453c207f8bbd6e7d65642eac8aea6
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/201538
(cherry picked from commit 481b1c76b3cd0e39ffd6d1e96cde37cac8affdd5)
Reviewed-on: http://git-master/r/203619
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

arch/arm/mach-tegra/clock.c
arch/arm/mach-tegra/clock.h

index 261f94d..c4d22d8 100644 (file)
@@ -799,6 +799,7 @@ static void __init tegra_clk_vefify_rates(void)
                if (rate > clk_get_max_rate(c))
                        WARN(1, "tegra: %s boot rate %lu exceeds max rate %lu\n",
                             c->name, rate, clk_get_max_rate(c));
+               c->boot_rate = rate;
        }
        mutex_unlock(&clock_list_lock);
 }
index d856b90..272b763 100644 (file)
@@ -159,6 +159,7 @@ struct clk {
        struct clk_ops          *ops;
        unsigned long           dvfs_rate;
        unsigned long           rate;
+       unsigned long           boot_rate;
        unsigned long           max_rate;
        unsigned long           min_rate;
        bool                    auto_dvfs;