From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Tue, 10 May 2016 12:48:23 -0700 Subject: [U-Boot] [PATCH v3 3/7] ARMv8/ls1043ardb: Integrate FSL PPA In-Reply-To: <1461764367-7760-3-git-send-email-Zhiqiang.Hou@nxp.com> References: <1461764367-7760-1-git-send-email-Zhiqiang.Hou@nxp.com> <1461764367-7760-3-git-send-email-Zhiqiang.Hou@nxp.com> Message-ID: <57323B07.1050603@nxp.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 04/27/2016 06:49 AM, Zhiqiang Hou wrote: > From: Hou Zhiqiang > > Signed-off-by: Hou Zhiqiang > --- > V3: > - no change > > board/freescale/ls1043ardb/ls1043ardb.c | 11 +++++++++++ > include/configs/ls1043ardb.h | 9 +++++++++ > 2 files changed, 20 insertions(+) > > diff --git a/board/freescale/ls1043ardb/ls1043ardb.c b/board/freescale/ls1043ardb/ls1043ardb.c > index ec5fdbf..5f0a8e7 100644 > --- a/board/freescale/ls1043ardb/ls1043ardb.c > +++ b/board/freescale/ls1043ardb/ls1043ardb.c > @@ -9,6 +9,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -84,6 +85,9 @@ int board_early_init_f(void) > int board_init(void) > { > struct ccsr_cci400 *cci = (struct ccsr_cci400 *)CONFIG_SYS_CCI400_ADDR; > +#ifdef CONFIG_FSL_LS_PPA > + u64 ppa_entry; > +#endif > > /* > * Set CCI-400 control override register to enable barrier > @@ -103,6 +107,13 @@ int board_init(void) > enable_layerscape_ns_access(); > #endif > > +#ifdef CONFIG_FSL_LS_PPA > + ppa_init_pre(&ppa_entry); > + > + if (ppa_entry) > + ppa_init_entry((void *)ppa_entry); ppa_init_pre() returns the error code. Why don't you use the return value here? York