Add an architecture specific config.h for common defines
PATCH 1/2 Add an architecture specific config.h for common defines
We have common defines that we duplicate in various ways. Having an arch specific config.h gives us a common location for those defines.
Eventually we should be able to relace this when we have proper Kconfig support.
--- include/asm-arm/config.h | 24 ++++++++++++++++++++++++ include/asm-avr32/config.h | 24 ++++++++++++++++++++++++ include/asm-blackfin/config.h | 24 ++++++++++++++++++++++++ include/asm-i386/config.h | 24 ++++++++++++++++++++++++ include/asm-m68k/config.h | 24 ++++++++++++++++++++++++ include/asm-microblaze/config.h | 24 ++++++++++++++++++++++++ include/asm-mips/config.h | 24 ++++++++++++++++++++++++ include/asm-nios/config.h | 24 ++++++++++++++++++++++++ include/asm-nios2/config.h | 24 ++++++++++++++++++++++++ include/asm-ppc/config.h | 24 ++++++++++++++++++++++++ include/asm-sh/config.h | 24 ++++++++++++++++++++++++ include/asm-sparc/config.h | 24 ++++++++++++++++++++++++ mkconfig | 1 + 13 files changed, 289 insertions(+), 0 deletions(-) create mode 100644 include/asm-arm/config.h create mode 100644 include/asm-avr32/config.h create mode 100644 include/asm-blackfin/config.h create mode 100644 include/asm-i386/config.h create mode 100644 include/asm-m68k/config.h create mode 100644 include/asm-microblaze/config.h create mode 100644 include/asm-mips/config.h create mode 100644 include/asm-nios/config.h create mode 100644 include/asm-nios2/config.h create mode 100644 include/asm-ppc/config.h create mode 100644 include/asm-sh/config.h create mode 100644 include/asm-sparc/config.h
include/asm-arm/config.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* Copyright 2009 Freescale Semiconductor, Inc. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +* +*/ + +#ifndef _ASM_CONFIG_H_ +#define _ASM_CONFIG_H_ + +#endif
include/asm-avr32/config.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* Copyright 2009 Freescale Semiconductor, Inc. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +* +*/ + +#ifndef _ASM_CONFIG_H_ +#define _ASM_CONFIG_H_ + +#endif
include/asm-blackfin/config.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* Copyright 2009 Freescale Semiconductor, Inc. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +* +*/ + +#ifndef _ASM_CONFIG_H_ +#define _ASM_CONFIG_H_ + +#endif
include/asm-i386/config.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* Copyright 2009 Freescale Semiconductor, Inc. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +* +*/ + +#ifndef _ASM_CONFIG_H_ +#define _ASM_CONFIG_H_ + +#endif
include/asm-m68k/config.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* Copyright 2009 Freescale Semiconductor, Inc. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +* +*/ + +#ifndef _ASM_CONFIG_H_ +#define _ASM_CONFIG_H_ + +#endif
include/asm-microblaze/config.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* Copyright 2009 Freescale Semiconductor, Inc. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +* +*/ + +#ifndef _ASM_CONFIG_H_ +#define _ASM_CONFIG_H_ + +#endif
include/asm-mips/config.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* Copyright 2009 Freescale Semiconductor, Inc. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +* +*/ + +#ifndef _ASM_CONFIG_H_ +#define _ASM_CONFIG_H_ + +#endif
include/asm-nios/config.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* Copyright 2009 Freescale Semiconductor, Inc. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +* +*/ + +#ifndef _ASM_CONFIG_H_ +#define _ASM_CONFIG_H_ + +#endif
include/asm-nios2/config.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* Copyright 2009 Freescale Semiconductor, Inc. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +* +*/ + +#ifndef _ASM_CONFIG_H_ +#define _ASM_CONFIG_H_ + +#endif
include/asm-ppc/config.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* Copyright 2009 Freescale Semiconductor, Inc. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +* +*/ + +#ifndef _ASM_CONFIG_H_ +#define _ASM_CONFIG_H_ + +#endif
include/asm-sh/config.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* Copyright 2009 Freescale Semiconductor, Inc. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +* +*/ + +#ifndef _ASM_CONFIG_H_ +#define _ASM_CONFIG_H_ + +#endif
include/asm-sparc/config.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* Copyright 2009 Freescale Semiconductor, Inc. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +* +*/ + +#ifndef _ASM_CONFIG_H_ +#define _ASM_CONFIG_H_ + +#endif
mkconfig +1 -0
@@ -82,6 +82,7 @@ else > config.h # Create new config file fi echo "/* Automatically generated - do not edit */" >>config.h +echo "#include <asm/config.h>" >>config.h echo "#include <configs/$1.h>" >>config.h exit 0
Signature · 1 line
1.5.6.6
PATCH 2/2 ppc: Move CONFIG_MAX_MEM_MAPPED to common config.h
Moved CONFIG_MAX_MEM_MAPPED to the asm/config.h so its kept consistent between the two current users (lib_ppc/board.c, 44x SPD DDR2).
--- cpu/ppc4xx/44x_spd_ddr2.c | 3 --- include/asm-ppc/config.h | 8 ++++++++ lib_ppc/board.c | 3 --- 3 files changed, 8 insertions(+), 6 deletions(-)
cpu/ppc4xx/44x_spd_ddr2.c +0 -3
@@ -160,9 +160,6 @@* SDRAM. This is because we only map the first 2GB on such systems, and therefore * the ECC parity byte of the remaining area can't be written. */ -#ifndef CONFIG_MAX_MEM_MAPPED -#define CONFIG_MAX_MEM_MAPPED ((phys_size_t)2 << 30) -#endif /* * Board-specific Platform code can reimplement spd_ddr_init_hang () if needed
include/asm-ppc/config.h +8 -0
@@ -21,4 +21,12 @@#ifndef _ASM_CONFIG_H_#define _ASM_CONFIG_H_ +#ifndef CONFIG_MAX_MEM_MAPPED +#if defined(CONFIG_SDRAM_PPC4xx_IBM_DDR2) && defined(CONFIG_SPD_EEPROM ) +#define CONFIG_MAX_MEM_MAPPED ((phys_size_t)2 << 30) +#else +#define CONFIG_MAX_MEM_MAPPED (256 << 20) +#endif +#endif +#endif
lib_ppc/board.c +0 -3
@@ -352,9 +352,6 @@ init_fnc_t *init_sequence[] = { NULL, /* Terminate this list */ }; -#ifndef CONFIG_MAX_MEM_MAPPED -#define CONFIG_MAX_MEM_MAPPED (256 << 20) -#endif ulong get_effective_memsize (void ) {#ifndef CONFIG_VERY_BIG_RAM
Signature · 1 line
1.5.6.6
PATCH 2/2 ppc: Move CONFIG_MAX_MEM_MAPPED to common config.h
Quoted 4 lines · Kumar Gala
Moved
CONFIG_MAX_MEM_MAPPEDto theasm/config.hso its kept consistent between the two current users (lib_ppc/board.c, 44x SPD DDR2).Signed-off-by Kumar Gala <[email protected]>
Looks good, so:
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
=====================================================================
Wolfgang Denk
AppliedPATCH 2/2 ppc: Move CONFIG_MAX_MEM_MAPPED to common config.h
In reply to Kumar GalaDear Kumar Gala,
Quoted 9 lines · In message <[email protected]> you…
Moved
CONFIG_MAX_MEM_MAPPEDto theasm/config.hso its kept consistent between the two current users (lib_ppc/board.c, 44x SPD DDR2).Signed-off-by Kumar Gala <[email protected]>--- cpu/ppc4xx/44x_spd_ddr2.c | 3 --- include/asm-ppc/config.h | 8 ++++++++ lib_ppc/board.c | 3 --- 3 files changed, 8 insertions(+), 6 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Of all possible committee reactions to any given agenda item, the reaction that will occur is the one which will liberate the greatest amount of hot air. -- Thomas L. Martin
PATCH 1/2 Add an architecture specific config.h for common defines
In reply to Kumar GalaQuoted 6 lines · Kumar Gala
We have common defines that we duplicate in various ways. Having an arch specific
config.hgives us a common location for those defines.Eventually we should be able to relace this when we have proper
Kconfigsupport.
I've already propose this to Wolfgang when handling FIT and FDT problem and he NACK it
Best Regards,
J.
Wolfgang Denk
AppliedPATCH 1/2 Add an architecture specific config.h for common defines
In reply to Kumar GalaDear Kumar Gala,
Quoted 26 lines · In message <[email protected]> you…
We have common defines that we duplicate in various ways. Having an arch specific
config.hgives us a common location for those defines.Eventually we should be able to relace this when we have proper
Kconfigsupport.Signed-off-by Kumar Gala <[email protected]>--- include/asm-arm/config.h | 24 ++++++++++++++++++++++++ include/asm-avr32/config.h | 24 ++++++++++++++++++++++++ include/asm-blackfin/config.h | 24 ++++++++++++++++++++++++ include/asm-i386/config.h | 24 ++++++++++++++++++++++++ include/asm-m68k/config.h | 24 ++++++++++++++++++++++++ include/asm-microblaze/config.h | 24 ++++++++++++++++++++++++ include/asm-mips/config.h | 24 ++++++++++++++++++++++++ include/asm-nios/config.h | 24 ++++++++++++++++++++++++ include/asm-nios2/config.h | 24 ++++++++++++++++++++++++ include/asm-ppc/config.h | 24 ++++++++++++++++++++++++ include/asm-sh/config.h | 24 ++++++++++++++++++++++++ include/asm-sparc/config.h | 24 ++++++++++++++++++++++++ mkconfig | 1 + 13 files changed, 289 insertions(+), 0 deletions(-) create mode 100644 include/asm-arm/config.h create mode 100644 include/asm-avr32/config.h create mode 100644 include/asm-blackfin/config.h create mode 100644 include/asm-i386/config.h
Quoted 8 lines
create mode 100644 include/asm-m68k/config.h create mode 100644 include/asm-microblaze/config.h create mode 100644 include/asm-mips/config.h create mode 100644 include/asm-nios/config.h create mode 100644 include/asm-nios2/config.h create mode 100644 include/asm-ppc/config.h create mode 100644 include/asm-sh/config.h create mode 100644 include/asm-sparc/config.h
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "There is nothing new under the sun, but there are lots of old things we don't know yet." - Ambrose Bierce