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 2933AC05027 for ; Sun, 29 Jan 2023 18:44:35 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E2E9185777; Sun, 29 Jan 2023 19:43:30 +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="Puo3jyMt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 450058574D; Sun, 29 Jan 2023 19:42:29 +0100 (CET) Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (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 932E18574B for ; Sun, 29 Jan 2023 19:41:54 +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-wr1-x42e.google.com with SMTP id b7so9214481wrt.3 for ; Sun, 29 Jan 2023 10:41:54 -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=Puo3jyMtj0kLIiWLsoKHKleChaoUJcQ89beqvsGPzdhbE55gLIkqNiDpvK2UCOAlWz shHvK65YXKP1xGqzxUl6qQhxCbbGG9BQkgqJKYAR6byWwjYhn4kvolNutRVrm58Xeklu ZZJixYKQETg/nowG5zCIAjD9+aawBVWB+aUfOlkeP/IdyS1f15UTam5QpDQtJUSyTDQ8 NYauXON92ijvPkz1sgbB2HF3s40MuI4TOugkGlWdP/Wyl62JOqI6bsppt5diLO+DQH9Y 109Uw8hWR0vll63OxNjJpq2R73wz4OaOgpb0Yffgt1TDevgm3Uk3hdpBVT+Nh7BYejyf fsZg== 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=Pv+P2uld8rFe1gn50Wrnf6GFolhCdJ+YmTn3+2WMLZeNih6zFc4CcXRGbMRQmrHPi2 BL0fGs9Y4bppvxYSlw/zD+zU0oR4qoo4HE8bvCKO9n+iLtckB8F81uFJst7wfrRaLVJ+ rI/Vs8Z9ulM/BJrN2BSlMShq3yM/DqD1CeTRWJIbiFx2oSnuaTXQT8iIgLGjclkVkdiy 6vbNVBAf2uj0+ONVOzLSG177UQAtsnv8F+sfPGWvWDk1Lgp5weYUQGGtu9nfmxl0LBdR w6m/7/GuebsAYXhTe3BkRxRkXgaoH3lWJqBH+dVfm4zNh6Dhw75Sm4Nj5zbHQNhAkI0c Hh/Q== X-Gm-Message-State: AO0yUKUqEE8keat7EkL3m0zu6/ndJPNoMaCHuqOnJcRhCuVBeWBNQuyt r5kronr+CXsWcai2mfx+6ZA= X-Google-Smtp-Source: AK7set/XokJMNr7uNafN+z6UXjqDwMSDetomdSumYSAxc6dqfgz8Y2Kcee7yrNve4miTqijqWwp3ww== X-Received: by 2002:adf:f68d:0:b0:2bf:bcab:8e20 with SMTP id v13-20020adff68d000000b002bfbcab8e20mr13376242wrp.32.1675017713597; Sun, 29 Jan 2023 10:41:53 -0800 (PST) Received: from xeon.. ([188.163.112.54]) by smtp.gmail.com with ESMTPSA id y8-20020adfdf08000000b002bfb31bda06sm10321010wrl.76.2023.01.29.10.41.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Jan 2023 10:41:53 -0800 (PST) From: Svyatoslav Ryhel To: Tom Warren , Alban Bedel , 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 v1 09/16] ARM: tegra: add late init support Date: Sun, 29 Jan 2023 20:41:16 +0200 Message-Id: <20230129184123.36001-10-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230129184123.36001-1-clamor95@gmail.com> References: <20230129184123.36001-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