powerpc: mpc5xxx: remove redundant CONFIG_MPC5xxx definition
PATCH v2 1/1 powerpc: mpc5xxx: remove redundant CONFIG_MPC5xxx definition
We do not have to define CONFIG_MPC5xxx in board config headers (and start.S) because it is defined in arch/powerpc/cpu/mpc5xxx/config.mk.
---
Changes in v2:
- Fix a typo in the subject: s/redandant/redundant/
arch/powerpc/cpu/mpc5xxx/start.S | 2 -- include/configs/BC3450.h | 1 - include/configs/IceCube.h | 1 - include/configs/MVBC_P.h | 1 - include/configs/MVSMR.h | 1 - include/configs/PM520.h | 1 - include/configs/TB5200.h | 1 - include/configs/TOP5200.h | 1 - include/configs/TQM5200.h | 1 - include/configs/Total5200.h | 1 - include/configs/a3m071.h | 1 - include/configs/a4m072.h | 1 - include/configs/aev.h | 1 - include/configs/canmb.h | 1 - include/configs/cm5200.h | 1 - include/configs/cpci5200.h | 1 - include/configs/digsy_mtc.h | 1 - include/configs/galaxy5200.h | 1 - include/configs/hmi1001.h | 1 - include/configs/inka4x0.h | 1 - include/configs/ipek01.h | 1 - include/configs/jupiter.h | 1 - include/configs/manroland/mpc5200-common.h | 1 - include/configs/mcc200.h | 1 - include/configs/mecp5200.h | 1 - include/configs/motionpro.h | 1 - include/configs/munices.h | 1 - include/configs/o2dnt-common.h | 1 - include/configs/pcm030.h | 1 - include/configs/pf5200.h | 1 - include/configs/v38b.h | 1 - 31 files changed, 32 deletions(-)
arch/powerpc/cpu/mpc5xxx/start.S +0 -2
@@ -14,8 +14,6 @@ #include <mpc5xxx.h> #include <version.h> -#define CONFIG_MPC5xxx 1 /* needed for Linux kernel header files */ - #include <ppc_asm.tmpl> #include <ppc_defs.h>
include/configs/BC3450.h +0 -1
@@ -22,7 +22,6 @@/* * High Level Configuration Options */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 1/* (more precisely a MPC5200 CPU) */ #define CONFIG_TQM5200 1/* ... on a TQM5200 module */
include/configs/IceCube.h +0 -1
@@ -13,7 +13,6 @@* (easy to change) */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 1/* (more precisely a MPC5200 CPU) */ #define CONFIG_ICECUBE 1/* ... on IceCube board */
include/configs/MVBC_P.h +0 -1
@@ -13,7 +13,6 @@#include <version.h> -#define CONFIG_MPC5xxx 1#define CONFIG_MPC5200 1#ifndef CONFIG_SYS_TEXT_BASE
include/configs/MVSMR.h +0 -1
@@ -13,7 +13,6 @@#include <version.h> -#define CONFIG_MPC5xxx 1#define CONFIG_MPC5200 1#ifndef CONFIG_SYS_TEXT_BASE
include/configs/PM520.h +0 -1
@@ -14,7 +14,6 @@*/ #define CONFIG_MPC5200 -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_PM520 1/* ... on PM520 board */ #define CONFIG_SYS_TEXT_BASE 0xfff00000
include/configs/TB5200.h +0 -1
@@ -16,7 +16,6 @@* (easy to change) */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 1/* (more precisely an MPC5200 CPU) */ #define CONFIG_TQM5200 1/* ... on TQM5200 module */ #define CONFIG_TB5200 1/* ... on a TB5200 base board */
include/configs/TOP5200.h +0 -1
@@ -25,7 +25,6 @@* (easy to change) */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 1/* More exactly a MPC5200 */ #define CONFIG_TOP5200 1/* ... on TOP5200 board - we need this for FEC.C */
include/configs/TQM5200.h +0 -1
@@ -16,7 +16,6 @@* (easy to change) */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 1/* (more precisely an MPC5200 CPU) */ #define CONFIG_TQM5200 1/* ... on TQM5200 module */ #undef CONFIG_TQM5200_REV100/* define for revision 100 modules */
include/configs/Total5200.h +0 -1
@@ -24,7 +24,6 @@* (easy to change) */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 1/* (more precisely a MPC5200 CPU) */ #define CONFIG_TOTAL5200 1/* ... on Total5200 board */
include/configs/a3m071.h +0 -1
@@ -13,7 +13,6 @@*/ #define CONFIG_MPC5200 -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_A3M071 /* ... on A3M071 board */ #define CONFIG_SYS_TEXT_BASE 0x01000000/* boot low for 32 MiB boards */
include/configs/a4m072.h +0 -1
@@ -16,7 +16,6 @@* (easy to change) */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 1/* (more precisely a MPC5200 CPU) */ #define CONFIG_A4M072 1/* ... on A4M072 board */ #define CONFIG_MPC5200_DDR 1/* ... use DDR RAM */
include/configs/aev.h +0 -1
@@ -16,7 +16,6 @@* (easy to change) */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 1/* (more precisely an MPC5200 CPU) */ #define CONFIG_TQM5200 1/* ... on TQM5200 module */ #undef CONFIG_TQM5200_REV100/* define for revision 100 modules */
include/configs/canmb.h +0 -1
@@ -13,7 +13,6 @@* (easy to change) */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 1/* More exactly a MPC5200 */ #define CONFIG_CANMB 1/* ... on canmb board - we need this for FEC.C */
include/configs/cm5200.h +0 -1
@@ -11,7 +11,6 @@/* * High Level Configuration Options */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 1/* (more precisely an MPC5200 CPU) */ #define CONFIG_CM5200 1/* ... on CM5200 platform */
include/configs/cpci5200.h +0 -1
@@ -24,7 +24,6 @@*/ #define CONFIG_MPC5200 1/* This is an MPC5xxx CPU */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_ICECUBE 1/* ... on IceCube board */ #define CONFIG_CPCI5200 1/* ... on CPCI5200 board */ #define CONFIG_MPC5200_DDR 1/* ... use DDR RAM */
include/configs/digsy_mtc.h +0 -1
@@ -20,7 +20,6 @@* High Level Configuration Options */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 1/* (more precisely an MPC5200 CPU) */ #define CONFIG_DIGSY_MTC 1/* ... on InterControl digsyMTC board */
include/configs/galaxy5200.h +0 -1
@@ -23,7 +23,6 @@* High Level Configuration Options * (easy to change) */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 1/* (more precisely an MPC5200 CPU) */ #define CONFIG_SYS_MPC5XXX_CLKIN 33333333/* ... running at 33.333333MHz */
include/configs/hmi1001.h +0 -1
@@ -13,7 +13,6 @@* (easy to change) */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 1/* (more precisely an MPC5200 CPU) */ #define CONFIG_HMI1001 1/* HMI1001 board */
include/configs/inka4x0.h +0 -1
@@ -16,7 +16,6 @@* (easy to change) */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 1/* (more precisely an MPC5200 CPU) */ #define CONFIG_INKA4X0 1/* INKA4x0 board */
include/configs/ipek01.h +0 -1
@@ -16,7 +16,6 @@*/ #define CONFIG_MPC5200 -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPX5200 1/* ... on MPX5200 board */ #define CONFIG_MPC5200_DDR 1/* ... use DDR RAM */ #define CONFIG_IPEK01 /* Motherboard is ipek01 */
include/configs/jupiter.h +0 -1
@@ -13,7 +13,6 @@* (easy to change) */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 1/* especially an MPC5200 */ #define CONFIG_JUPITER 1/* ... on Jupiter board */
include/configs/manroland/mpc5200-common.h +0 -1
@@ -12,7 +12,6 @@* High Level Configuration Options * (easy to change) */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 1/* (more precisely an MPC5200 CPU) */ #define CONFIG_SYS_MPC5XXX_CLKIN 33000000/* ... running at 33.000000MHz */
include/configs/mcc200.h +0 -1
@@ -14,7 +14,6 @@*/ #define CONFIG_MPC5200 -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MCC200 1/* ... on MCC200 board */ /*
include/configs/mecp5200.h +0 -1
@@ -24,7 +24,6 @@*/ #define CONFIG_MPC5200 1/* This is an MPC5xxx CPU */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_ICECUBE 1/* ... on IceCube board */ #define CONFIG_MECP5200 1/* ... on MECP5200 board */ #define CONFIG_MPC5200_DDR 1/* ... use DDR RAM */
include/configs/motionpro.h +0 -1
@@ -15,7 +15,6 @@*/ /* CPU and board */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 1/* More exactly a MPC5200 */ #define CONFIG_MOTIONPRO 1/* ... on Promess Motion-PRO board */
include/configs/munices.h +0 -1
@@ -11,7 +11,6 @@* High Level Configuration Options * (easy to change) */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 1/* (more precisely an MPC5200 CPU) */ #define CONFIG_MPC5200_DDR 1/* (with DDR-SDRAM) */ #define CONFIG_MUNICES 1/* ... on MUNICes board */
include/configs/o2dnt-common.h +0 -1
@@ -16,7 +16,6 @@/* * High Level Configuration Options */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 #define CONFIG_SYS_MPC5XXX_CLKIN 33000000/* running at 33.000000MHz */
include/configs/pcm030.h +0 -1
@@ -20,7 +20,6 @@High Level Configuration Options (easy to change) -----------------------------------------------------------------------------*/ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 1/* (more precisely an MPC5200 CPU) */ #define CONFIG_MPC5200_DDR 1/* (with DDR-SDRAM) */ #define CONFIG_PHYCORE_MPC5200B_TINY 1/* phyCORE-MPC5200B -> */
include/configs/pf5200.h +0 -1
@@ -23,7 +23,6 @@*/ #define CONFIG_MPC5200 1/* This is an MPC5xxx CPU */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_ICECUBE 1/* ... on IceCube board */ #define CONFIG_PF5200 1/* ... on PF5200 board */ #define CONFIG_MPC5200_DDR 1/* ... use DDR RAM */
include/configs/v38b.h +0 -1
@@ -12,7 +12,6 @@* High Level Configuration Options * (easy to change) */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 1/* This is an MPC5200 CPU */ #define CONFIG_V38B 1/* ...on V38B board */
Signature · 1 line
1.8.3.2
PATCH v2 1/1 powerpc: mpc5xxx: remove redundant CONFIG_MPC5xxx definition
include/configs/BC3450.h line 27
Quoted 13 lines · Masahiro Yamada
include/configs/BC3450.h +0
-1@@ -22,7 +22,6 @@/* * High Level Configuration Options */ -#define CONFIG_MPC5xxx 1/* This is an MPC5xxx CPU */ #define CONFIG_MPC5200 1/* (more precisely a MPC5200 CPU) */ #define CONFIG_TQM5200 1/* ... on a TQM5200 module */
Haven't checked all of the patch, just by coincidence spotted this one. The removal of one of the preprocessor lines loses information in the right hand side comment. After the patch the remaining text looks odd.
virtually yours
Gerhard Sittig
Signature · 3 lines
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 v2 1/1 powerpc: mpc5xxx: remove redundant CONFIG_MPC5xxx definition
Hello Gerhard,
Quoted 11 lines
Quoted 6 lines
* High Level Configuration Options
*/
-#defineCONFIG_MPC5xxx1 /* This is an MPC5xxx CPU */
#defineCONFIG_MPC52001 /* (more precisely a MPC5200 CPU) */
#defineCONFIG_TQM52001 /* ... on a TQM5200 module */Haven't checked all of the patch, just by coincidence spotted this one. The removal of one of the preprocessor lines loses information in the right hand side comment. After the patch the remaining text looks odd.
Good find!
I posted v3.
I also checked the others and I think this is the only one to be fixed.
Best Regards
Masahiro Yamada