aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/tegra
diff options
context:
space:
mode:
authorPeter De Schrijver <pdeschrijver@nvidia.com>2013-09-11 10:57:37 -0400
committerPeter De Schrijver <pdeschrijver@nvidia.com>2013-11-26 11:46:52 -0500
commit2b239077d1e2061c65763dcf57ab978ae5261559 (patch)
treee715f0da99334208a23cdfa9974ed5e3a2754bc8 /drivers/clk/tegra
parent798e910bee3f9ad69a8b16d7e705086852d9f2de (diff)
clk: tegra: Add periph regs bank X
Tegra124 has an extra bank of peripheral clock registers. Add it to the generic peripheral clock code. Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Diffstat (limited to 'drivers/clk/tegra')
-rw-r--r--drivers/clk/tegra/clk.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/clk/tegra/clk.c b/drivers/clk/tegra/clk.c
index 14d25322aec5..a12a5f5107ec 100644
--- a/drivers/clk/tegra/clk.c
+++ b/drivers/clk/tegra/clk.c
@@ -57,6 +57,8 @@
57#define RST_DEVICES_CLR_V 0x434 57#define RST_DEVICES_CLR_V 0x434
58#define RST_DEVICES_SET_W 0x438 58#define RST_DEVICES_SET_W 0x438
59#define RST_DEVICES_CLR_W 0x43c 59#define RST_DEVICES_CLR_W 0x43c
60#define RST_DEVICES_SET_X 0x290
61#define RST_DEVICES_CLR_X 0x294
60 62
61/* Global data of Tegra CPU CAR ops */ 63/* Global data of Tegra CPU CAR ops */
62static struct tegra_cpu_car_ops dummy_car_ops; 64static struct tegra_cpu_car_ops dummy_car_ops;
@@ -109,6 +111,14 @@ static struct tegra_clk_periph_regs periph_regs[] = {
109 .rst_set_reg = RST_DEVICES_SET_W, 111 .rst_set_reg = RST_DEVICES_SET_W,
110 .rst_clr_reg = RST_DEVICES_CLR_W, 112 .rst_clr_reg = RST_DEVICES_CLR_W,
111 }, 113 },
114 [5] = {
115 .enb_reg = CLK_OUT_ENB_X,
116 .enb_set_reg = CLK_OUT_ENB_SET_X,
117 .enb_clr_reg = CLK_OUT_ENB_CLR_X,
118 .rst_reg = RST_DEVICES_X,
119 .rst_set_reg = RST_DEVICES_SET_X,
120 .rst_clr_reg = RST_DEVICES_CLR_X,
121 },
112}; 122};
113 123
114struct tegra_clk_periph_regs *get_reg_bank(int clkid) 124struct tegra_clk_periph_regs *get_reg_bank(int clkid)