提交 acf02697 编写于 作者: J Jon Loeliger

include/configs: Use new CONFIG_CMD_* in various P* named board config files.

Signed-off-by: NJon Loeliger <jdl@freescale.com>
上级 e18a1061
...@@ -125,25 +125,28 @@ ...@@ -125,25 +125,28 @@
#define CONFIG_TIMESTAMP /* Print image info with timestamp */ #define CONFIG_TIMESTAMP /* Print image info with timestamp */
#define CONFIG_COMMANDS ( CONFIG_CMD_DFL | \
CFG_CMD_ASKENV | \ /*
CFG_CMD_DHCP | \ * Command line configuration.
CFG_CMD_PCI | \ */
CFG_CMD_ELF | \ #include <config_cmd_default.h>
CFG_CMD_MII | \
CFG_CMD_PING | \ #define CONFIG_CMD_ASKENV
CFG_CMD_UNIVERSE| \ #define CONFIG_CMD_DHCP
CFG_CMD_BSP ) #define CONFIG_CMD_PCI
#define CONFIG_CMD_ELF
/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */ #define CONFIG_CMD_MII
#include <cmd_confdefs.h> #define CONFIG_CMD_PING
#define CONFIG_CMD_UNIVERSE
#define CONFIG_CMD_BSP
/* /*
* Miscellaneous configurable options * Miscellaneous configurable options
*/ */
#define CFG_LONGHELP /* undef to save memory */ #define CFG_LONGHELP /* undef to save memory */
#define CFG_PROMPT "=> " /* Monitor Command Prompt */ #define CFG_PROMPT "=> " /* Monitor Command Prompt */
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
#define CFG_CBSIZE 1024 /* Console I/O Buffer Size */ #define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
#else #else
#define CFG_CBSIZE 256 /* Console I/O Buffer Size */ #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
...@@ -396,7 +399,7 @@ ...@@ -396,7 +399,7 @@
* Cache Configuration * Cache Configuration
*/ */
#define CFG_CACHELINE_SIZE 32 /* For all MPC74xx CPUs */ #define CFG_CACHELINE_SIZE 32 /* For all MPC74xx CPUs */
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
#define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */ #define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */
#endif #endif
......
...@@ -39,14 +39,26 @@ ...@@ -39,14 +39,26 @@
#define CONFIG_BAUDRATE 9600 #define CONFIG_BAUDRATE 9600
#define CONFIG_COMMANDS (CFG_CMD_MEMORY | CFG_CMD_LOADB | CFG_CMD_REGINFO | \
CFG_CMD_FLASH | CFG_CMD_LOADS | CFG_CMD_ENV | CFG_CMD_REGINFO | \
CFG_CMD_BDI | CFG_CMD_CONSOLE | CFG_CMD_RUN | CFG_CMD_BSP | \
CFG_CMD_IMI | CFG_CMD_EEPROM | CFG_CMD_IRQ | CFG_CMD_MISC \
)
/* This must be included AFTER the definition of CONFIG_COMMANDS (if any) */ /*
#include <cmd_confdefs.h> * Command line configuration.
*/
#define CONFIG_CMD_MEMORY
#define CONFIG_CMD_LOADB
#define CONFIG_CMD_REGINFO
#define CONFIG_CMD_FLASH
#define CONFIG_CMD_LOADS
#define CONFIG_CMD_ENV
#define CONFIG_CMD_REGINFO
#define CONFIG_CMD_BDI
#define CONFIG_CMD_CONSOLE
#define CONFIG_CMD_RUN
#define CONFIG_CMD_BSP
#define CONFIG_CMD_IMI
#define CONFIG_CMD_EEPROM
#define CONFIG_CMD_IRQ
#define CONFIG_CMD_MISC
#if 0 #if 0
#define CONFIG_BOOTDELAY -1 /* autoboot disabled */ #define CONFIG_BOOTDELAY -1 /* autoboot disabled */
...@@ -71,7 +83,7 @@ ...@@ -71,7 +83,7 @@
#define CFG_LONGHELP /* undef to save memory */ #define CFG_LONGHELP /* undef to save memory */
#define CFG_PROMPT "pati=> " /* Monitor Command Prompt */ #define CFG_PROMPT "pati=> " /* Monitor Command Prompt */
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
#define CFG_CBSIZE 1024 /* Console I/O Buffer Size */ #define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
#else #else
#define CFG_CBSIZE 256 /* Console I/O Buffer Size */ #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
......
...@@ -68,17 +68,20 @@ ...@@ -68,17 +68,20 @@
#define CONFIG_RTC_M48T35A 1 /* ST Electronics M48 timekeeper */ #define CONFIG_RTC_M48T35A 1 /* ST Electronics M48 timekeeper */
#define CONFIG_COMMANDS ( CONFIG_CMD_DFL | \
CFG_CMD_PCI | \ /*
CFG_CMD_IRQ | \ * Command line configuration.
CFG_CMD_ELF | \ */
CFG_CMD_DATE | \ #include <config_cmd_default.h>
CFG_CMD_I2C | \
CFG_CMD_BSP | \ #define CONFIG_CMD_PCI
CFG_CMD_EEPROM ) #define CONFIG_CMD_IRQ
#define CONFIG_CMD_ELF
/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */ #define CONFIG_CMD_DATE
#include <cmd_confdefs.h> #define CONFIG_CMD_I2C
#define CONFIG_CMD_BSP
#define CONFIG_CMD_EEPROM
#undef CONFIG_WATCHDOG /* watchdog disabled */ #undef CONFIG_WATCHDOG /* watchdog disabled */
...@@ -97,7 +100,7 @@ ...@@ -97,7 +100,7 @@
#define CFG_PROMPT_HUSH_PS2 "> " #define CFG_PROMPT_HUSH_PS2 "> "
#endif #endif
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
#define CFG_CBSIZE 1024 /* Console I/O Buffer Size */ #define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
#else #else
#define CFG_CBSIZE 256 /* Console I/O Buffer Size */ #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
...@@ -244,7 +247,7 @@ ...@@ -244,7 +247,7 @@
*/ */
#define CFG_DCACHE_SIZE 8192 /* For AMCC 405 CPUs */ #define CFG_DCACHE_SIZE 8192 /* For AMCC 405 CPUs */
#define CFG_CACHELINE_SIZE 32 /* ... */ #define CFG_CACHELINE_SIZE 32 /* ... */
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
#define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */ #define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */
#endif #endif
......
...@@ -122,22 +122,23 @@ ...@@ -122,22 +122,23 @@
#define CFG_NIOS_TMRCNT (CFG_NIOS_TMRMS * (CONFIG_SYS_CLK_FREQ/1000)) #define CFG_NIOS_TMRCNT (CFG_NIOS_TMRMS * (CONFIG_SYS_CLK_FREQ/1000))
#define CFG_HZ (CONFIG_SYS_CLK_FREQ/(CFG_NIOS_TMRCNT + 1)) #define CFG_HZ (CONFIG_SYS_CLK_FREQ/(CFG_NIOS_TMRCNT + 1))
/*------------------------------------------------------------------------
* COMMANDS /*
*----------------------------------------------------------------------*/ * Command line configuration.
#define CONFIG_COMMANDS (CFG_CMD_BDI | \ */
CFG_CMD_ECHO | \ #define CONFIG_CMD_BDI
CFG_CMD_ENV | \ #define CONFIG_CMD_ECHO
CFG_CMD_FLASH | \ #define CONFIG_CMD_ENV
CFG_CMD_IMI | \ #define CONFIG_CMD_FLASH
CFG_CMD_IRQ | \ #define CONFIG_CMD_IMI
CFG_CMD_LOADS | \ #define CONFIG_CMD_IRQ
CFG_CMD_LOADB | \ #define CONFIG_CMD_LOADS
CFG_CMD_MEMORY | \ #define CONFIG_CMD_LOADB
CFG_CMD_MISC | \ #define CONFIG_CMD_MEMORY
CFG_CMD_RUN | \ #define CONFIG_CMD_MISC
CFG_CMD_SAVES ) #define CONFIG_CMD_RUN
#include <cmd_confdefs.h> #define CONFIG_CMD_SAVES
/*------------------------------------------------------------------------ /*------------------------------------------------------------------------
* MISC * MISC
......
...@@ -59,24 +59,25 @@ ...@@ -59,24 +59,25 @@
#define CONFIG_MAC_PARTITION #define CONFIG_MAC_PARTITION
#define CONFIG_DOS_PARTITION #define CONFIG_DOS_PARTITION
#define CONFIG_COMMANDS (CONFIG_CMD_DFL | \
CFG_CMD_ASKENV | \ /*
CFG_CMD_BSP | \ * Command line configuration.
CFG_CMD_DATE | \ */
CFG_CMD_DHCP | \ #include <config_cmd_default.h>
CFG_CMD_DOC | \
CFG_CMD_ELF | \ #define CONFIG_CMD_ASKENV
CFG_CMD_NFS | \ #define CONFIG_CMD_BSP
CFG_CMD_PCI | \ #define CONFIG_CMD_DATE
CFG_CMD_SNTP ) #define CONFIG_CMD_DHCP
#define CONFIG_CMD_DOC
#define CONFIG_CMD_ELF
#define CONFIG_CMD_NFS
#define CONFIG_CMD_PCI
#define CONFIG_CMD_SNTP
#define CONFIG_PCI 1 #define CONFIG_PCI 1
#define CONFIG_PCI_PNP 1 /* PCI plug-and-play */ #define CONFIG_PCI_PNP 1 /* PCI plug-and-play */
/* This must be included AFTER the definition of CONFIG_COMMANDS (if any)
*/
#include <cmd_confdefs.h>
#define CFG_NAND_LEGACY #define CFG_NAND_LEGACY
/* /*
...@@ -223,7 +224,7 @@ ...@@ -223,7 +224,7 @@
* Cache Configuration * Cache Configuration
*/ */
#define CFG_CACHELINE_SIZE 32 #define CFG_CACHELINE_SIZE 32
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
# define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */ # define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */
#endif #endif
......
...@@ -59,26 +59,27 @@ ...@@ -59,26 +59,27 @@
#define CONFIG_MAC_PARTITION #define CONFIG_MAC_PARTITION
#define CONFIG_DOS_PARTITION #define CONFIG_DOS_PARTITION
#define CONFIG_COMMANDS (CONFIG_CMD_DFL | \
CFG_CMD_ASKENV | \ /*
CFG_CMD_BSP | \ * Command line configuration.
CFG_CMD_DATE | \ */
CFG_CMD_DHCP | \ #include <config_cmd_default.h>
CFG_CMD_DOC | \
CFG_CMD_ELF | \ #define CONFIG_CMD_ASKENV
CFG_CMD_NFS | \ #define CONFIG_CMD_BSP
CFG_CMD_PCI | \ #define CONFIG_CMD_DATE
CFG_CMD_SCSI | \ #define CONFIG_CMD_DHCP
CFG_CMD_SNTP ) #define CONFIG_CMD_DOC
#define CONFIG_CMD_ELF
#define CONFIG_CMD_NFS
#define CONFIG_CMD_PCI
#define CONFIG_CMD_SCSI
#define CONFIG_CMD_SNTP
#define CONFIG_PCI 1 #define CONFIG_PCI 1
#define CONFIG_PCI_PNP 1 /* PCI plug-and-play */ #define CONFIG_PCI_PNP 1 /* PCI plug-and-play */
/* This must be included AFTER the definition of CONFIG_COMMANDS (if any)
*/
#include <cmd_confdefs.h>
#define CFG_NAND_LEGACY #define CFG_NAND_LEGACY
/* /*
...@@ -225,7 +226,7 @@ ...@@ -225,7 +226,7 @@
* Cache Configuration * Cache Configuration
*/ */
#define CFG_CACHELINE_SIZE 32 #define CFG_CACHELINE_SIZE 32
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
# define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */ # define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */
#endif #endif
......
...@@ -40,33 +40,33 @@ ...@@ -40,33 +40,33 @@
***********************************************************/ ***********************************************************/
#define CONFIG_SYS_CLK_FREQ 33000000 /* external frequency to pll */ #define CONFIG_SYS_CLK_FREQ 33000000 /* external frequency to pll */
/***********************************************************
* Command definitions /*
***********************************************************/ * Command line configuration.
#define CONFIG_COMMANDS \ */
(CONFIG_CMD_DFL | \ #include <config_cmd_default.h>
CFG_CMD_IDE | \
CFG_CMD_DHCP | \ #define CONFIG_CMD_IDE
CFG_CMD_PCI | \ #define CONFIG_CMD_DHCP
CFG_CMD_CACHE | \ #define CONFIG_CMD_PCI
CFG_CMD_IRQ | \ #define CONFIG_CMD_CACHE
CFG_CMD_EEPROM | \ #define CONFIG_CMD_IRQ
CFG_CMD_I2C | \ #define CONFIG_CMD_EEPROM
CFG_CMD_REGINFO | \ #define CONFIG_CMD_I2C
CFG_CMD_FDC | \ #define CONFIG_CMD_REGINFO
CFG_CMD_SCSI | \ #define CONFIG_CMD_FDC
CFG_CMD_FAT | \ #define CONFIG_CMD_SCSI
CFG_CMD_DATE | \ #define CONFIG_CMD_FAT
CFG_CMD_ELF | \ #define CONFIG_CMD_DATE
CFG_CMD_USB | \ #define CONFIG_CMD_ELF
CFG_CMD_MII | \ #define CONFIG_CMD_USB
CFG_CMD_SDRAM | \ #define CONFIG_CMD_MII
CFG_CMD_DOC | \ #define CONFIG_CMD_SDRAM
CFG_CMD_PING | \ #define CONFIG_CMD_DOC
CFG_CMD_SAVES | \ #define CONFIG_CMD_PING
CFG_CMD_BSP ) #define CONFIG_CMD_SAVES
/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */ #define CONFIG_CMD_BSP
#include <cmd_confdefs.h>
#define CFG_NAND_LEGACY #define CFG_NAND_LEGACY
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
**********************************************************/ **********************************************************/
#define CFG_LONGHELP /* undef to save memory */ #define CFG_LONGHELP /* undef to save memory */
#define CFG_PROMPT "=> " /* Monitor Command Prompt */ #define CFG_PROMPT "=> " /* Monitor Command Prompt */
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
#define CFG_CBSIZE 1024 /* Console I/O Buffer Size */ #define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
#else #else
#define CFG_CBSIZE 256 /* Console I/O Buffer Size */ #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
*/ */
#define CFG_DCACHE_SIZE 8192 /* For AMCC 405 CPUs */ #define CFG_DCACHE_SIZE 8192 /* For AMCC 405 CPUs */
#define CFG_CACHELINE_SIZE 32 /* ... */ #define CFG_CACHELINE_SIZE 32 /* ... */
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
#define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */ #define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */
#endif #endif
...@@ -366,7 +366,7 @@ ...@@ -366,7 +366,7 @@
/************************************************************ /************************************************************
* Debug support * Debug support
************************************************************/ ************************************************************/
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
#define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */ #define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */
#define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */ #define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */
#endif #endif
......
...@@ -160,30 +160,32 @@ ...@@ -160,30 +160,32 @@
#define CONFIG_IPADDR 192.168.2.21 #define CONFIG_IPADDR 192.168.2.21
#define CONFIG_SERVERIP 192.168.2.16 #define CONFIG_SERVERIP 192.168.2.16
/*------------------------------------------------------------------------
* COMMANDS /*
*----------------------------------------------------------------------*/ * Command line configuration.
#define CONFIG_COMMANDS (CFG_CMD_BDI | \ */
CFG_CMD_DHCP | \
CFG_CMD_ECHO | \ #define CONFIG_CMD_BDI
CFG_CMD_ENV | \ #define CONFIG_CMD_DHCP
CFG_CMD_FLASH | \ #define CONFIG_CMD_ECHO
CFG_CMD_IMI | \ #define CONFIG_CMD_ENV
CFG_CMD_IRQ | \ #define CONFIG_CMD_FLASH
CFG_CMD_LOADS | \ #define CONFIG_CMD_IMI
CFG_CMD_LOADB | \ #define CONFIG_CMD_IRQ
CFG_CMD_MEMORY | \ #define CONFIG_CMD_LOADS
CFG_CMD_MISC | \ #define CONFIG_CMD_LOADB
CFG_CMD_NET | \ #define CONFIG_CMD_MEMORY
CFG_CMD_PING | \ #define CONFIG_CMD_MISC
CFG_CMD_RUN | \ #define CONFIG_CMD_NET
CFG_CMD_SAVES ) #define CONFIG_CMD_PING
#include <cmd_confdefs.h> #define CONFIG_CMD_RUN
#define CONFIG_CMD_SAVES
/*------------------------------------------------------------------------ /*------------------------------------------------------------------------
* COMPACT FLASH * COMPACT FLASH
*----------------------------------------------------------------------*/ *----------------------------------------------------------------------*/
#if (CONFIG_COMMANDS & CFG_CMD_IDE) #if defined(CONFIG_CMD_IDE)
#define CONFIG_IDE_PREINIT /* Implement id_preinit */ #define CONFIG_IDE_PREINIT /* Implement id_preinit */
#define CFG_IDE_MAXBUS 1 /* 1 IDE bus */ #define CFG_IDE_MAXBUS 1 /* 1 IDE bus */
#define CFG_IDE_MAXDEVICE 1 /* 1 drive per IDE bus */ #define CFG_IDE_MAXDEVICE 1 /* 1 drive per IDE bus */
...@@ -201,12 +203,12 @@ ...@@ -201,12 +203,12 @@
#define CFG_CF_POWER 0x00900890 /* CF Power FET PIO base*/ #define CFG_CF_POWER 0x00900890 /* CF Power FET PIO base*/
#define CFG_CF_ATASEL 0x009008a0 /* CF ATASEL PIO base */ #define CFG_CF_ATASEL 0x009008a0 /* CF ATASEL PIO base */
#endif /* CONFIG_COMMANDS & CFG_CMD_IDE */ #endif
/*------------------------------------------------------------------------ /*------------------------------------------------------------------------
* JFFS2 * JFFS2
*----------------------------------------------------------------------*/ *----------------------------------------------------------------------*/
#if (CONFIG_COMMANDS & CFG_CMD_JFFS2) #if defined(CONFIG_CMD_JFFS2)
#define CFG_JFFS_CUSTOM_PART /* board defined part */ #define CFG_JFFS_CUSTOM_PART /* board defined part */
#endif #endif
......
...@@ -61,19 +61,25 @@ ...@@ -61,19 +61,25 @@
#define CONFIG_PHY_CLK_FREQ EMAC_STACR_CLK_66MHZ /* 66 MHz OPB clock*/ #define CONFIG_PHY_CLK_FREQ EMAC_STACR_CLK_66MHZ /* 66 MHz OPB clock*/
#define CONFIG_COMMANDS ( CONFIG_CMD_DFL | \
CFG_CMD_DHCP | \ /*
CFG_CMD_PCI | \ * Command line configuration.
CFG_CMD_IRQ | \ */
CFG_CMD_IDE | \ #include <config_cmd_default.h>
CFG_CMD_FAT | \
CFG_CMD_ELF | \ #define CONFIG_CMD_DHCP
CFG_CMD_NAND | \ #define CONFIG_CMD_PCI
CFG_CMD_DATE | \ #define CONFIG_CMD_IRQ
CFG_CMD_I2C | \ #define CONFIG_CMD_IDE
CFG_CMD_MII | \ #define CONFIG_CMD_FAT
CFG_CMD_PING | \ #define CONFIG_CMD_ELF
CFG_CMD_EEPROM ) #define CONFIG_CMD_NAND
#define CONFIG_CMD_DATE
#define CONFIG_CMD_I2C
#define CONFIG_CMD_MII
#define CONFIG_CMD_PING
#define CONFIG_CMD_EEPROM
#define CONFIG_MAC_PARTITION #define CONFIG_MAC_PARTITION
#define CONFIG_DOS_PARTITION #define CONFIG_DOS_PARTITION
...@@ -83,9 +89,6 @@ ...@@ -83,9 +89,6 @@
#define CONFIG_AUTO_UPDATE 1 /* autoupdate via compactflash */ #define CONFIG_AUTO_UPDATE 1 /* autoupdate via compactflash */
#define CONFIG_AUTO_UPDATE_SHOW 1 /* use board show routine */ #define CONFIG_AUTO_UPDATE_SHOW 1 /* use board show routine */
/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
#include <cmd_confdefs.h>
#undef CONFIG_WATCHDOG /* watchdog disabled */ #undef CONFIG_WATCHDOG /* watchdog disabled */
#define CONFIG_RTC_MC146818 /* DS1685 is MC146818 compatible*/ #define CONFIG_RTC_MC146818 /* DS1685 is MC146818 compatible*/
...@@ -104,7 +107,7 @@ ...@@ -104,7 +107,7 @@
#define CFG_PROMPT_HUSH_PS2 "> " #define CFG_PROMPT_HUSH_PS2 "> "
#endif #endif
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
#define CFG_CBSIZE 1024 /* Console I/O Buffer Size */ #define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
#else #else
#define CFG_CBSIZE 256 /* Console I/O Buffer Size */ #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
...@@ -331,7 +334,7 @@ ...@@ -331,7 +334,7 @@
#define CFG_DCACHE_SIZE 16384 /* For AMCC 405 CPUs, older 405 ppc's */ #define CFG_DCACHE_SIZE 16384 /* For AMCC 405 CPUs, older 405 ppc's */
/* have only 8kB, 16kB is save here */ /* have only 8kB, 16kB is save here */
#define CFG_CACHELINE_SIZE 32 /* ... */ #define CFG_CACHELINE_SIZE 32 /* ... */
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
#define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */ #define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */
#endif #endif
......
...@@ -40,11 +40,6 @@ ...@@ -40,11 +40,6 @@
#define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */ #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */
#define BOOTFLAG_WARM 0x02 /* Software reboot */ #define BOOTFLAG_WARM 0x02 /* Software reboot */
#define CFG_CACHELINE_SIZE 32 /* For MPC5xxx CPUs */
#if (CONFIG_COMMANDS & CFG_CMD_KGDB)
# define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */
#endif
/* /*
* Serial console configuration * Serial console configuration
*/ */
...@@ -77,12 +72,6 @@ ...@@ -77,12 +72,6 @@
#define CFG_RX_ETH_BUFFER 8 /* use 8 rx buffer on eepro100 */ #define CFG_RX_ETH_BUFFER 8 /* use 8 rx buffer on eepro100 */
#undef CONFIG_NS8382X #undef CONFIG_NS8382X
#define ADD_PCI_CMD CFG_CMD_PCI
#else /* MPC5100 */
#define ADD_PCI_CMD 0 /* no CFG_CMD_PCI */
#endif #endif
/* Partitions */ /* Partitions */
...@@ -91,39 +80,39 @@ ...@@ -91,39 +80,39 @@
/* USB */ /* USB */
#if 1 #if 1
#define CONFIG_USB_OHCI #define CONFIG_USB_OHCI
#define ADD_USB_CMD CFG_CMD_USB | CFG_CMD_FAT
#define CONFIG_USB_STORAGE #define CONFIG_USB_STORAGE
#else
#define ADD_USB_CMD 0
#endif #endif
#if defined(CONFIG_BOOT_ROM) #if !defined(CONFIG_BOOT_ROM)
#define ADD_DOC_CMD 0
#else
#define ADD_DOC_CMD CFG_CMD_DOC
/* DoC requires legacy NAND for now */ /* DoC requires legacy NAND for now */
#define CFG_NAND_LEGACY #define CFG_NAND_LEGACY
#endif #endif
/* /*
* Supported commands * Command line configuration.
*/ */
#define CONFIG_COMMANDS (CONFIG_CMD_DFL | \ #include <config_cmd_default.h>
ADD_DOC_CMD | \
ADD_PCI_CMD | \ #define CONFIG_CMD_BEDBUG
ADD_USB_CMD | \ #define CONFIG_CMD_DATE
CFG_CMD_BEDBUG | \ #define CONFIG_CMD_DHCP
CFG_CMD_DATE | \ #define CONFIG_CMD_EEPROM
CFG_CMD_DHCP | \ #define CONFIG_CMD_FAT
CFG_CMD_EEPROM | \ #define CONFIG_CMD_I2C
CFG_CMD_FAT | \ #define CONFIG_CMD_IDE
CFG_CMD_I2C | \ #define CONFIG_CMD_NFS
CFG_CMD_IDE | \ #define CONFIG_CMD_SNTP
CFG_CMD_NFS | \ #define CONFIG_CMD_USB
CFG_CMD_SNTP )
#if !defined(CONFIG_BOOT_ROM)
/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */ #define CONFIG_CMD_DOC
#include <cmd_confdefs.h> #endif
#if defined(CONFIG_MPC5200)
#define CONFIG_CMD_PCI
#endif
/* /*
* Autobooting * Autobooting
...@@ -294,7 +283,7 @@ ...@@ -294,7 +283,7 @@
*/ */
#define CFG_LONGHELP /* undef to save memory */ #define CFG_LONGHELP /* undef to save memory */
#define CFG_PROMPT "=> " /* Monitor Command Prompt */ #define CFG_PROMPT "=> " /* Monitor Command Prompt */
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
#define CFG_CBSIZE 1024 /* Console I/O Buffer Size */ #define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
#else #else
#define CFG_CBSIZE 256 /* Console I/O Buffer Size */ #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
...@@ -310,6 +299,11 @@ ...@@ -310,6 +299,11 @@
#define CFG_HZ 1000 /* decrementer freq: 1 ms ticks */ #define CFG_HZ 1000 /* decrementer freq: 1 ms ticks */
#define CFG_CACHELINE_SIZE 32 /* For MPC5xxx CPUs */
#if defined(CONFIG_CMD_KGDB)
# define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */
#endif
/* /*
* Various low-level settings * Various low-level settings
*/ */
......
...@@ -154,31 +154,25 @@ ...@@ -154,31 +154,25 @@
#define CONFIG_BOOTP_MASK (CONFIG_BOOTP_DEFAULT|CONFIG_BOOTP_BOOTFILESIZE) #define CONFIG_BOOTP_MASK (CONFIG_BOOTP_DEFAULT|CONFIG_BOOTP_BOOTFILESIZE)
/*
* Command line configuration.
*/
#include <config_cmd_default.h>
#define CONFIG_CMD_BEDBUG
#define CONFIG_CMD_DATE
#define CONFIG_CMD_DHCP
#define CONFIG_CMD_DOC
#define CONFIG_CMD_EEPROM
#define CONFIG_CMD_I2C
#define CONFIG_CMD_NFS
#define CONFIG_CMD_SNTP
#ifdef CONFIG_PCI #ifdef CONFIG_PCI
#define CONFIG_COMMANDS (CONFIG_CMD_DFL | \ #define CONFIG_CMD_PCI
CFG_CMD_BEDBUG | \ #endif
CFG_CMD_DATE | \
CFG_CMD_DHCP | \
CFG_CMD_DOC | \
CFG_CMD_EEPROM | \
CFG_CMD_I2C | \
CFG_CMD_NFS | \
CFG_CMD_PCI | \
CFG_CMD_SNTP )
#else /* ! PCI */
#define CONFIG_COMMANDS (CONFIG_CMD_DFL | \
CFG_CMD_BEDBUG | \
CFG_CMD_DATE | \
CFG_CMD_DHCP | \
CFG_CMD_DOC | \
CFG_CMD_EEPROM | \
CFG_CMD_I2C | \
CFG_CMD_NFS | \
CFG_CMD_SNTP )
#endif /* CONFIG_PCI */
/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
#include <cmd_confdefs.h>
#define CFG_NAND_LEGACY #define CFG_NAND_LEGACY
...@@ -197,7 +191,7 @@ ...@@ -197,7 +191,7 @@
*/ */
#define CFG_LONGHELP /* undef to save memory */ #define CFG_LONGHELP /* undef to save memory */
#define CFG_PROMPT "=> " /* Monitor Command Prompt */ #define CFG_PROMPT "=> " /* Monitor Command Prompt */
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
#define CFG_CBSIZE 1024 /* Console I/O Buffer Size */ #define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
#else #else
#define CFG_CBSIZE 256 /* Console I/O Buffer Size */ #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
...@@ -345,7 +339,7 @@ ...@@ -345,7 +339,7 @@
* Cache Configuration * Cache Configuration
*/ */
#define CFG_CACHELINE_SIZE 32 /* For MPC8260 CPU */ #define CFG_CACHELINE_SIZE 32 /* For MPC8260 CPU */
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
# define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */ # define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */
#endif #endif
......
...@@ -154,31 +154,25 @@ ...@@ -154,31 +154,25 @@
#define CONFIG_BOOTP_MASK (CONFIG_BOOTP_DEFAULT|CONFIG_BOOTP_BOOTFILESIZE) #define CONFIG_BOOTP_MASK (CONFIG_BOOTP_DEFAULT|CONFIG_BOOTP_BOOTFILESIZE)
/*
* Command line configuration.
*/
#include <config_cmd_default.h>
#define CONFIG_CMD_BEDBUG
#define CONFIG_CMD_DATE
#define CONFIG_CMD_DHCP
#define CONFIG_CMD_DOC
#define CONFIG_CMD_EEPROM
#define CONFIG_CMD_I2C
#define CONFIG_CMD_NFS
#define CONFIG_CMD_SNTP
#ifdef CONFIG_PCI #ifdef CONFIG_PCI
#define CONFIG_COMMANDS (CONFIG_CMD_DFL | \ #define CONFIG_CMD_PCI
CFG_CMD_BEDBUG | \ #endif
CFG_CMD_DATE | \
CFG_CMD_DHCP | \
CFG_CMD_DOC | \
CFG_CMD_EEPROM | \
CFG_CMD_I2C | \
CFG_CMD_NFS | \
CFG_CMD_PCI | \
CFG_CMD_SNTP )
#else /* ! PCI */
#define CONFIG_COMMANDS (CONFIG_CMD_DFL | \
CFG_CMD_BEDBUG | \
CFG_CMD_DATE | \
CFG_CMD_DHCP | \
CFG_CMD_DOC | \
CFG_CMD_EEPROM | \
CFG_CMD_I2C | \
CFG_CMD_NFS | \
CFG_CMD_SNTP )
#endif /* CONFIG_PCI */
/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
#include <cmd_confdefs.h>
/* /*
* Disk-On-Chip configuration * Disk-On-Chip configuration
...@@ -196,7 +190,7 @@ ...@@ -196,7 +190,7 @@
*/ */
#define CFG_LONGHELP /* undef to save memory */ #define CFG_LONGHELP /* undef to save memory */
#define CFG_PROMPT "=> " /* Monitor Command Prompt */ #define CFG_PROMPT "=> " /* Monitor Command Prompt */
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
#define CFG_CBSIZE 1024 /* Console I/O Buffer Size */ #define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
#else #else
#define CFG_CBSIZE 256 /* Console I/O Buffer Size */ #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
...@@ -338,7 +332,7 @@ ...@@ -338,7 +332,7 @@
* Cache Configuration * Cache Configuration
*/ */
#define CFG_CACHELINE_SIZE 32 /* For MPC8260 CPU */ #define CFG_CACHELINE_SIZE 32 /* For MPC8260 CPU */
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
# define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */ # define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */
#endif #endif
......
...@@ -63,25 +63,28 @@ ...@@ -63,25 +63,28 @@
#define CONFIG_NETCONSOLE /* include NetConsole support */ #define CONFIG_NETCONSOLE /* include NetConsole support */
#define CONFIG_COMMANDS ( CONFIG_CMD_DFL | \
CFG_CMD_BSP | \ /*
CFG_CMD_PCI | \ * Command line configuration.
CFG_CMD_IRQ | \ */
CFG_CMD_ELF | \ #include <config_cmd_default.h>
CFG_CMD_DATE | \
CFG_CMD_JFFS2 | \ #define CONFIG_CMD_BSP
CFG_CMD_MII | \ #define CONFIG_CMD_PCI
CFG_CMD_I2C | \ #define CONFIG_CMD_IRQ
CFG_CMD_PING | \ #define CONFIG_CMD_ELF
CFG_CMD_UNIVERSE | \ #define CONFIG_CMD_DATE
CFG_CMD_EEPROM ) #define CONFIG_CMD_JFFS2
#define CONFIG_CMD_MII
#define CONFIG_CMD_I2C
#define CONFIG_CMD_PING
#define CONFIG_CMD_UNIVERSE
#define CONFIG_CMD_EEPROM
#define CONFIG_MAC_PARTITION #define CONFIG_MAC_PARTITION
#define CONFIG_DOS_PARTITION #define CONFIG_DOS_PARTITION
/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
#include <cmd_confdefs.h>
#undef CONFIG_WATCHDOG /* watchdog disabled */ #undef CONFIG_WATCHDOG /* watchdog disabled */
#define CONFIG_RTC_MC146818 /* DS1685 is MC146818 compatible*/ #define CONFIG_RTC_MC146818 /* DS1685 is MC146818 compatible*/
...@@ -100,7 +103,7 @@ ...@@ -100,7 +103,7 @@
#define CFG_PROMPT_HUSH_PS2 "> " #define CFG_PROMPT_HUSH_PS2 "> "
#endif #endif
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
#define CFG_CBSIZE 1024 /* Console I/O Buffer Size */ #define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
#else #else
#define CFG_CBSIZE 256 /* Console I/O Buffer Size */ #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
...@@ -263,7 +266,7 @@ ...@@ -263,7 +266,7 @@
#define CFG_DCACHE_SIZE 16384 /* For AMCC 405 CPUs, older 405 ppc's */ #define CFG_DCACHE_SIZE 16384 /* For AMCC 405 CPUs, older 405 ppc's */
/* have only 8kB, 16kB is save here */ /* have only 8kB, 16kB is save here */
#define CFG_CACHELINE_SIZE 32 /* ... */ #define CFG_CACHELINE_SIZE 32 /* ... */
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
#define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */ #define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */
#endif #endif
......
...@@ -42,15 +42,20 @@ ...@@ -42,15 +42,20 @@
#define CONFIG_CONS_INDEX 1 #define CONFIG_CONS_INDEX 1
#define REMOVE_COMMANDS ( CFG_CMD_AUTOSCRIPT | \ /*
CFG_CMD_LOADS | \ * Command line configuration.
CFG_CMD_ENV | \ */
CFG_CMD_FLASH | \ #include <config_cmd_default.h>
CFG_CMD_IMLS )
#define CONFIG_CMD_PCI
#define CONFIG_CMD_BSP
#undef CONFIG_CMD_AUTOSCRIPT
#undef CONFIG_CMD_LOADS
#undef CONFIG_CMD_ENV
#undef CONFIG_CMD_FLASH
#undef CONFIG_CMD_IMLS
#define CONFIG_COMMANDS ( (CONFIG_CMD_DFL & ~REMOVE_COMMANDS) |\
CFG_CMD_PCI |\
CFG_CMD_BSP)
#define CONFIG_BAUDRATE 19200 /* console baudrate */ #define CONFIG_BAUDRATE 19200 /* console baudrate */
...@@ -82,10 +87,6 @@ ...@@ -82,10 +87,6 @@
"loadp 200000; bootm" "loadp 200000; bootm"
#endif #endif
/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
#include <cmd_confdefs.h>
/* /*
* Miscellaneous configurable options * Miscellaneous configurable options
*/ */
...@@ -287,7 +288,7 @@ ...@@ -287,7 +288,7 @@
* Cache Configuration * Cache Configuration
*/ */
#define CFG_CACHELINE_SIZE 32 /* For MPC8240 CPU */ #define CFG_CACHELINE_SIZE 32 /* For MPC8240 CPU */
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
# define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */ # define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */
#endif #endif
......
...@@ -113,26 +113,29 @@ ...@@ -113,26 +113,29 @@
#endif #endif
#define CONFIG_PHY_CLK_FREQ EMAC_STACR_CLK_66MHZ #define CONFIG_PHY_CLK_FREQ EMAC_STACR_CLK_66MHZ
#define CONFIG_COMMANDS ( CONFIG_CMD_DFL | \
CFG_CMD_DATE | \ /*
CFG_CMD_DHCP | \ * Command line configuration.
CFG_CMD_ELF | \ */
CFG_CMD_EEPROM | \ #include <config_cmd_default.h>
CFG_CMD_I2C | \
CFG_CMD_IRQ | \ #define CONFIG_CMD_DATE
CFG_CMD_JFFS2 | \ #define CONFIG_CMD_DHCP
CFG_CMD_MII | \ #define CONFIG_CMD_ELF
CFG_CMD_NAND | \ #define CONFIG_CMD_EEPROM
CFG_CMD_NFS | \ #define CONFIG_CMD_I2C
CFG_CMD_PCI | \ #define CONFIG_CMD_IRQ
CFG_CMD_SNTP ) #define CONFIG_CMD_JFFS2
#define CONFIG_CMD_MII
#define CONFIG_CMD_NAND
#define CONFIG_CMD_NFS
#define CONFIG_CMD_PCI
#define CONFIG_CMD_SNTP
#define CONFIG_MAC_PARTITION #define CONFIG_MAC_PARTITION
#define CONFIG_DOS_PARTITION #define CONFIG_DOS_PARTITION
/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
#include <cmd_confdefs.h>
#undef CONFIG_WATCHDOG /* watchdog disabled */ #undef CONFIG_WATCHDOG /* watchdog disabled */
#define CONFIG_RTC_M41T11 1 /* uses a M41T00 RTC */ #define CONFIG_RTC_M41T11 1 /* uses a M41T00 RTC */
...@@ -162,7 +165,7 @@ ...@@ -162,7 +165,7 @@
#define CFG_PROMPT_HUSH_PS2 "> " #define CFG_PROMPT_HUSH_PS2 "> "
#endif #endif
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
#define CFG_CBSIZE 1024 /* Console I/O Buffer Size */ #define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
#else #else
#define CFG_CBSIZE 256 /* Console I/O Buffer Size */ #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
...@@ -446,7 +449,7 @@ ...@@ -446,7 +449,7 @@
#define CFG_DCACHE_SIZE 16384 /* For AMCC 405 CPUs, older 405 ppc's */ #define CFG_DCACHE_SIZE 16384 /* For AMCC 405 CPUs, older 405 ppc's */
/* have only 8kB, 16kB is save here */ /* have only 8kB, 16kB is save here */
#define CFG_CACHELINE_SIZE 32 /* ... */ #define CFG_CACHELINE_SIZE 32 /* ... */
#if (CONFIG_COMMANDS & CFG_CMD_KGDB) #if defined(CONFIG_CMD_KGDB)
#define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */ #define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册