From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Date: Sun, 09 Jan 2011 15:53:36 +0300 Subject: [U-Boot] [PATCH 5/7] powerpc/86xx: Enable common SRIO init code In-Reply-To: <1294333132-28592-5-git-send-email-galak@kernel.crashing.org> References: <1294333132-28592-1-git-send-email-galak@kernel.crashing.org> <1294333132-28592-2-git-send-email-galak@kernel.crashing.org> <1294333132-28592-3-git-send-email-galak@kernel.crashing.org> <1294333132-28592-4-git-send-email-galak@kernel.crashing.org> <1294333132-28592-5-git-send-email-galak@kernel.crashing.org> Message-ID: <4D29AFD0.3020103@mvista.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello. On 06-01-2011 19:58, Kumar Gala wrote: > Add the needed defines and code to utilize the common 8xxx srio init > code to setup LAWs and modify device tree if we have SRIO enabled on a > board. > Signed-off-by: Kumar Gala > --- > arch/powerpc/cpu/mpc86xx/fdt.c | 9 ++++++++- > arch/powerpc/include/asm/immap_86xx.h | 4 +++- > 2 files changed, 11 insertions(+), 2 deletions(-) > diff --git a/arch/powerpc/cpu/mpc86xx/fdt.c b/arch/powerpc/cpu/mpc86xx/fdt.c > index ff89ee5..3b96bf5 100644 > --- a/arch/powerpc/cpu/mpc86xx/fdt.c > +++ b/arch/powerpc/cpu/mpc86xx/fdt.c [...] > @@ -14,6 +14,9 @@ > DECLARE_GLOBAL_DATA_PTR; > > extern void ft_fixup_num_cores(void *blob); > +#ifdef CONFIG_SYS_HAS_SRIO > +extern void ft_srio_setup(void *blob); > +#endif There's no need to enclose the *extern* declaration within #ifdef. WBR, Sergei