summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/clock.h
diff options
context:
space:
mode:
authorAlex Frid <afrid@nvidia.com>2011-01-16 21:25:14 -0800
committerNiket Sirsi <nsirsi@nvidia.com>2011-01-19 13:29:00 -0800
commit73e604ce73a311f4e442051633af1b7321e2b58a (patch)
treefebcfd8b1778e8c9777d0cbf82a8400577e30ae7 /arch/arm/mach-tegra/clock.h
parentfa31381cd55af79e9b609102c8e9dee3be8896d6 (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. 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>
Diffstat (limited to 'arch/arm/mach-tegra/clock.h')
-rw-r--r--arch/arm/mach-tegra/clock.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/clock.h b/arch/arm/mach-tegra/clock.h
index ed6b5ee1e250..9337f6afc4c9 100644
--- a/arch/arm/mach-tegra/clock.h
+++ b/arch/arm/mach-tegra/clock.h
@@ -42,6 +42,8 @@
#define PLLU (1 << 14)
#define ENABLE_ON_INIT (1 << 28)
+#define MAX_SAME_LIMIT_SKU_IDS 16
+
struct clk;
struct clk_mux_sel {
@@ -152,6 +154,12 @@ struct tegra_clk_init_table {
bool enabled;
};
+struct tegra_sku_rate_limit {
+ const char *clk_name;
+ unsigned long max_rate;
+ int sku_ids[MAX_SAME_LIMIT_SKU_IDS];
+};
+
void tegra2_init_clocks(void);
void tegra2_periph_reset_deassert(struct clk *c);
void tegra2_periph_reset_assert(struct clk *c);