clk: tegra: simplify periph clock data
authorPeter De Schrijver <pdeschrijver@nvidia.com>
Thu, 22 Aug 2013 15:44:06 +0000 (18:44 +0300)
committerPeter De Schrijver <pdeschrijver@nvidia.com>
Tue, 26 Nov 2013 16:45:40 +0000 (18:45 +0200)
commitd5ff89a82a6d272d210db68a9487877682c94a24
treec36ffdccfae461a88901eb3e470e7bea60eeb52f
parent00c674e42c278e7af7b39b6c72dbbaa5e7ebd96c
clk: tegra: simplify periph clock data

This patch determines the register bank for clock enable/disable and reset
based on the clock ID instead of hardcoding it in the tables describing the
clocks. This results in less data to be maintained in the tables, making the
code easier to understand. The full benefit of the change will be realized once
also other clocktypes will be table based.

Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
drivers/clk/tegra/clk-periph-gate.c
drivers/clk/tegra/clk-periph.c
drivers/clk/tegra/clk-tegra114.c
drivers/clk/tegra/clk-tegra20.c
drivers/clk/tegra/clk-tegra30.c
drivers/clk/tegra/clk.c
drivers/clk/tegra/clk.h