9
0
Fork 0

clk: tegra: remove device reset hack

Now that we have a proper reset controller, it
isn't necessary anymore to keep the device reset
hack coupled to the clock.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Lucas Stach 2014-05-14 22:45:33 +02:00 committed by Sascha Hauer
parent 17a72b1f16
commit bbe4ddd10c
1 changed files with 0 additions and 18 deletions

View File

@ -74,33 +74,15 @@ static int clk_periph_is_enabled(struct clk *hw)
static int clk_periph_enable(struct clk *hw)
{
struct tegra_clk_periph *periph = to_clk_periph(hw);
u32 reg;
reg = readl(periph->rst_reg);
reg |= (1 << periph->rst_shift);
writel(reg, periph->rst_reg);
periph->gate->ops->enable(periph->gate);
udelay(2);
reg = readl(periph->rst_reg);
reg &= ~(1 << periph->rst_shift);
writel(reg, periph->rst_reg);
return 0;
}
static void clk_periph_disable(struct clk *hw)
{
struct tegra_clk_periph *periph = to_clk_periph(hw);
u32 reg;
reg = readl(periph->rst_reg);
reg |= (1 << periph->rst_shift);
writel(reg, periph->rst_reg);
udelay(2);
periph->gate->ops->disable(periph->gate);
}