aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSvyatoslav Ryhel <clamor95@gmail.com>2023-10-03 09:36:43 +0300
committerTom Rini <trini@konsulko.com>2023-11-03 12:37:15 -0400
commit8632091e1e15b67bbf05b48a5ae7e612d1db36fe (patch)
tree6cd9bed96f1473196ecdedb720faa8735c223098
parent140dbe4a43a2d9532725cd64741969119c71dbc1 (diff)
downloadu-boot-8632091e1e15b67bbf05b48a5ae7e612d1db36fe.zip
u-boot-8632091e1e15b67bbf05b48a5ae7e612d1db36fe.tar.gz
u-boot-8632091e1e15b67bbf05b48a5ae7e612d1db36fe.tar.bz2
ARM: tegra114: enable base voltages setup from board
Tegra 4, same as Tegra 3, requires configuration of CPU and CORE voltages in the SPL stage to boot properly. Expose function to be able perform this configuration in the SPL section of the device board. Tested-by: Svyatoslav Ryhel <clamor95@gmail.com> # ASUS TF701T Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
-rw-r--r--arch/arm/mach-tegra/tegra114/cpu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/tegra114/cpu.c b/arch/arm/mach-tegra/tegra114/cpu.c
index 62c1053..7d8f080 100644
--- a/arch/arm/mach-tegra/tegra114/cpu.c
+++ b/arch/arm/mach-tegra/tegra114/cpu.c
@@ -13,9 +13,13 @@
#include <asm/arch/tegra.h>
#include <asm/arch-tegra/clk_rst.h>
#include <asm/arch-tegra/pmc.h>
+#include <asm/arch-tegra/tegra_i2c.h>
#include <linux/delay.h>
#include "../cpu.h"
+/* In case this function is not defined */
+__weak void pmic_enable_cpu_vdd(void) {}
+
/* Tegra114-specific CPU init code */
static void enable_cpu_power_rail(void)
{
@@ -254,6 +258,7 @@ void start_cpu(u32 reset_vector)
/* Enable VDD_CPU */
enable_cpu_power_rail();
+ pmic_enable_cpu_vdd();
/* Get the CPU(s) running */
enable_cpu_clocks();