Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DFB37EE4993 for ; Tue, 22 Aug 2023 11:24:44 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F2950864DB; Tue, 22 Aug 2023 13:22:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ReAwoeOC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 872AF864DA; Tue, 22 Aug 2023 13:22:53 +0200 (CEST) Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DFFA18649F for ; Tue, 22 Aug 2023 13:22:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=clamor95@gmail.com Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-99d937b83efso559988166b.3 for ; Tue, 22 Aug 2023 04:22:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692703370; x=1693308170; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bygunJWYl1ElIdCSMdreG1O6wMAtNDcf5g2o+t8Lc9E=; b=ReAwoeOCR7gR2OKsl1bvVm/wnaaU4x2SjzjpQo/ydlQ9Iv3zk55jVLS1sRDYcwXoAC KmE9L1ASdki94aISYfQCuzsW1InFcfoRZXI5O00ay8hdikIFkTfRemfkuP2sGfuhAOuZ 8rHUw2SRyUu2M8XmGmXySB2DgbmIMAGlAQdmqYWYUCq+K4W6MJAEQu27qPuwy/+FLyPX MY9c5ZGQ0Os/rlHTZfqGeAJ246V/4uc4MZ+WaSjW+XCtADWYDE8hA22QLpyepxVz/H/x Uv+HyKJtMkMvRuEjzmrOzDHk2lLhlX/hXc3X7Dsnffow+Q2P+cSN7cP48XVnmW3yLX9z PA3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692703370; x=1693308170; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bygunJWYl1ElIdCSMdreG1O6wMAtNDcf5g2o+t8Lc9E=; b=BENtKF6qJHSfDhOSJROqr0lJpRwZR/0+MR0u0DzDSdFU2a8QxnhImugVSkVGZmPY4z z4Dvof4PnZjbxnE1HKwMGboqf5QFcsRKk+h3H9cGyYn3j+tK/i/Jo1Vd73Xubj9R8XLu TVWIW6RlTpnq4bFkFnX89YNs8YuPTs5t5kF7nkNzI7qkBxAhGAVW5ak4MCQ1iA8NmyEH c3mbyU0tUoyPqxBzoD5+IzWENz0/d82VgIkSVLi5K385AIRbdCqcgEReja/SwNbJUYlQ rbnfBAmmWckW7wqGge145pEOVbQb4yDXWIJLbQBod6xtPMq2gBS7u+QKCLncM3Boaq37 2Waw== X-Gm-Message-State: AOJu0YxxK3HZsn7vjHYH/2LAR1DeAO1LxvrHPyxR2heb6wrdc9Q0P3jY GeXXB3XUf+rDHIc6DVVHFJU= X-Google-Smtp-Source: AGHT+IFXqc5vcT9pDi0wzZJRwmHxUBvd376g5vglEh2GEmxF5q+khw1Y1eOHPx69XOi5Ns/WwIZOkw== X-Received: by 2002:a17:906:3199:b0:99c:40f2:a402 with SMTP id 25-20020a170906319900b0099c40f2a402mr7252139ejy.6.1692703370396; Tue, 22 Aug 2023 04:22:50 -0700 (PDT) Received: from xeon.. ([188.163.112.52]) by smtp.gmail.com with ESMTPSA id mh9-20020a170906eb8900b009934855d8f1sm8041456ejb.34.2023.08.22.04.22.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Aug 2023 04:22:50 -0700 (PDT) From: Svyatoslav Ryhel To: Thierry Reding , Svyatoslav Ryhel Cc: u-boot@lists.denx.de Subject: [PATCH v1 12/19] ARM: tegra114: enable base voltages setup from board Date: Tue, 22 Aug 2023 14:22:10 +0300 Message-Id: <20230822112217.4646-13-clamor95@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230822112217.4646-1-clamor95@gmail.com> References: <20230822112217.4646-1-clamor95@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean 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 # ASUS TF701T Signed-off-by: Svyatoslav Ryhel --- arch/arm/mach-tegra/tegra114/cpu.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-tegra/tegra114/cpu.c b/arch/arm/mach-tegra/tegra114/cpu.c index 62c1053630..7d8f080c31 100644 --- a/arch/arm/mach-tegra/tegra114/cpu.c +++ b/arch/arm/mach-tegra/tegra114/cpu.c @@ -13,9 +13,13 @@ #include #include #include +#include #include #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(); -- 2.39.2