From: Patrick Delaunay Date: Wed, 7 Mar 2018 15:28:20 +0100 Subject: [U-Boot] [PATCH v2] common: add a prototype for mach_cpu_init() Message-ID: <1520432900-9601-1-git-send-email-patrick.delaunay@st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de avoid warning: no previous prototype for ‘mach_cpu_init’ Signed-off-by: Patrick Delaunay --- Changes in v2: - add return info for functions mach_cpu_init() and arch_cpu_init() include/common.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/common.h b/include/common.h index 0fe9439..57ae790 100644 --- a/include/common.h +++ b/include/common.h @@ -471,9 +471,23 @@ int is_core_valid (unsigned int); * CPU- or SoC- 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. + * + * @return: 0 on success, otherwise error */ 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. + * + * @return: 0 on success, otherwise error + */ +int mach_cpu_init(void); + void s_init(void); int checkcpu (void); -- 2.7.4