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 EF8F3C636CC for ; Fri, 3 Feb 2023 09:29:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 38A7085F3A; Fri, 3 Feb 2023 10:27:45 +0100 (CET) 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="qYTpv1PA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C06CB85F08; Fri, 3 Feb 2023 10:27:24 +0100 (CET) Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (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 9249785F0F for ; Fri, 3 Feb 2023 10:27:16 +0100 (CET) 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-wm1-x32f.google.com with SMTP id l37-20020a05600c1d2500b003dfe46a9801so1883547wms.0 for ; Fri, 03 Feb 2023 01:27:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=+vWFP4hZIPC4GvldRbRJyLgcXIXmacZjzAD6wm1ZwWs=; b=qYTpv1PAJJ5JzPQys8wnbb/COi9NGeQN/A0/Km9f57g5/iTZU4nN6rBSoeLzUkFgoK WvfU7hQeNrDW3HqU3XlfmU/1vCJ+hCojAoLj6xtxXe1RJEjEdhd74/5dU721zM6Ww2z8 CO0bENDScKalcaRA20VPhJ12+HruXHEVgotS8ExUpJmxaoW+f3ksYHet/k3LHFHLoRRs 1foMy5yfYAo3jzr2U7Y7kHwil51uunjaT2cpVUJKMT4hMqHVacXbIIWXxJ+7MkdjkaHi ur5fylDbg9dMBleTOE1JzHmAHNeSzS5JTzCUci6llD0iHizlYPIVcIXUzwoAAkqlqlfa a9aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=+vWFP4hZIPC4GvldRbRJyLgcXIXmacZjzAD6wm1ZwWs=; b=v+AS06YrcRtSdc5xeg3sw88nm39xj4CtKUkrl4jDGgb8/H++dYR4Jjskx9r42QDWCw LdWl9NyTEaEmHinptcG+4ySBtIrUlPvv6h33NYQZFigAuXLUJnZdQtgkgm9g5nfcamnu o+PoUz6itn1dFz1OnnwZkPH7J9ijdw6vWq6WWLi1sKaHX4kj2wVZyN2iD8uksLPd6Je0 F0INrw44G3A8UKbKWWXwwoQmO6UgnX6cp2tO5KJK1MmDiO9c7/zUaD5yjQMr/LZjieUR aDOkPethUstt8IgaSDtEKpTnAKOhXb7i/OqT5K9Ho3xk45lejrFnB20Vq/Hx4g6ymWLL wY4g== X-Gm-Message-State: AO0yUKVb3Psr/6Yl1aE4XJXP4QdzJvQsVn9soJB+J9FVmVaKUGs78x+4 C6i1UNSIpe+tJ0vX9Y3B3zM= X-Google-Smtp-Source: AK7set8qiGjH9lnFsSdqBprriDh+GuFMVIugLlFrua045Y/YkFtoCfYLrHwLNaoDHr+tAr56SD3H4g== X-Received: by 2002:a05:600c:4688:b0:3dd:1c45:fe3a with SMTP id p8-20020a05600c468800b003dd1c45fe3amr3924033wmo.16.1675416435908; Fri, 03 Feb 2023 01:27:15 -0800 (PST) Received: from xeon.. ([188.163.112.54]) by smtp.gmail.com with ESMTPSA id q6-20020a05600c46c600b003dc54344764sm7865025wmo.48.2023.02.03.01.27.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Feb 2023 01:27:15 -0800 (PST) From: Svyatoslav Ryhel To: Tom Warren , Stephen Warren , Marcel Ziswiler , Allen Martin , Jagan Teki , Lukasz Majewski , Marek Vasut , Svyatoslav Ryhel , Ramin Khonsari , Thierry Reding , Maxim Schwalm , Dmitry Osipenko Cc: u-boot@lists.denx.de Subject: [PATCH v3 09/16] ARM: tegra: add late init support Date: Fri, 3 Feb 2023 11:26:33 +0200 Message-Id: <20230203092640.40821-10-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230203092640.40821-1-clamor95@gmail.com> References: <20230203092640.40821-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.6 at phobos.denx.de X-Virus-Status: Clean Late init function allows passing values like identifiers and perform device specific configurations of pre-boot stage. Tested-by: Andreas Westman Dorcsak # ASUS TF T30 Tested-by: Svyatoslav Ryhel # LG P895 T30 Signed-off-by: Svyatoslav Ryhel --- arch/arm/include/asm/arch-tegra/sys_proto.h | 6 ++++++ arch/arm/mach-tegra/board2.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/arch/arm/include/asm/arch-tegra/sys_proto.h b/arch/arm/include/asm/arch-tegra/sys_proto.h index c3a2673e6c..566666a9a0 100644 --- a/arch/arm/include/asm/arch-tegra/sys_proto.h +++ b/arch/arm/include/asm/arch-tegra/sys_proto.h @@ -31,4 +31,10 @@ int tegra_lcd_pmic_init(int board_id); */ int nvidia_board_init(void); +/** + * nvidia_board_late_init() - perform any board-specific + * init on late stages + */ +void nvidia_board_late_init(void); + #endif diff --git a/arch/arm/mach-tegra/board2.c b/arch/arm/mach-tegra/board2.c index c7a45f4ff8..0df18360ca 100644 --- a/arch/arm/mach-tegra/board2.c +++ b/arch/arm/mach-tegra/board2.c @@ -56,6 +56,7 @@ __weak void gpio_early_init_uart(void) {} __weak void pin_mux_display(void) {} __weak void start_cpu_fan(void) {} __weak void cboot_late_init(void) {} +__weak void nvidia_board_late_init(void) {} #if defined(CONFIG_TEGRA_NAND) __weak void pin_mux_nand(void) @@ -267,6 +268,7 @@ int board_late_init(void) #endif start_cpu_fan(); cboot_late_init(); + nvidia_board_late_init(); return 0; } -- 2.37.2