[U-Boot] [PATCH v3 08/12] tegra: Add ap_pm_init hook
Jan Kiszka
jan.kiszka at siemens.com
Wed Feb 18 09:14:02 CET 2015
This function will be used to initialize CPU power management for Tegra
SOCs. For now it does nothing.
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
---
arch/arm/include/asm/arch-tegra/ap.h | 5 +++++
board/nvidia/common/board.c | 4 ++++
2 files changed, 9 insertions(+)
diff --git a/arch/arm/include/asm/arch-tegra/ap.h b/arch/arm/include/asm/arch-tegra/ap.h
index 5c8be94..208db90 100644
--- a/arch/arm/include/asm/arch-tegra/ap.h
+++ b/arch/arm/include/asm/arch-tegra/ap.h
@@ -63,6 +63,11 @@ int tegra_get_chip(void);
*/
int tegra_get_sku_info(void);
+/**
+ * Initialize power management for application processors
+ */
+void ap_pm_init(void);
+
/* Do any chip-specific cache config */
void config_cache(void);
diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c
index 80ef8fd..c62b3da 100644
--- a/board/nvidia/common/board.c
+++ b/board/nvidia/common/board.c
@@ -21,6 +21,7 @@
#include <asm/arch/pwm.h>
#endif
#include <asm/arch/tegra.h>
+#include <asm/arch-tegra/ap.h>
#include <asm/arch-tegra/board.h>
#include <asm/arch-tegra/clk_rst.h>
#include <asm/arch-tegra/pmc.h>
@@ -56,6 +57,7 @@ const struct tegra_sysinfo sysinfo = {
CONFIG_TEGRA_BOARD_STRING
};
+__weak void ap_pm_init(void) {}
__weak void pinmux_init(void) {}
__weak void pin_mux_usb(void) {}
__weak void pin_mux_spi(void) {}
@@ -96,6 +98,8 @@ int board_init(void)
clock_init();
clock_verify();
+ ap_pm_init();
+
#ifdef CONFIG_TEGRA_SPI
pin_mux_spi();
#endif
--
2.1.4
More information about the U-Boot
mailing list