clk: tegra: Introduce ability for SoC-specific reset control callbacks
authorMikko Perttunen <mikko.perttunen@kapsi.fi>
Wed, 20 May 2015 06:27:05 +0000 (09:27 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 16 Jul 2015 07:32:47 +0000 (09:32 +0200)
commit66b6f3d07454a66ec029543c653d3bce7e6cb3c1
treebc80c1b2f500b2e0028d628a068c4bf4356992be
parentfa63aa3dea48fd18e560c232424e080a2e2c4779
clk: tegra: Introduce ability for SoC-specific reset control callbacks

This patch allows SoC-specific CAR initialization routines to register
their own reset_assert and reset_deassert callbacks with the common Tegra
CAR code. If defined, the common code will call these callbacks when a
reset control with number >= num_periph_banks * 32 is attempted to be asserted
or deasserted respectively. Numbers greater than or equal to num_periph_banks * 32
are used to avoid clashes with low numbers that are automatically mapped to
standard CAR reset lines.

Each SoC with these special resets should specify the defined reset control
numbers in a device tree header file.

Signed-off-by: Mikko Perttunen <mikko.perttunen@kapsi.fi>
Acked-by: Michael Turquette <mturquette@linaro.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/clk/tegra/clk.c
drivers/clk/tegra/clk.h