85xx: Move include of config.h earlier.
PATCH 1/1 85xx: Move include of config.h earlier.
Include config.h earlier in the set of #includes so as to avoid an incidental and duplicate definition of CFG_CACHELINE_SIZE.
---
This is in my git tree on kernel.org in the mpc85xx branch.
board/freescale/mpc8540ads/init.S | 2 +- board/freescale/mpc8541cds/init.S | 2 +- board/freescale/mpc8544ds/init.S | 2 +- board/freescale/mpc8548cds/init.S | 2 +- board/freescale/mpc8555cds/init.S | 2 +- board/freescale/mpc8560ads/init.S | 2 +- board/freescale/mpc8568mds/init.S | 2 +- board/mpc8540eval/init.S | 2 +- board/pm854/init.S | 2 +- board/pm856/init.S | 2 +- board/sbc8560/init.S | 2 +- board/stxgp3/init.S | 2 +- board/stxssa/init.S | 2 +- board/tqm85xx/init.S | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-)
board/freescale/mpc8540ads/init.S +1 -1
@@ -22,11 +22,11 @@ * MA 02111-1307 USA */ +#include <config.h> #include <ppc_asm.tmpl> #include <ppc_defs.h> #include <asm/cache.h> #include <asm/mmu.h> -#include <config.h> #include <mpc85xx.h>
board/freescale/mpc8541cds/init.S +1 -1
@@ -21,11 +21,11 @@ * MA 02111-1307 USA */ +#include <config.h> #include <ppc_asm.tmpl> #include <ppc_defs.h> #include <asm/cache.h> #include <asm/mmu.h> -#include <config.h> #include <mpc85xx.h>
board/freescale/mpc8544ds/init.S +1 -1
@@ -20,11 +20,11 @@ * MA 02111-1307 USA */ +#include <config.h> #include <ppc_asm.tmpl> #include <ppc_defs.h> #include <asm/cache.h> #include <asm/mmu.h> -#include <config.h> #include <mpc85xx.h> /*
board/freescale/mpc8548cds/init.S +1 -1
@@ -21,11 +21,11 @@ * MA 02111-1307 USA */ +#include <config.h> #include <ppc_asm.tmpl> #include <ppc_defs.h> #include <asm/cache.h> #include <asm/mmu.h> -#include <config.h> #include <mpc85xx.h> /*
board/freescale/mpc8555cds/init.S +1 -1
@@ -21,11 +21,11 @@ * MA 02111-1307 USA */ +#include <config.h> #include <ppc_asm.tmpl> #include <ppc_defs.h> #include <asm/cache.h> #include <asm/mmu.h> -#include <config.h> #include <mpc85xx.h>
board/freescale/mpc8560ads/init.S +1 -1
@@ -22,11 +22,11 @@ * MA 02111-1307 USA */ +#include <config.h> #include <ppc_asm.tmpl> #include <ppc_defs.h> #include <asm/cache.h> #include <asm/mmu.h> -#include <config.h> #include <mpc85xx.h>
board/freescale/mpc8568mds/init.S +1 -1
@@ -21,11 +21,11 @@ * MA 02111-1307 USA */ +#include <config.h> #include <ppc_asm.tmpl> #include <ppc_defs.h> #include <asm/cache.h> #include <asm/mmu.h> -#include <config.h> #include <mpc85xx.h> /*
board/mpc8540eval/init.S +1 -1
@@ -21,11 +21,11 @@ * MA 02111-1307 USA */ +#include <config.h> #include <ppc_asm.tmpl> #include <ppc_defs.h> #include <asm/cache.h> #include <asm/mmu.h> -#include <config.h> #include <mpc85xx.h> #define entry_start \
board/pm854/init.S +1 -1
@@ -22,11 +22,11 @@ * MA 02111-1307 USA */ +#include <config.h> #include <ppc_asm.tmpl> #include <ppc_defs.h> #include <asm/cache.h> #include <asm/mmu.h> -#include <config.h> #include <mpc85xx.h>
board/pm856/init.S +1 -1
@@ -22,11 +22,11 @@ * MA 02111-1307 USA */ +#include <config.h> #include <ppc_asm.tmpl> #include <ppc_defs.h> #include <asm/cache.h> #include <asm/mmu.h> -#include <config.h> #include <mpc85xx.h>
board/sbc8560/init.S +1 -1
@@ -24,11 +24,11 @@ * MA 02111-1307 USA */ +#include <config.h> #include <ppc_asm.tmpl> #include <ppc_defs.h> #include <asm/cache.h> #include <asm/mmu.h> -#include <config.h> #include <mpc85xx.h> #define entry_start \
board/stxgp3/init.S +1 -1
@@ -28,11 +28,11 @@ * MA 02111-1307 USA */ +#include <config.h> #include <ppc_asm.tmpl> #include <ppc_defs.h> #include <asm/cache.h> #include <asm/mmu.h> -#include <config.h> #include <mpc85xx.h>
board/stxssa/init.S +1 -1
@@ -28,11 +28,11 @@ * MA 02111-1307 USA */ +#include <config.h> #include <ppc_asm.tmpl> #include <ppc_defs.h> #include <asm/cache.h> #include <asm/mmu.h> -#include <config.h> #include <mpc85xx.h>
board/tqm85xx/init.S +1 -1
@@ -22,11 +22,11 @@ * MA 02111-1307 USA */ +#include <config.h> #include <ppc_asm.tmpl> #include <ppc_defs.h> #include <asm/cache.h> #include <asm/mmu.h> -#include <config.h> #include <mpc85xx.h>
Signature · 1 line
1.5.3.7
PATCH 1/1 85xx: Move include of config.h earlier.
Hi Kumar,
Quoted 2 lines · Kumar Gala
Include
config.hearlier in the set of #includes so as to avoid an incidental and duplicate definition ofCFG_CACHELINE_SIZE.
Why not remove CFG_CACHELINE_SIZE (and the other CFG_CACHE_xxx stuff) from the board config files instead? This should be defined correctly in asm-ppc/cache.h now.
I made this cleanup for 4xx lately and probably triggered this problem for your FSL ports. Sorry about that, but I really think these cache defines should be removed from the board config files.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
PATCH 1/1 85xx: Move include of config.h earlier.
Quoted 11 lines · Stefan Roese
Hi Kumar,
Quoted 2 lines · Kumar Gala
Include
config.hearlier in the set of #includes so as to avoid an incidental and duplicate definition ofCFG_CACHELINE_SIZE.Why not remove
CFG_CACHELINE_SIZE(and the otherCFG_CACHE_xxxstuff) from the
board config files instead? This should be defined correctly inasm-ppc/cache.hnow.
Quoted 5 lines
I made this cleanup for 4xx lately and probably triggered this problem for
your FSL ports. Sorry about that, but I really think these cache defines
should be removed from the board config files.
Ok, will send a new patch which drops the cache config from config.h for 85xx
- k