arm: tegra: refactor powergate code per-SoC
authorMayuresh Kulkarni <mkulkarni@nvidia.com>
Fri, 16 Nov 2012 13:58:17 +0000 (18:58 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 19:49:30 +0000 (12:49 -0700)
commitf3d71c369c0c86088abf3d89bc588ed4d196a859
treea5b6faf512d81939bbfe147e1368b3d9b111ae61
parent40e6d10a2e1a50f706404775811b3d884fe1ca36
arm: tegra: refactor powergate code per-SoC

- split the current power-gate code into common and
SoC specific code
- every SoC now exports a set of ops to the common APIs
- following is the new file structure:
powergate.c - common powergate APIs
powergate-ops-txx.c - t20/t30 specific common implementation
powergate-ops-t1xx.c - t114 specific common implementation.
this will also take care of t148 and t124 (in future)
powergate-t20 - t20 specific structures and ids
powergate-t30 - t30 specific strcutures and ids
powergate-t11x - t11x specific structures and ids
powergate-t14x - t14x specific structures and ids (stub in
this commit. it will be populated in a separate commit
as a part of bug 1190194)
- powergate.c also provides a low level common APIs
for all SoCs
- each SoC now has 2 arrays: 1 for power partition info
and other for mc client list info. amongst these 2 arrays,
mc client list array is static

Bug 1180197

Change-Id: I62b2d894c683fe9a18b82c7f9d87c08ce5b3864f
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/145591
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
arch/arm/mach-tegra/Makefile
arch/arm/mach-tegra/powergate-ops-t1xx.c [new file with mode: 0644]
arch/arm/mach-tegra/powergate-ops-t1xx.h [new file with mode: 0644]
arch/arm/mach-tegra/powergate-ops-txx.c [new file with mode: 0644]
arch/arm/mach-tegra/powergate-ops-txx.h [new file with mode: 0644]
arch/arm/mach-tegra/powergate-priv.h [new file with mode: 0644]
arch/arm/mach-tegra/powergate-t11x.c [new file with mode: 0644]
arch/arm/mach-tegra/powergate-t14x.c [new file with mode: 0644]
arch/arm/mach-tegra/powergate-t20.c [new file with mode: 0644]
arch/arm/mach-tegra/powergate-t30.c [new file with mode: 0644]
arch/arm/mach-tegra/powergate.c