layerscape: add 64b/32b target for ls1012ardb device
[lede.git] / package / boot / uboot-layerscape / patches / 0011-armv8-fsl-layerscape-fix-compile-warning-rcw_tmp.patch
1 From 5a5108627b16ab33fb82c16e49ac926ef3a901b8 Mon Sep 17 00:00:00 2001
2 From: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
3 Date: Wed, 6 Apr 2016 17:44:22 +0530
4 Subject: [PATCH 11/93] armv8: fsl-layerscape: fix compile warning "rcw_tmp"
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c: In function
10 ‘get_sys_info’:
11 arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c:29:6: warning:
12 unused variable ‘rcw_tmp’ [-Wunused-variable]
13   u32 rcw_tmp;
14
15 Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
16 ---
17  .../arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c |    5 ++++-
18  1 file changed, 4 insertions(+), 1 deletion(-)
19
20 diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
21 index d301fff..078b087 100644
22 --- a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
23 +++ b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
24 @@ -25,7 +25,10 @@ void get_sys_info(struct sys_info *sys_info)
25         struct fsl_ifc ifc_regs = {(void *)CONFIG_SYS_IFC_ADDR, (void *)NULL};
26         u32 ccr;
27  #endif
28 -#if defined(CONFIG_FSL_ESDHC) || defined(CONFIG_SYS_DPAA_FMAN)
29 +#if (defined(CONFIG_FSL_ESDHC) &&\
30 +       defined(CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK)) ||\
31 +       defined(CONFIG_SYS_DPAA_FMAN)
32 +
33         u32 rcw_tmp;
34  #endif
35         struct ccsr_clk *clk = (void *)(CONFIG_SYS_FSL_CLK_ADDR);
36 -- 
37 1.7.9.5
38