From patchwork Fri Oct 18 15:55:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 1999273 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=ElnNlrTw; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XVTp46Ncdz1xw2 for ; Sat, 19 Oct 2024 02:56:12 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6B9B088BBE; Fri, 18 Oct 2024 17:56:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=linux.intel.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=intel.com header.i=@intel.com header.b="ElnNlrTw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 609F288BB2; Fri, 18 Oct 2024 17:56:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A489488BBE for ; Fri, 18 Oct 2024 17:56:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=linux.intel.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=andriy.shevchenko@linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729266965; x=1760802965; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Ity7Ryj6fYUY9Go+UBiFF26Ot/Aqyzya1jXawG6eFAw=; b=ElnNlrTwN9CNa9aqs2HzFO55gwAjlaT9t9P9bodnXi00sStBjltYzpPG uQrOSnEgunXHGcUC6MosIrumVAHkxAiiVsCo4v63ZX71pZWLdu22Kft5R hQTsXPW+nVMmD0Q0088DxrczzjStfi1dLkT8pPX1EeQYy/I0knxh5/lO8 G6Z+igkV0+U0k9i1Un58BxjDwAnO1/Wm6rwLt/akWh0Ylu7YOcYWoZ10n Gn+dvXkH2muLl/YSFPGvHaWLjWdEVwgbLL8Hv/6t89waSfrwqjxesT0/8 6nKJyIr33zBa7iZFfkPbGQfZDo3xZap8WInhGVfmY5B1WRKbMtQZ0DB4L Q==; X-CSE-ConnectionGUID: LyPzAk0HT7y/5vl/g/KoEQ== X-CSE-MsgGUID: wEvvN0NlRp6jnUR29n96xw== X-IronPort-AV: E=McAfee;i="6700,10204,11229"; a="28263503" X-IronPort-AV: E=Sophos;i="6.11,214,1725346800"; d="scan'208";a="28263503" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2024 08:56:02 -0700 X-CSE-ConnectionGUID: SVmo3QszRraLpB6JFNqLtw== X-CSE-MsgGUID: ANpkNNupQyO8o3tMdLlcEQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,214,1725346800"; d="scan'208";a="79246814" Received: from black.fi.intel.com ([10.237.72.28]) by fmviesa010.fm.intel.com with ESMTP; 18 Oct 2024 08:56:01 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 01EE1256; Fri, 18 Oct 2024 18:55:59 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , u-boot@lists.denx.de Cc: Simon Glass , Bin Meng , Tom Rini Subject: [PATCH v1 1/1] x86: cpu: Describe board final hooks in the header Date: Fri, 18 Oct 2024 18:55:57 +0300 Message-ID: <20241018155557.2184819-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1336.g36b5255a03ac MIME-Version: 1.0 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 The new two declarations board_final_init() and board_final_cleanup() need a description. Add it here. Suggested-by: Simon Glass Signed-off-by: Andy Shevchenko Reviewed-by: Simon Glass --- arch/x86/include/asm/cpu.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/x86/include/asm/cpu.h b/arch/x86/include/asm/cpu.h index d71bc1b80c05..a5b2043f7de1 100644 --- a/arch/x86/include/asm/cpu.h +++ b/arch/x86/include/asm/cpu.h @@ -298,7 +298,20 @@ u32 cpu_get_stepping(void); */ int cpu_phys_address_size(void); +/** + * board_final_init() - Final initialization hook (optional) + * + * Implements a custom initialization for boards that need to do it + * before the system is ready. + */ void board_final_init(void); + +/** + * board_final_cleanup() - Final cleanup hook (optional) + * + * Implements a custom cleanup for boards that need to do it before + * booting the OS. + */ void board_final_cleanup(void); #ifndef CONFIG_EFI_STUB