u-boot/arch/arm/mach-tegra/tegra20
Stephen Warren d0ad8a5cbf ARM: tegra: add APIs the clock uclass driver will need
A future patch will implement a clock uclass driver for Tegra. That driver
will call into Tegra's existing clock code to simplify the transition;
this avoids tieing the clock uclass patches into significant refactoring
of the existing custom clock API implementation.

Some of the Tegra clock APIs that manipulate peripheral clocks require
both the peripheral clock ID and parent clock ID to be passed in together.
However, the clock uclass API does not require any such "parent"
parameter, so the clock driver must determine this information itself.
This patch implements new Tegra- specific clock API
clock_get_periph_parent() for this purpose.

The new API is implemented in the core Tegra clock code rather than SoC-
specific clock code. The implementation uses various SoC-/clock-specific
data. That data is only available in SoC-specific clock code.
Consequently, two new internal APIs are added that enable the core clock
code to retrieve this information from the SoC-specific clock code. Due to
the structure of the Tegra clock code, this leads to some unfortunate code
duplication. However, this situation predates this patch.

Ideally, future work will de-duplicate the Tegra clock code, and migrate
it into drivers/clk/tegra. However, such refactoring is kept separate from
this series.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
2016-09-27 09:11:02 -07:00
..
clock.c ARM: tegra: add APIs the clock uclass driver will need 2016-09-27 09:11:02 -07:00
cpu.c Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
crypto.c treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
crypto.h ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00
display.c tegra: video: Merge the display driver into one file 2016-02-16 09:17:52 -07:00
emc.c ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00
funcmux.c tegra: pinmux: fix FUNCMUX_NDFLASH_KBC_8_BIT 2015-03-30 10:04:44 -07:00
Kconfig arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
Makefile ARM: Rework and correct barrier definitions 2016-08-05 07:23:57 -04:00
pinmux.c ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00
pmu.c ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00
warmboot.c treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
warmboot_avp.c ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00
warmboot_avp.h ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00