From patchwork Mon Mar 5 14:24:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Patrick DELAUNAY X-Patchwork-Id: 881507 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=st.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zw2Kh1ZSLz9sYq for ; Tue, 6 Mar 2018 01:27:03 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id B3E20C21E53; Mon, 5 Mar 2018 14:26:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 2A5EBC21BE5; Mon, 5 Mar 2018 14:26:56 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C14E0C21DFD; Mon, 5 Mar 2018 14:26:54 +0000 (UTC) Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [62.209.51.94]) by lists.denx.de (Postfix) with ESMTPS id 7537AC21BE5 for ; Mon, 5 Mar 2018 14:26:54 +0000 (UTC) Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w25ENiYM010466; Mon, 5 Mar 2018 15:26:52 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2gfj21awfe-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 05 Mar 2018 15:26:52 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id ABF023A; Mon, 5 Mar 2018 14:26:51 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas21.st.com [10.75.90.44]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8E6F6108D; Mon, 5 Mar 2018 14:26:51 +0000 (GMT) Received: from SAFEX1HUBCAS23.st.com (10.75.90.47) by SAFEX1HUBCAS21.st.com (10.75.90.44) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 5 Mar 2018 15:26:51 +0100 Received: from localhost (10.201.23.85) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 5 Mar 2018 15:26:50 +0100 From: Patrick Delaunay To: Date: Mon, 5 Mar 2018 15:24:30 +0100 Message-ID: <1520259883-4929-4-git-send-email-patrick.delaunay@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520259883-4929-1-git-send-email-patrick.delaunay@st.com> References: <1520259883-4929-1-git-send-email-patrick.delaunay@st.com> MIME-Version: 1.0 X-Originating-IP: [10.201.23.85] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2018-03-05_06:, , signatures=0 Cc: Stefan Roese Subject: [U-Boot] [PATCH 03/16] common: add a prototype for mach_cpu_init() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" avoid warning: no previous prototype for ‘mach_cpu_init’ Signed-off-by: Patrick Delaunay --- include/common.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/common.h b/include/common.h index 0fe9439..5b6f788 100644 --- a/include/common.h +++ b/include/common.h @@ -474,6 +474,16 @@ int is_core_valid (unsigned int); */ int arch_cpu_init(void); +/** + * mach_cpu_init() - SoC/machine dependent CPU setup + * + * This is called after arch_cpu_init(). It should handle any + * SoC or machine specific init needed to continue the init sequence. See + * board_f.c for where it is called. If this is not provided, a default + * version (which does nothing) will be used. + */ +int mach_cpu_init(void); + void s_init(void); int checkcpu (void);