aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/board.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-05-02 15:47:12 -0600
committerStephen Warren <swarren@nvidia.com>2012-06-20 12:37:42 -0600
commita12c0efc7a3f433377add0fa1fd0ed4836cc595e (patch)
tree5dd8af8833d4dc4361a118da90324f86e26b407e /arch/arm/mach-tegra/board.h
parentARM: tegra: trimslice: enable PCIe when booting from device tree (diff)
downloadlinux-dev-a12c0efc7a3f433377add0fa1fd0ed4836cc595e.tar.xz
linux-dev-a12c0efc7a3f433377add0fa1fd0ed4836cc595e.zip
ARM: tegra: harmony: init regulators, PCIe when booting from DT
There currently aren't bindings for the Tegra PCIe controller. Work on this is in progress, but not yet complete. Manually initialize PCIe when booting from device tree, in order to bring DT support to the same feature level as board files, which will in turn allow board files to be deprecated. PCIe on Harmony requires various regulators to be registered and enabled before initializing the PCIe controller. Note that since the I2C controllers are instantiated from DT, we must use i2c_new_device() to register the PMU rather than i2c_register_board_info(). Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board.h')
-rw-r--r--arch/arm/mach-tegra/board.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board.h b/arch/arm/mach-tegra/board.h
index 65014968fc6c..097e0e16eacd 100644
--- a/arch/arm/mach-tegra/board.h
+++ b/arch/arm/mach-tegra/board.h
@@ -46,5 +46,12 @@ int __init tegra_powergate_debugfs_init(void);
static inline int tegra_powergate_debugfs_init(void) { return 0; }
#endif
+int __init harmony_regulator_init(void);
+#ifdef CONFIG_TEGRA_PCI
+int __init harmony_pcie_init(void);
+#else
+static inline int harmony_pcie_init(void) { return 0; }
+#endif
+
extern struct sys_timer tegra_timer;
#endif