u-boot-brain/arch
Stephen Warren 6dbcc962e4 ARM: tegra: add peripheral clock init table
Currently, Tegra peripheral drivers control two aspects of their HW module
clock(s):

1) The clock enable/rate for the peripheral clock itself.

2) The system-level clock tree setup, i.e. the clock parent.

Aspect 1 is reasonable, but aspect 2 is a system-level decision, not
something that an individual peripheral driver should in general know
about or influence. Such system-level knowledge ties the driver to a
specific SoC implementation, even when they use generic APIs for clock
manipulation, since they must have SoC-specific knowledge such as parent
clock IDs. Limited exceptions exist, such as where peripheral HW is
expected to dynamically switch between clock sources at run-time, such
as CPU clock scaling or display clock conflict management in a multi-head
scenario.

This patch enhances the Tegra core code to perform system-level clock
tree setup, in a similar fashion to the Linux kernel Tegra clock driver.
This will allow future patches to simplify peripheral drivers by removing
the clock parent setup logic.

This change is required prior to converting peripheral drivers to use the
standard clock APIs, since:

1) The clock uclass doesn't currently support a set_parent() operation.
Adding one is possible, but not necessary at the moment.

2) The clock APIs retrieve all clock IDs from device tree, and the DT
bindings for almost all peripherals only includes information about the
relevant peripheral clocks, and not any potential parent clocks.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
2016-09-27 09:11:02 -07:00
..
arc Remove arch/${ARCH}/include/asm/errno.h 2016-09-23 17:56:18 -04:00
arm ARM: tegra: add peripheral clock init table 2016-09-27 09:11:02 -07:00
avr32 Remove arch/${ARCH}/include/asm/errno.h 2016-09-23 17:56:18 -04:00
blackfin Remove arch/${ARCH}/include/asm/errno.h 2016-09-23 17:56:18 -04:00
m68k Remove arch/${ARCH}/include/asm/errno.h 2016-09-23 17:56:18 -04:00
microblaze Remove arch/${ARCH}/include/asm/errno.h 2016-09-23 17:56:18 -04:00
mips Remove arch/${ARCH}/include/asm/errno.h 2016-09-23 17:56:18 -04:00
nds32 Remove arch/${ARCH}/include/asm/errno.h 2016-09-23 17:56:18 -04:00
nios2 Remove arch/${ARCH}/include/asm/errno.h 2016-09-23 17:56:18 -04:00
openrisc Remove arch/${ARCH}/include/asm/errno.h 2016-09-23 17:56:18 -04:00
powerpc Merge git://git.denx.de/u-boot-fsl-qoriq 2016-09-26 17:10:56 -04:00
sandbox Remove arch/${ARCH}/include/asm/errno.h 2016-09-23 17:56:18 -04:00
sh Remove arch/${ARCH}/include/asm/errno.h 2016-09-23 17:56:18 -04:00
sparc Remove arch/${ARCH}/include/asm/errno.h 2016-09-23 17:56:18 -04:00
x86 Remove arch/${ARCH}/include/asm/errno.h 2016-09-23 17:56:18 -04:00
xtensa Remove arch/${ARCH}/include/asm/errno.h 2016-09-23 17:56:18 -04:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig xtensa: add support for the xtensa processor architecture [2/2] 2016-08-15 18:46:38 -04:00