Merge branch 'testing' into working
authorAndy Fleming <afleming@freescale.com>
Fri, 3 Aug 2007 07:23:23 +0000 (02:23 -0500)
committerAndrew Fleming-AFLEMING <afleming@freescale.com>
Fri, 3 Aug 2007 07:23:23 +0000 (02:23 -0500)
Conflicts:

CHANGELOG
fs/fat/fat.c
include/configs/MPC8560ADS.h
include/configs/pcs440ep.h
net/eth.c

19 files changed:
1  2 
CHANGELOG
Makefile
README
common/cmd_doc.c
common/cmd_ide.c
common/cmd_nand.c
common/cmd_net.c
common/cmd_reiser.c
disk/part.c
drivers/tsec.c
fs/fat/fat.c
include/configs/MPC8540ADS.h
include/configs/MPC8560ADS.h
include/configs/lwmon5.h
include/configs/pcs440ep.h
include/configs/sequoia.h
include/configs/stxssa.h
lib_ppc/board.c
net/eth.c

diff --combined CHANGELOG
+++ b/CHANGELOG
+ commit dca3b3d6d6396b67e5e84af53452164923c73443
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:33:46 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in various [v-z]* named board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 6c18eb9804b525f3e4f3bb3d014dd69a200d9fa7
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:33:38 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in various t* and u* named board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 46da1e96b7db14f4fcd2c92544e7c0862024bc76
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:33:30 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in various s* named board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 90cc3eb6d2be856d9ddd81436de9cf343bc6b5c8
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:33:23 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in various q* and r* named board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 26a34560d56a9df5bc2ae23525d9229736134757
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:33:17 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in various p* named board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit a5cb23092a7d31490a33d4ec871468b63babfa3c
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:33:13 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in various o* named board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 929a2bfd142737003a8fc32e1b86e1f2c1850257
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:33:07 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in various n* named board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 5dc11a511960d490f7f01ffd746edfe6277f99b0
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:33:01 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in various m* named board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 9bbb1c0820c1fbd3811ab6ee4ba0f6c6f76b27e4
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:32:57 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in various l* named board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit bc234c129fa04fb9fa33530930e5cbc6084cd47a
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:32:51 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in various j* and k* named board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 1d2c6bc491969f8d8fb34c8e30e8bea7a2af9c31
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:32:32 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in various i* named board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 48d5d102a2f2e619c92050b9aedbb69689185bc0
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:32:25 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in various h* named board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 72eb0efaed7048afcc61fc6f0085c49394b5dc36
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:32:19 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in various g* named board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 1bec3d3002d3bbbae6f2468a0f7376db1120d33e
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:32:10 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in various e* named board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit ab999ba1b31ebe78dd16374394a55d7c6e5aa6e4
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:32:03 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in various d* named board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 37e4f24b87fa255ae456d193b7cd23c18dd1d56b
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:31:56 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in various c* named board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit ba2351f9d1e841bd00ea6dad1e3c16d0259ad264
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:31:49 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in various b* named board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 0b361c916617aff79e647b40f0e43361e0bbaccf
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:31:42 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in various a* named board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit b730cda82e362df6a22f4c59c0a9b97e885b1014
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:31:35 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in mpc5xx board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit d794cfefead5fc177cf4f41164e80382e9c9484a
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:31:15 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in various 5200 board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit ef0df52ab49eea4a30c15087fd27d54c1d946f2c
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:31:07 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in STx board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 866e3089bfc826bb4dc74637f8aad87a3bab79fc
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:30:58 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in sbc* board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 2694690e285acaa34922f55f4b5ae030da60c55a
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:30:50 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in TQM board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 1cc4c458329765b58e584a19821e796b3c10e976
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:30:28 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in 82xx board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 8ea5499afdaba0acf60923dd99001c399d4a7c8e
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jul 4 22:30:06 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in 83xx board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit b24629fa377214d63bb40d1360e354b6d3e4af56
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jun 13 13:23:15 2007 -0500
+     mpc86xx: Remove old CFG_CMD_* references.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 46175d9764da129bb4fd341cd2554dc7d55f5b2a
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jun 13 13:22:54 2007 -0500
+     Add MPC8568MDS to MAKEALL 85xx target.
+     It was missing from the original port submission.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 2835e518c969e5124ba1174eef3e8375e12fa7d5
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jun 13 13:22:08 2007 -0500
+     include/configs: Use new CONFIG_CMD_* in 85xx board config files.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 56b304ac2091689506088a9ae67f63fd6300cf16
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Wed Jun 13 13:21:37 2007 -0500
+     Fix #if typo in CONFIG_CMD_* changes.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 6810a34677dbc446334f5e451f1682426dd33b49
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:17:28 2007 -0600
+     Fix Makefile to use $(MKCONFIG) macro for all board ports
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit 90b1b2d69b9396ff2f01165ebc16c9a594eb5926
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:17:28 2007 -0600
+     Fix Makefile to use $(MKCONFIG) macro for all board ports
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit 057004f4a4863554d56cc56268bfa7c7d9738e27
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:34:49 2007 -0600
+     Correct fixup relocation for mpc83xx
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit 5af61b2f4b838a05f79be274f3e5a66edd2d9c96
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:34:44 2007 -0600
+     Correct fixup relocation for mpc8260
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit f3a52fe05923935db86985daf9438e2f70ac39aa
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:34:39 2007 -0600
+     Correct fixup relocation for mpc824x
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit a85dd254c0577fca13627c46e93fc2ad4c4f1f00
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:34:34 2007 -0600
+     Correct fixup relocation for mpc8220
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit 6f7576b20ecf0d040c3ac3b032b5cbc860e38a90
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:34:29 2007 -0600
+     Correct fixup relocation for MPC5xxx
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit 3649cd99ba815b6601868735765602f00ef3692b
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:34:24 2007 -0600
+     Correct relocation fixup for mpc5xx
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit f82b3b6304b620ef7e28bfaa1ea887a2ad2fa325
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:34:19 2007 -0600
+     Don't set gd->reloc_off if relocation of .fixup works correctly
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit e1a6144c32dc7de73bcdd33995de0148cbd0bd28
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:34:14 2007 -0600
+     Remove obsolete mpc83xx linker scripts
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit 17e32fc3908bf7089d3f16fc82a1c3ae674dd65b
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:34:09 2007 -0600
+     Consolidate mpc8260 linker scripts
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit af7d38b393690d7eeaf418ac85a1e831a50d5fd0
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:34:04 2007 -0600
+     Remove obsolete mpc824x linker scripts
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit f94a3aecebc40ca0939c7d66d010009cf51be9e2
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:33:59 2007 -0600
+     Remove obsolete mpc824x linker scripts (3 of 4)
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit a71c084f3ac7fedf144537db2b2da47323068833
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:33:53 2007 -0600
+     Remove obsolete mpc824x linker scripts (2 of 4)
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit f670a15468d1365241d40022b9408e1004181f5e
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:33:48 2007 -0600
+     Remove obsolete mpc824x linker scripts (1 of 4)
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit 09555bd45a04c0e54f172528d21bc18896550d28
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:33:43 2007 -0600
+     Remove obsolete mpc8220 linker scripts
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit 5efb992f046e51225c93d52f80fecbe433abd789
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:33:38 2007 -0600
+     Remove obsolete mpc5xxx linker scripts (3 of 3)
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit 07c13dfef65b31647e69d8b61daa1eec598add1a
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:33:33 2007 -0600
+     Remove obsolete mpc5xxx linker scripts (2 of 3)
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit b4f67513a624ce85866c66c575bd2d9d7977d7f0
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:33:28 2007 -0600
+     Remove obsolete mpc5xxx linker scripts (1 of 3)
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit b7d8e05f8675249b5f208aa73babeed384a4519d
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:33:23 2007 -0600
+     Remove obsolete mpc5xx linker scripts
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit 416a0b6d40f6eba3a2fc547253c16bda28d922f7
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:33:18 2007 -0600
+     Consolidate mpc83xx linker scripts
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit 5fc59175b92883ed5d2666a04e6bc49e70a4a365
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:33:13 2007 -0600
+     Consolidate mpc8260 linker scripts
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit 737f9eb02d7335df2b3e4d7a4d3348784d1da207
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:33:08 2007 -0600
+     Consolidate mpc824x linker scripts
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit 9c757b789a59a855db57b448dd825329c4e9c4a0
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:33:03 2007 -0600
+     Consolidate mpc8220 linker scripts
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit d181c9a15cd41863fe24840d17848429f27d3c8c
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:32:58 2007 -0600
+     Consolidate mpc5xxx linker scripts
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
+ commit 287ac924adb7291bebe5086652a362a30ab28b13
+ Author: Grant Likely <grant.likely@secretlab.ca>
+ Date: Tue Jul 3 00:32:53 2007 -0600
+     Consolidate mpc5xx linker scripts
+     Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
 +commit f1152f8c28db4a22087c21c618a3f7baa48e9a4f
 +Author: Wolfgang Denk <wd@denx.de>
 +Date: Fri Jul 6 02:50:19 2007 +0200
 +
 +    Code cleanup and default config update for STC GP3 SSA board.
 +
 +    Signed-off-by: Wolfgang Denk <wd@denx.de>
 +
+ commit 52b8704d0245e589f86d462e9ec25aeb7ecbbbdd
+ Author: Wolfgang Denk <wd@denx.de>
+ Date: Wed Jul 4 00:43:53 2007 +0200
+     Fix a few file permission problems.
+     Signed-off-by: Wolfgang Denk <wd@denx.de>
 +commit b44896215a09c60fa40cae906f7ed207bbc2c492
 +Author: Sergei Poselenov <sposelenov@emcraft.com>
 +Date: Thu Jul 5 08:17:37 2007 +0200
 +
 +    Merged POST framework with the current TOT.
 +
 +    Signed-off-by: Sergei Poselenov <sposelenov@emcraft.com>
 +
+ commit 78e0cf2de7be7f1eaeeb622eb61fd50e4d5e205c
+ Author: Wolfgang Denk <wd@denx.de>
+ Date: Wed Jul 4 00:38:38 2007 +0200
+     Minor coding style cleanup. Rebuild CHANGELOG file.
+ commit 2f9c19e496acb6bb50d9299e1aab377625d48c38
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Mon Jun 11 19:03:44 2007 -0500
+     configs/ mpc86xx: Rewrite command line options using new CONFIG_CMD-* style.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
 +commit f780b83316d9af1f61d71cc88b1917b387b9b995
 +Author: Niklaus Giger <niklausgiger@gmx.ch>
 +Date: Wed Jun 27 18:11:38 2007 +0200
 +
 +    resubmit: ppc4xx: Remove sequoia/sequioa.h. Cleanup ppc440.h for PPC440EPX
 +
 +    Signed-off-by: Niklaus Giger <niklaus.giger@nestal.com>
 +
+ commit 602ad3b33d9ceef83dbab46be68646d645d637ee
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Mon Jun 11 19:03:39 2007 -0500
+     README: Rewrite command line config to use CONFIG_CMD_* names.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
 +commit 04e6c38b766eaa2f3287561563c9e215e0c3a0d4
 +Author: Stefan Roese <sr@denx.de>
 +Date: Wed Jul 4 10:06:30 2007 +0200
 +
 +    ppc4xx: Update lwmon5 board
 +
 +    - Add optional ECC generation routine to preserve existing
 +      RAM values. This is needed for the Linux log-buffer support
 +    - Add optional DDR2 setup with CL=4
 +    - GPIO50 not used anymore
 +    - Lime register setup added
 +
 +    Signed-off-by: Stefan Roese <sr@denx.de>
 +
+ commit 72a074cec68e5bad60d63206c050974e08afd804
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Mon Jun 11 19:03:34 2007 -0500
+     include/ non-config: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
+     This is a compatibility step that allows both the older form
+     and the new form to co-exist for a while until the older can
+     be removed entirely.
+     All transformations are of the form:
+     Before:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
+     After:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 5fcf543e0b6628c76ff48705b1b0566bfd11507b
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Mon Jun 11 19:03:28 2007 -0500
+     tools/ : Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
+     This is a compatibility step that allows both the older form
+     and the new form to co-exist for a while until the older can
+     be removed entirely.
+     All transformations are of the form:
+     Before:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
+     After:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 9107ebe0d352420895ab69b715697bdebc8caf50
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Mon Jun 11 19:03:23 2007 -0500
+     board/[k-z]*: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
+     This is a compatibility step that allows both the older form
+     and the new form to co-exist for a while until the older can
+     be removed entirely.
+     All transformations are of the form:
+     Before:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
+     After:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 5e378003d592ea828ec69d6defcd4de79096dd5c
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Mon Jun 11 19:03:19 2007 -0500
+     board/[Ma-i]*: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
+     This is a compatibility step that allows both the older form
+     and the new form to co-exist for a while until the older can
+     be removed entirely.
+     All transformations are of the form:
+     Before:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
+     After:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 737184114ec9c9e0ab94d6713536126073bd2472
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Mon Jun 11 19:03:15 2007 -0500
+     cpu/ non-mpc*: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
+     This is a compatibility step that allows both the older form
+     and the new form to co-exist for a while until the older can
+     be removed entirely.
+     All transformations are of the form:
+     Before:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
+     After:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit f48070fe5fe440dfb5ee5268c920de70e48ea327
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Mon Jun 11 19:03:08 2007 -0500
+     cpu/mpc*/ : Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
+     This is a compatibility step that allows both the older form
+     and the new form to co-exist for a while until the older can
+     be removed entirely.
+     All transformations are of the form:
+     Before:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
+     After:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 0c505db0a0dc1f670b13ce3b4d3fbf1ec5b3cbd2
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Mon Jun 11 19:03:03 2007 -0500
+     lib_*/: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
+     This is a compatibility step that allows both the older form
+     and the new form to co-exist for a while until the older can
+     be removed entirely.
+     All transformations are of the form:
+     Before:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
+     After:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 73f032021ec5f13cda8faa4e34b6de80960eb86f
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Mon Jun 11 19:02:58 2007 -0500
+     lib_ppc/: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
+     This is a compatibility step that allows both the older form
+     and the new form to co-exist for a while until the older can
+     be removed entirely.
+     All transformations are of the form:
+     Before:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
+     After:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 98b79003c21c2578206003256de4e781d6b36ca8
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Mon Jun 11 19:02:53 2007 -0500
+     rtc/: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
+     This is a compatibility step that allows both the older form
+     and the new form to co-exist for a while until the older can
+     be removed entirely.
+     All transformations are of the form:
+     Before:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
+     After:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 6e2115acb6a892d53a6881bf253ae41d3df39156
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Mon Jun 11 19:02:49 2007 -0500
+     net/: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
+     This is a compatibility step that allows both the older form
+     and the new form to co-exist for a while until the older can
+     be removed entirely.
+     All transformations are of the form:
+     Before:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
+     After:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 45cdb9b72c94655c7308b464a2666057c0b286e0
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Mon Jun 11 19:02:34 2007 -0500
+     disk/: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
+     This is a compatibility step that allows both the older form
+     and the new form to co-exist for a while until the older can
+     be removed entirely.
+     All transformations are of the form:
+     Before:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
+     After:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 4e109ae98294a5ca7ff848b7652c7bfd4023a94a
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Mon Jun 11 19:02:20 2007 -0500
+     fs/: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
+     This is a compatibility step that allows both the older form
+     and the new form to co-exist for a while until the older can
+     be removed entirely.
+     All transformations are of the form:
+     Before:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
+     After:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit d5be43de93ff905c465e509d45a3164ef48d26e7
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Mon Jun 11 19:02:10 2007 -0500
+     drivers/: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
+     This is a compatibility step that allows both the older form
+     and the new form to co-exist for a while until the older can
+     be removed entirely.
+     All transformations are of the form:
+     Before:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
+     After:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit b453960d4fdb87b3970d96119b90df2ed024fc4a
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Mon Jun 11 19:02:05 2007 -0500
+     common/ non-cmd: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
+     This is a compatibility step that allows both the older form
+     and the new form to co-exist for a while until the older can
+     be removed entirely.
+     All transformations are of the form:
+     Before:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
+     After:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit 65c450b47a62659d522cfa8f4fa1e4e5c60dccd0
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Mon Jun 11 19:01:54 2007 -0500
+     common/cmd_[i-z]* : Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
+     This is a compatibility step that allows both the older form
+     and the new form to co-exist for a while until the older can
+     be removed entirely.
+     All transformations are of the form:
+     Before:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
+     After:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit a76adc8142c1d956385a109e0b70f9319ede4d66
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Mon Jun 11 19:01:43 2007 -0500
+     common/cmd_[a-f]* : Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
+     This is a compatibility step that allows both the older form
+     and the new form to co-exist for a while until the older can
+     be removed entirely.
+     All transformations are of the form:
+     Before:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
+     After:
+       #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
+ commit ec63b10b61fd68238d4c15c1cd04c0b38228e2c1
+ Author: Jon Loeliger <jdl@jdl.com>
+ Date: Mon Jun 11 19:01:34 2007 -0500
+     Introduce initial versions of new Command Config files.
+     Derive three new files from cmd_confdefs.h:
+       config_bootp.h - Has BOOTP related config options, not commands
+       config_cmd_all.h - Has a CONFIG_CMD_* definition for every command
+       config_cmd_default.h - Has a CONFIG_CMD_* definition for default cmds.
+     For now, include "config_bootp.h" for compatability until all
+     users of it directly include it properly.
+     Signed-off-by: Jon Loeliger <jdl@freescale.com>
  commit 1f2a05898658900dc5717761e27abf2052e67e13
  Author: Mushtaq Khan <mushtaqk_921@yahoo.co.in>
  Date: Sat Jun 30 18:50:48 2007 +0200
  
      Signed-off-by: mushtaq khan <mushtaqk_921@yahoo.co.in>
  
 +commit a5d71e290f3673269be8eefb4ec44f53412f9461
 +Author: Heiko Schocher <hs@pollux.denx.de>
 +Date: Mon Jun 25 19:11:37 2007 +0200
 +
 +    [PCS440EP]        get rid of CONFIG_PPC4xx_USE_SPD_DDR_INIT_HANG
 +
 +    Signed-off-by: Heiko Schocher <hs@denx.de>
 +
  commit a1bd6200eccd3a02040a955d5f43d3ee1fc9f93b
  Author: Niklaus Giger <niklaus.giger@nestal.com>
  Date: Mon Jun 25 17:03:13 2007 +0200
@@@ -152,21 -882,6 +928,21 @@@ Date:    Wed Mar 28 19:06:19 2007 +040
      Signed-off-by: Igor Lisitsin <igor@emcraft.com>
      --
  
 +commit 566a494f592ae3b3c0785d90d4e1ba45574880c4
 +Author: Heiko Schocher <hs@pollux.denx.de>
 +Date: Fri Jun 22 19:11:54 2007 +0200
 +
 +    [PCS440EP]            upgrade the PCS440EP board:
 +                  - Show on the Status LEDs, some States of the board.
 +                  - Get the MAC addresses from the EEProm
 +                  - use PREBOOT
 +                  - use the CF on the board.
 +                  - check the U-Boot image in the Flash with a SHA1
 +                    checksum.
 +                  - use dynamic TLB entries generation for the SDRAM
 +
 +    Signed-off-by: Heiko Schocher <hs@denx.de>
 +
  commit 3a1f5c81b0b9557817a789bece839905581c2205
  Author: Stefan Roese <sr@denx.de>
  Date: Fri Jun 22 16:58:40 2007 +0200
diff --combined Makefile
+++ b/Makefile
@@@ -214,8 -214,6 +214,8 @@@ LIBS += drivers/sk98lin/libsk98lin.
  LIBS += post/libpost.a post/drivers/libpostdrivers.a
  LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
        "post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
 +LIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
 +      "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
  LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
        "post/cpu/$(CPU)/libpost$(CPU).a"; fi)
  LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
@@@ -247,7 -245,7 +247,7 @@@ __LIBS := $(subst $(obj),,$(LIBS)
  #########################################################################
  #########################################################################
  
 -ALL = $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
 +ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
  
  all:          $(ALL)
  
@@@ -267,9 -265,6 +267,9 @@@ $(obj)u-boot.img:  $(obj)u-boot.bi
                        sed -e 's/"[     ]*$$/ for $(BOARD) board"/') \
                -d $< $@
  
 +$(obj)u-boot.sha1:    $(obj)u-boot.bin
 +              ./tools/ubsha1 $(obj)u-boot.bin
 +
  $(obj)u-boot.dis:     $(obj)u-boot
                $(OBJDUMP) -d $< > $@
  
@@@ -429,7 -424,7 +429,7 @@@ jupiter_config:         unconfi
        @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
  
  v38b_config: unconfig
-       @./mkconfig -a v38b ppc mpc5xxx v38b
+       @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
  
  inka4x0_config:       unconfig
        @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
@@@ -1032,7 -1027,7 +1032,7 @@@ ADCIOP_config:  unconfi
        @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
  
  alpr_config:  unconfig
-       @./mkconfig $(@:_config=) ppc ppc4xx alpr prodrive
+       @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
  
  AP1000_config:unconfig
        @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
@@@ -1244,7 -1239,7 +1244,7 @@@ rainier_nand_config: unconfi
        @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
  
  sc3_config:unconfig
-       @./mkconfig $(@:_config=) ppc ppc4xx sc3
+       @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
  
  taishan_config:       unconfig
        @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
@@@ -1410,7 -1405,7 +1410,7 @@@ ep8260_config:  unconfi
        @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
  
  ep82xxm_config:       unconfig
-       @./mkconfig $(@:_config=) ppc mpc8260 ep82xxm
+       @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
  
  gw8260_config:        unconfig
        @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
@@@ -1846,7 -1841,7 +1846,7 @@@ TQM8560_config:         unconfi
  #########################################################################
  
  MPC8641HPCN_config:    unconfig
-       @./mkconfig $(@:_config=) ppc mpc86xx mpc8641hpcn
+       @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn
  
  
  #########################################################################
@@@ -2416,12 -2411,12 +2416,12 @@@ suzaku_config:       unconfi
  ml401_config: unconfig
        @ >include/config.h
        @echo "#define CONFIG_ML401 1" >> include/config.h
-       @./mkconfig -a $(@:_config=) microblaze microblaze ml401 xilinx
+       @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
  
  xupv2p_config:        unconfig
        @ >include/config.h
        @echo "#define CONFIG_XUPV2P 1" >> include/config.h
-       @./mkconfig -a $(@:_config=) microblaze microblaze xupv2p xilinx
+       @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
  
  #########################################################################
  ## Blackfin
@@@ -2446,7 -2441,7 +2446,7 @@@ bf561-ezkit_config:     unconfi
  #########################################################################
  
  atstk1002_config      :       unconfig
-       @./mkconfig $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000
+       @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000
  
  #########################################################################
  #########################################################################
@@@ -2463,7 -2458,7 +2463,7 @@@ clean
              $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
              $(obj)examples/test_burst
        rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
 -              $(obj)tools/gen_eth_addr
 +              $(obj)tools/gen_eth_addr $(obj)tools/ubsha1
        rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
        rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
        rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
@@@ -2486,7 -2481,7 +2486,7 @@@ clobber:        clea
        rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
        rm -fr $(obj)*.*~
        rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
 -      rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c
 +      rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c
        rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
        rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
        [ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
diff --combined README
--- 1/README
--- 2/README
+++ b/README
@@@ -541,7 -541,7 +541,7 @@@ The following options need to be config
                        CFG_CONSOLE_BLINK_COUNT blink interval (cf. i8042.c)
                        CONFIG_CONSOLE_TIME     display time/date info in
                                                upper right corner
-                                               (requires CFG_CMD_DATE)
+                                               (requires CONFIG_CMD_DATE)
                        CONFIG_VIDEO_LOGO       display Linux logo in
                                                upper left corner
                        CONFIG_VIDEO_BMP_LOGO   use bmp_logo.h instead of
                time on others. This setting #define's the initial
                value of the "loads_echo" environment variable.
  
- - Kgdb Serial Baudrate: (if CFG_CMD_KGDB is defined)
+ - Kgdb Serial Baudrate: (if CONFIG_CMD_KGDB is defined)
                CONFIG_KGDB_BAUDRATE
                Select one of the baudrates listed in
                CFG_BAUDRATE_TABLE, see below.
  
  - Monitor Functions:
-               CONFIG_COMMANDS
-               Most monitor functions can be selected (or
-               de-selected) by adjusting the definition of
-               CONFIG_COMMANDS; to select individual functions,
-               #define CONFIG_COMMANDS by "OR"ing any of the
-               following values:
-               #define enables commands:
-               -------------------------
-               CFG_CMD_ASKENV  * ask for env variable
-               CFG_CMD_AUTOSCRIPT Autoscript Support
-               CFG_CMD_BDI       bdinfo
-               CFG_CMD_BEDBUG  * Include BedBug Debugger
-               CFG_CMD_BMP     * BMP support
-               CFG_CMD_BSP     * Board specific commands
-               CFG_CMD_BOOTD     bootd
-               CFG_CMD_CACHE   * icache, dcache
-               CFG_CMD_CONSOLE   coninfo
-               CFG_CMD_DATE    * support for RTC, date/time...
-               CFG_CMD_DHCP    * DHCP support
-               CFG_CMD_DIAG    * Diagnostics
-               CFG_CMD_DOC     * Disk-On-Chip Support
-               CFG_CMD_DTT     * Digital Therm and Thermostat
-               CFG_CMD_ECHO      echo arguments
-               CFG_CMD_EEPROM  * EEPROM read/write support
-               CFG_CMD_ELF     * bootelf, bootvx
-               CFG_CMD_ENV       saveenv
-               CFG_CMD_FDC     * Floppy Disk Support
-               CFG_CMD_FAT     * FAT partition support
-               CFG_CMD_FDOS    * Dos diskette Support
-               CFG_CMD_FLASH     flinfo, erase, protect
-               CFG_CMD_FPGA      FPGA device initialization support
-               CFG_CMD_HWFLOW  * RTS/CTS hw flow control
-               CFG_CMD_I2C     * I2C serial bus support
-               CFG_CMD_IDE     * IDE harddisk support
-               CFG_CMD_IMI       iminfo
-               CFG_CMD_IMLS      List all found images
-               CFG_CMD_IMMAP   * IMMR dump support
-               CFG_CMD_IRQ     * irqinfo
-               CFG_CMD_ITEST     Integer/string test of 2 values
-               CFG_CMD_JFFS2   * JFFS2 Support
-               CFG_CMD_KGDB    * kgdb
-               CFG_CMD_LOADB     loadb
-               CFG_CMD_LOADS     loads
-               CFG_CMD_MEMORY    md, mm, nm, mw, cp, cmp, crc, base,
-                                 loop, loopw, mtest
-               CFG_CMD_MISC      Misc functions like sleep etc
-               CFG_CMD_MMC     * MMC memory mapped support
-               CFG_CMD_MII     * MII utility commands
-               CFG_CMD_NAND    * NAND support
-               CFG_CMD_NET       bootp, tftpboot, rarpboot
-               CFG_CMD_PCI     * pciinfo
-               CFG_CMD_PCMCIA  * PCMCIA support
-               CFG_CMD_PING    * send ICMP ECHO_REQUEST to network host
-               CFG_CMD_PORTIO  * Port I/O
-               CFG_CMD_REGINFO * Register dump
-               CFG_CMD_RUN       run command in env variable
-               CFG_CMD_SAVES   * save S record dump
-               CFG_CMD_SCSI    * SCSI Support
-               CFG_CMD_SDRAM   * print SDRAM configuration information
-                                 (requires CFG_CMD_I2C)
-               CFG_CMD_SETGETDCR Support for DCR Register access (4xx only)
-               CFG_CMD_SPI     * SPI serial bus support
-               CFG_CMD_USB     * USB support
-               CFG_CMD_VFD     * VFD support (TRAB)
-               CFG_CMD_BSP     * Board SPecific functions
-               CFG_CMD_CDP     * Cisco Discover Protocol support
-               CFG_CMD_FSL     * Microblaze FSL support
-               -----------------------------------------------
-               CFG_CMD_ALL     all
-               CONFIG_CMD_DFL  Default configuration; at the moment
-                               this is includes all commands, except
-                               the ones marked with "*" in the list
-                               above.
-               If you don't define CONFIG_COMMANDS it defaults to
-               CONFIG_CMD_DFL in include/cmd_confdefs.h. A board can
-               override the default settings in the respective
-               include file.
+               Monitor commands can be included or excluded
+               from the build by using the #include files
+               "config_cmd_all.h" and #undef'ing unwanted
+               commands, or using "config_cmd_default.h"
+               and augmenting with additional #define's
+               for wanted commands.
+               The default command configuration includes all commands
+               except those marked below with a "*".
+               CONFIG_CMD_ASKENV       * ask for env variable
+               CONFIG_CMD_AUTOSCRIPT     Autoscript Support
+               CONFIG_CMD_BDI            bdinfo
+               CONFIG_CMD_BEDBUG       * Include BedBug Debugger
+               CONFIG_CMD_BMP          * BMP support
+               CONFIG_CMD_BSP          * Board specific commands
+               CONFIG_CMD_BOOTD          bootd
+               CONFIG_CMD_CACHE        * icache, dcache
+               CONFIG_CMD_CONSOLE        coninfo
+               CONFIG_CMD_DATE         * support for RTC, date/time...
+               CONFIG_CMD_DHCP         * DHCP support
+               CONFIG_CMD_DIAG         * Diagnostics
+               CONFIG_CMD_DOC          * Disk-On-Chip Support
+               CONFIG_CMD_DTT          * Digital Therm and Thermostat
+               CONFIG_CMD_ECHO           echo arguments
+               CONFIG_CMD_EEPROM       * EEPROM read/write support
+               CONFIG_CMD_ELF          * bootelf, bootvx
+               CONFIG_CMD_ENV            saveenv
+               CONFIG_CMD_FDC          * Floppy Disk Support
+               CONFIG_CMD_FAT          * FAT partition support
+               CONFIG_CMD_FDOS         * Dos diskette Support
+               CONFIG_CMD_FLASH          flinfo, erase, protect
+               CONFIG_CMD_FPGA           FPGA device initialization support
+               CONFIG_CMD_HWFLOW       * RTS/CTS hw flow control
+               CONFIG_CMD_I2C          * I2C serial bus support
+               CONFIG_CMD_IDE          * IDE harddisk support
+               CONFIG_CMD_IMI            iminfo
+               CONFIG_CMD_IMLS           List all found images
+               CONFIG_CMD_IMMAP        * IMMR dump support
+               CONFIG_CMD_IRQ          * irqinfo
+               CONFIG_CMD_ITEST          Integer/string test of 2 values
+               CONFIG_CMD_JFFS2        * JFFS2 Support
+               CONFIG_CMD_KGDB         * kgdb
+               CONFIG_CMD_LOADB          loadb
+               CONFIG_CMD_LOADS          loads
+               CONFIG_CMD_MEMORY         md, mm, nm, mw, cp, cmp, crc, base,
+                                         loop, loopw, mtest
+               CONFIG_CMD_MISC           Misc functions like sleep etc
+               CONFIG_CMD_MMC          * MMC memory mapped support
+               CONFIG_CMD_MII          * MII utility commands
+               CONFIG_CMD_NAND         * NAND support
+               CONFIG_CMD_NET            bootp, tftpboot, rarpboot
+               CONFIG_CMD_PCI          * pciinfo
+               CONFIG_CMD_PCMCIA               * PCMCIA support
+               CONFIG_CMD_PING         * send ICMP ECHO_REQUEST to network
+                                         host
+               CONFIG_CMD_PORTIO       * Port I/O
+               CONFIG_CMD_REGINFO      * Register dump
+               CONFIG_CMD_RUN            run command in env variable
+               CONFIG_CMD_SAVES        * save S record dump
+               CONFIG_CMD_SCSI         * SCSI Support
+               CONFIG_CMD_SDRAM        * print SDRAM configuration information
+                                         (requires CONFIG_CMD_I2C)
+               CONFIG_CMD_SETGETDCR      Support for DCR Register access
+                                         (4xx only)
+               CONFIG_CMD_SPI          * SPI serial bus support
+               CONFIG_CMD_USB          * USB support
+               CONFIG_CMD_VFD          * VFD support (TRAB)
+               CONFIG_CMD_BSP          * Board SPecific functions
+               CONFIG_CMD_CDP          * Cisco Discover Protocol support
+               CONFIG_CMD_FSL          * Microblaze FSL support
  
                EXAMPLE: If you want all functions except of network
                support you can write:
  
-               #define CONFIG_COMMANDS (CFG_CMD_ALL & ~CFG_CMD_NET)
+               #include "config_cmd_all.h"
+               #undef CONFIG_CMD_NET
  
        Other Commands:
                fdt (flattened device tree) command: CONFIG_OF_LIBFDT
  
        Note:   Don't enable the "icache" and "dcache" commands
-               (configuration option CFG_CMD_CACHE) unless you know
+               (configuration option CONFIG_CMD_CACHE) unless you know
                what you (and your U-Boot users) are doing. Data
                cache cannot be enabled on systems like the 8xx or
                8260 (where accesses to the IMMR region must be
  
  - Real-Time Clock:
  
-               When CFG_CMD_DATE is selected, the type of the RTC
+               When CONFIG_CMD_DATE is selected, the type of the RTC
                has to be selected, too. Define exactly one of the
                following options:
  
                When CONFIG_TIMESTAMP is selected, the timestamp
                (date and time) of an image is printed by image
                commands like bootm or iminfo. This option is
-               automatically enabled when you select CFG_CMD_DATE .
+               automatically enabled when you select CONFIG_CMD_DATE .
  
  - Partition Support:
                CONFIG_MAC_PARTITION and/or CONFIG_DOS_PARTITION
                and/or CONFIG_ISO_PARTITION
  
-               If IDE or SCSI support  is  enabled  (CFG_CMD_IDE  or
-               CFG_CMD_SCSI) you must configure support for at least
+               If IDE or SCSI support  is  enabled  (CONFIG_CMD_IDE or
+               CONFIG_CMD_SCSI) you must configure support for at least
                one partition type as well.
  
  - IDE Reset method:
                enable this define CONFIG_MMC. The MMC can be
                accessed from the boot prompt by mapping the device
                to physical memory similar to flash. Command line is
-               enabled with CFG_CMD_MMC. The MMC driver also works with
-               the FAT fs. This is enabled with CFG_CMD_FAT.
+               enabled with CONFIG_CMD_MMC. The MMC driver also works with
+               the FAT fs. This is enabled with CONFIG_CMD_FAT.
  
  - Journaling Flash filesystem support:
                CONFIG_JFFS2_NAND, CONFIG_JFFS2_NAND_OFF, CONFIG_JFFS2_NAND_SIZE,
                BOOTP requests:         delay 0 ... 8 sec
  
  - DHCP Advanced Options:
-               CONFIG_BOOTP_MASK
-               You can fine tune the DHCP functionality by adding
-               these flags to the CONFIG_BOOTP_MASK define:
+               You can fine tune the DHCP functionality by defining
+               CONFIG_BOOTP_* symbols:
+               CONFIG_BOOTP_SUBNETMASK
+               CONFIG_BOOTP_GATEWAY
+               CONFIG_BOOTP_HOSTNAME
+               CONFIG_BOOTP_NISDOMAIN
+               CONFIG_BOOTP_BOOTPATH
+               CONFIG_BOOTP_BOOTFILESIZE
+               CONFIG_BOOTP_DNS
+               CONFIG_BOOTP_DNS2
+               CONFIG_BOOTP_SEND_HOSTNAME
+               CONFIG_BOOTP_NTPSERVER
+               CONFIG_BOOTP_TIMEOFFSET
+               CONFIG_BOOTP_VENDOREX
  
                CONFIG_BOOTP_DNS2 - If a DHCP client requests the DNS
                serverip from a DHCP server, it is possible that more
                serverip will be stored in the additional environment
                variable "dnsip2". The first DNS serverip is always
                stored in the variable "dnsip", when CONFIG_BOOTP_DNS
-               is added to the CONFIG_BOOTP_MASK.
+               is defined.
  
                CONFIG_BOOTP_SEND_HOSTNAME - Some DHCP servers are capable
                to do a dynamic update of a DNS server. To do this, they
                need the hostname of the DHCP requester.
-               If CONFIG_BOOP_SEND_HOSTNAME is added to the
-               CONFIG_BOOTP_MASK, the content of the "hostname"
-               environment variable is passed as option 12 to
-               the DHCP server.
+               If CONFIG_BOOP_SEND_HOSTNAME is defined, the content
+               of the "hostname" environment variable is passed as
+               option 12 to the DHCP server.
  
   - CDP Options:
                CONFIG_CDP_DEVICE_ID
                include the appropriate I2C driver for the selected cpu.
  
                This will allow you to use i2c commands at the u-boot
-               command line (as long as you set CFG_CMD_I2C in
+               command line (as long as you set CONFIG_CMD_I2C in
                CONFIG_COMMANDS) and communicate with i2c based realtime
                clock chips. See common/cmd_i2c.c for a description of the
                command line interface.
    -31 post/post.c             POST test failed, detected by post_output_backlog()
    -32 post/post.c             POST test failed, detected by post_run_single()
  
 -   -1 common/cmd_doc.c        Bad usage of "doc" command
 -   -1 common/cmd_doc.c        No boot device
 -   -1 common/cmd_doc.c        Unknown Chip ID on boot device
 -   -1 common/cmd_doc.c        Read Error on boot device
 -   -1 common/cmd_doc.c        Image header has bad magic number
 -
 -   -1 common/cmd_ide.c        Bad usage of "ide" command
 -   -1 common/cmd_ide.c        No boot device
 -   -1 common/cmd_ide.c        Unknown boot device
 -   -1 common/cmd_ide.c        Unknown partition table
 -   -1 common/cmd_ide.c        Invalid partition type
 -   -1 common/cmd_ide.c        Read Error on boot device
 -   -1 common/cmd_ide.c        Image header has bad magic number
 -
 -   -1 common/cmd_nand.c       Bad usage of "nand" command
 -   -1 common/cmd_nand.c       No boot device
 -   -1 common/cmd_nand.c       Unknown Chip ID on boot device
 -   -1 common/cmd_nand.c       Read Error on boot device
 -   -1 common/cmd_nand.c       Image header has bad magic number
 -
 -   -1 common/env_common.c     Environment has a bad CRC, using default
 -
 +   34 common/cmd_doc.c        before loading a Image from a DOC device
 +  -35 common/cmd_doc.c        Bad usage of "doc" command
 +   35 common/cmd_doc.c        correct usage of "doc" command
 +  -36 common/cmd_doc.c        No boot device
 +   36 common/cmd_doc.c        correct boot device
 +  -37 common/cmd_doc.c        Unknown Chip ID on boot device
 +   37 common/cmd_doc.c        correct chip ID found, device available
 +  -38 common/cmd_doc.c        Read Error on boot device
 +   38 common/cmd_doc.c        reading Image header from DOC device OK
 +  -39 common/cmd_doc.c        Image header has bad magic number
 +   39 common/cmd_doc.c        Image header has correct magic number
 +  -40 common/cmd_doc.c        Error reading Image from DOC device
 +   40 common/cmd_doc.c        Image header has correct magic number
 +   41 common/cmd_ide.c        before loading a Image from a IDE device
 +  -42 common/cmd_ide.c        Bad usage of "ide" command
 +   42 common/cmd_ide.c        correct usage of "ide" command
 +  -43 common/cmd_ide.c        No boot device
 +   43 common/cmd_ide.c        boot device found
 +  -44 common/cmd_ide.c        Device not available
 +   44 common/cmd_ide.c        Device available
 +  -45 common/cmd_ide.c        wrong partition selected
 +   45 common/cmd_ide.c        partition selected
 +  -46 common/cmd_ide.c        Unknown partition table
 +   46 common/cmd_ide.c        valid partition table found
 +  -47 common/cmd_ide.c        Invalid partition type
 +   47 common/cmd_ide.c        correct partition type
 +  -48 common/cmd_ide.c        Error reading Image Header on boot device
 +   48 common/cmd_ide.c        reading Image Header from IDE device OK
 +  -49 common/cmd_ide.c        Image header has bad magic number
 +   49 common/cmd_ide.c        Image header has correct magic number
 +  -50 common/cmd_ide.c        Image header has bad     checksum
 +   50 common/cmd_ide.c        Image header has correct checksum
 +  -51 common/cmd_ide.c        Error reading Image from IDE device
 +   51 common/cmd_ide.c        reading Image from IDE device OK
 +   52 common/cmd_nand.c       before loading a Image from a NAND device
 +  -53 common/cmd_nand.c       Bad usage of "nand" command
 +   53 common/cmd_nand.c       correct usage of "nand" command
 +  -54 common/cmd_nand.c       No boot device
 +   54 common/cmd_nand.c       boot device found
 +  -55 common/cmd_nand.c       Unknown Chip ID on boot device
 +   55 common/cmd_nand.c       correct chip ID found, device available
 +  -56 common/cmd_nand.c       Error reading Image Header on boot device
 +   56 common/cmd_nand.c       reading Image Header from NAND device OK
 +  -57 common/cmd_nand.c       Image header has bad magic number
 +   57 common/cmd_nand.c       Image header has correct magic number
 +  -58 common/cmd_nand.c       Error reading Image from NAND device
 +   58 common/cmd_nand.c       reading Image from NAND device OK
 +
 +  -60 common/env_common.c     Environment has a bad CRC, using default
 +
 +   64 net/eth.c               starting with Ethernetconfiguration.
 +  -64 net/eth.c               no Ethernet found.
 +   65 net/eth.c               Ethernet found.
 +
 +  -80 common/cmd_net.c        usage wrong
 +   80 common/cmd_net.c        before calling NetLoop()
 +  -81 common/cmd_net.c        some error in NetLoop() occured
 +   81 common/cmd_net.c        NetLoop() back without error
 +  -82 common/cmd_net.c        size == 0 (File with size 0 loaded)
 +   82 common/cmd_net.c        trying automatic boot
 +   83 common/cmd_net.c        running autoscript
 +  -83 common/cmd_net.c        some error in automatic boot or autoscript
 +   84 common/cmd_net.c        end without errors
  
  Modem Support:
  --------------
@@@ -2369,7 -2331,7 +2372,7 @@@ Low Level (hardware related) configurat
  
  - CONFIG_LOOPW
                Add the "loopw" memory command. This only takes effect if
-               the memory commands are activated globally (CFG_CMD_MEM).
+               the memory commands are activated globally (CONFIG_CMD_MEM).
  
  - CONFIG_MX_CYCLIC
                Add the "mdc" and "mwc" memory commands. These are cyclic
                This command will write 12345678 to address 100 all 10 ms.
  
                This only takes effect if the memory commands are activated
-               globally (CFG_CMD_MEM).
+               globally (CONFIG_CMD_MEM).
  
  - CONFIG_SKIP_LOWLEVEL_INIT
  - CONFIG_SKIP_RELOCATE_UBOOT
diff --combined common/cmd_doc.c
@@@ -19,7 -19,7 +19,7 @@@
  # define SHOW_BOOT_PROGRESS(arg)
  #endif
  
- #if (CONFIG_COMMANDS & CFG_CMD_DOC)
+ #if defined(CONFIG_CMD_DOC)
  
  #include <linux/mtd/nftl.h>
  #include <linux/mtd/doc2000.h>
@@@ -216,7 -216,6 +216,7 @@@ int do_docboot (cmd_tbl_t *cmdtp, int f
        image_header_t *hdr;
        int rcode = 0;
  
 +      SHOW_BOOT_PROGRESS (34);
        switch (argc) {
        case 1:
                addr = CFG_LOAD_ADDR;
                break;
        default:
                printf ("Usage:\n%s\n", cmdtp->usage);
 -              SHOW_BOOT_PROGRESS (-1);
 +              SHOW_BOOT_PROGRESS (-35);
                return 1;
        }
  
 +      SHOW_BOOT_PROGRESS (35);
        if (!boot_device) {
                puts ("\n** No boot device **\n");
 -              SHOW_BOOT_PROGRESS (-1);
 +              SHOW_BOOT_PROGRESS (-36);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS (36);
  
        dev = simple_strtoul(boot_device, &ep, 16);
  
        if ((dev >= CFG_MAX_DOC_DEVICE) ||
            (doc_dev_desc[dev].ChipID == DOC_ChipID_UNKNOWN)) {
                printf ("\n** Device %d not available\n", dev);
 -              SHOW_BOOT_PROGRESS (-1);
 +              SHOW_BOOT_PROGRESS (-37);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS (37);
  
        printf ("\nLoading from device %d: %s at 0x%lX (offset 0x%lX)\n",
                dev, doc_dev_desc[dev].name, doc_dev_desc[dev].physadr,
        if (doc_rw (doc_dev_desc + dev, 1, offset,
                    SECTORSIZE, NULL, (u_char *)addr)) {
                printf ("** Read error on %d\n", dev);
 -              SHOW_BOOT_PROGRESS (-1);
 +              SHOW_BOOT_PROGRESS (-38);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS (38);
  
        hdr = (image_header_t *)addr;
  
                cnt -= SECTORSIZE;
        } else {
                puts ("\n** Bad Magic Number **\n");
 -              SHOW_BOOT_PROGRESS (-1);
 +              SHOW_BOOT_PROGRESS (-39);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS (39);
  
        if (doc_rw (doc_dev_desc + dev, 1, offset + SECTORSIZE, cnt,
                    NULL, (u_char *)(addr+SECTORSIZE))) {
                printf ("** Read error on %d\n", dev);
 -              SHOW_BOOT_PROGRESS (-1);
 +              SHOW_BOOT_PROGRESS (-40);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS (40);
  
        /* Loading ok, update default load address */
  
@@@ -1615,4 -1608,4 +1615,4 @@@ void doc_probe(unsigned long physadr
        }
  }
  
- #endif /* (CONFIG_COMMANDS & CFG_CMD_DOC) */
+ #endif
diff --combined common/cmd_ide.c
@@@ -78,7 -78,7 +78,7 @@@ DECLARE_GLOBAL_DATA_PTR
  # define SYNC         /* nothing */
  #endif
  
- #if (CONFIG_COMMANDS & CFG_CMD_IDE)
+ #if defined(CONFIG_CMD_IDE)
  
  #ifdef CONFIG_IDE_8xx_DIRECT
  /* Timings for IDE Interface
@@@ -185,9 -185,6 +185,9 @@@ static void input_data(int dev, ulong *
  static void output_data(int dev, ulong *sect_buf, int words);
  static void ident_cpy (unsigned char *dest, unsigned char *src, unsigned int len);
  
 +#ifndef CFG_ATA_PORT_ADDR
 +#define CFG_ATA_PORT_ADDR(port) (port)
 +#endif
  
  #ifdef CONFIG_ATAPI
  static void   atapi_inquiry(block_dev_desc_t *dev_desc);
@@@ -385,7 -382,6 +385,7 @@@ int do_diskboot (cmd_tbl_t *cmdtp, int 
        image_header_t *hdr;
        int rcode = 0;
  
 +      SHOW_BOOT_PROGRESS (41);
        switch (argc) {
        case 1:
                addr = CFG_LOAD_ADDR;
                break;
        default:
                printf ("Usage:\n%s\n", cmdtp->usage);
 -              SHOW_BOOT_PROGRESS (-1);
 +              SHOW_BOOT_PROGRESS (-42);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS (42);
  
        if (!boot_device) {
                puts ("\n** No boot device **\n");
 -              SHOW_BOOT_PROGRESS (-1);
 +              SHOW_BOOT_PROGRESS (-43);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS (43);
  
        dev = simple_strtoul(boot_device, &ep, 16);
  
        if (ide_dev_desc[dev].type==DEV_TYPE_UNKNOWN) {
                printf ("\n** Device %d not available\n", dev);
 -              SHOW_BOOT_PROGRESS (-1);
 +              SHOW_BOOT_PROGRESS (-44);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS (44);
  
        if (*ep) {
                if (*ep != ':') {
                        puts ("\n** Invalid boot device, use `dev[:part]' **\n");
 -                      SHOW_BOOT_PROGRESS (-1);
 +                      SHOW_BOOT_PROGRESS (-45);
                        return 1;
                }
                part = simple_strtoul(++ep, NULL, 16);
        }
 +      SHOW_BOOT_PROGRESS (45);
        if (get_partition_info (&ide_dev_desc[dev], part, &info)) {
 -              SHOW_BOOT_PROGRESS (-1);
 +              SHOW_BOOT_PROGRESS (-46);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS (46);
        if ((strncmp((char *)info.type, BOOT_PART_TYPE, sizeof(info.type)) != 0) &&
            (strncmp((char *)info.type, BOOT_PART_COMP, sizeof(info.type)) != 0)) {
                printf ("\n** Invalid partition type \"%.32s\""
                        " (expect \"" BOOT_PART_TYPE "\")\n",
                        info.type);
 -              SHOW_BOOT_PROGRESS (-1);
 +              SHOW_BOOT_PROGRESS (-47);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS (47);
  
        printf ("\nLoading from IDE device %d, partition %d: "
                "Name: %.32s  Type: %.32s\n",
  
        if (ide_dev_desc[dev].block_read (dev, info.start, 1, (ulong *)addr) != 1) {
                printf ("** Read error on %d:%d\n", dev, part);
 -              SHOW_BOOT_PROGRESS (-1);
 +              SHOW_BOOT_PROGRESS (-48);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS (48);
  
        hdr = (image_header_t *)addr;
  
        if (ntohl(hdr->ih_magic) != IH_MAGIC) {
                printf("\n** Bad Magic Number **\n");
 -              SHOW_BOOT_PROGRESS (-1);
 +              SHOW_BOOT_PROGRESS (-49);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS (49);
  
        checksum = ntohl(hdr->ih_hcrc);
        hdr->ih_hcrc = 0;
  
        if (crc32 (0, (uchar *)hdr, sizeof(image_header_t)) != checksum) {
                puts ("\n** Bad Header Checksum **\n");
 -              SHOW_BOOT_PROGRESS (-2);
 +              SHOW_BOOT_PROGRESS (-50);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS (50);
        hdr->ih_hcrc = htonl(checksum); /* restore checksum for later use */
  
        print_image_hdr (hdr);
        if (ide_dev_desc[dev].block_read (dev, info.start+1, cnt,
                      (ulong *)(addr+info.blksz)) != cnt) {
                printf ("** Read error on %d:%d\n", dev, part);
 -              SHOW_BOOT_PROGRESS (-1);
 +              SHOW_BOOT_PROGRESS (-51);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS (51);
  
  
        /* Loading ok, update default load address */
@@@ -821,13 -807,13 +821,13 @@@ ide_outb(int dev, int port, unsigned ch
  
        /* Ensure I/O operations complete */
        EIEIO;
 -      *((uchar *)(ATA_CURR_BASE(dev)+port)) = val;
 +      *((u16 *)(ATA_CURR_BASE(dev)+CFG_ATA_PORT_ADDR(port))) = val;
  }
  #else /* ! __PPC__ */
  static void __inline__
  ide_outb(int dev, int port, unsigned char val)
  {
 -      outb(val, ATA_CURR_BASE(dev)+port);
 +      outb(val, ATA_CURR_BASE(dev)+CFG_ATA_PORT_ADDR(port));
  }
  #endif        /* __PPC__ */
  
@@@ -839,7 -825,7 +839,7 @@@ ide_inb(int dev, int port
        uchar val;
        /* Ensure I/O operations complete */
        EIEIO;
 -      val = *((uchar *)(ATA_CURR_BASE(dev)+port));
 +      val = *((u16 *)(ATA_CURR_BASE(dev)+CFG_ATA_PORT_ADDR(port)));
        debug ("ide_inb (dev= %d, port= 0x%x) : @ 0x%08lx -> 0x%02x\n",
                dev, port, (ATA_CURR_BASE(dev)+port), val);
        return (val);
  static unsigned char __inline__
  ide_inb(int dev, int port)
  {
 -  return inb(ATA_CURR_BASE(dev)+port);
 +  return inb(ATA_CURR_BASE(dev)+CFG_ATA_PORT_ADDR(port));
  }
  #endif        /* __PPC__ */
  
@@@ -905,9 -891,6 +905,9 @@@ input_swap_data(int dev, ulong *sect_bu
  #ifdef __MIPS__
                *dbuf++ = swab16p((u16*)pbuf);
                *dbuf++ = swab16p((u16*)pbuf);
 +#elif defined(CONFIG_PCS440EP)
 +              *dbuf++ = *pbuf;
 +              *dbuf++ = *pbuf;
  #else
                *dbuf++ = ld_le16(pbuf);
                *dbuf++ = ld_le16(pbuf);
@@@ -947,18 -930,10 +947,18 @@@ output_data(int dev, ulong *sect_buf, i
        pbuf = (ushort *)(ATA_CURR_BASE(dev)+ATA_DATA_REG);
        dbuf = (ushort *)sect_buf;
        while (words--) {
 +#if defined(CONFIG_PCS440EP)
 +              /* not tested, because CF was write protected */
 +              EIEIO;
 +              *pbuf = ld_le16(dbuf++);
 +              EIEIO;
 +              *pbuf = ld_le16(dbuf++);
 +#else
                EIEIO;
                *pbuf = *dbuf++;
                EIEIO;
                *pbuf = *dbuf++;
 +#endif
        }
  #endif
  }
@@@ -1006,17 -981,10 +1006,17 @@@ input_data(int dev, ulong *sect_buf, in
        debug("in input data base for read is %lx\n", (unsigned long) pbuf);
  
        while (words--) {
 +#if defined(CONFIG_PCS440EP)
 +              EIEIO;
 +              *dbuf++ = ld_le16(pbuf);
 +              EIEIO;
 +              *dbuf++ = ld_le16(pbuf);
 +#else
                EIEIO;
                *dbuf++ = *pbuf;
                EIEIO;
                *dbuf++ = *pbuf;
 +#endif
        }
  #endif
  }
@@@ -2112,4 -2080,4 +2112,4 @@@ U_BOOT_CMD
        "loadAddr dev:part\n"
  );
  
- #endif        /* CONFIG_COMMANDS & CFG_CMD_IDE */
+ #endif
diff --combined common/cmd_nand.c
@@@ -19,7 -19,7 +19,7 @@@
   */
  #include <common.h>
  
- #if (CONFIG_COMMANDS & CFG_CMD_NAND)
+ #if defined(CONFIG_CMD_NAND)
  
  #include <command.h>
  #include <watchdog.h>
@@@ -36,7 -36,7 +36,7 @@@
  #include <jffs2/jffs2.h>
  #include <nand.h>
  
- #if (CONFIG_COMMANDS & CFG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
+ #if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
  
  /* parition handling routines */
  int mtdparts_init(void);
@@@ -104,7 -104,7 +104,7 @@@ static in
  arg_off_size(int argc, char *argv[], nand_info_t *nand, ulong *off, ulong *size)
  {
        int idx = nand_curr_device;
- #if (CONFIG_COMMANDS & CFG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
+ #if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
        struct mtd_device *dev;
        struct part_info *part;
        u8 pnum;
                *size = nand->size - *off;
        }
  
- #if (CONFIG_COMMANDS & CFG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
+ #if  defined(CONFIG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
  out:
  #endif
        printf("device %d ", idx);
@@@ -486,19 -486,17 +486,19 @@@ static int nand_load_image(cmd_tbl_t *c
        r = nand_read(nand, offset, &cnt, (u_char *) addr);
        if (r) {
                puts("** Read error\n");
 -              SHOW_BOOT_PROGRESS(-1);
 +              SHOW_BOOT_PROGRESS(-56);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS(56);
  
        hdr = (image_header_t *) addr;
  
        if (ntohl(hdr->ih_magic) != IH_MAGIC) {
                printf("\n** Bad Magic Number 0x%x **\n", hdr->ih_magic);
 -              SHOW_BOOT_PROGRESS(-1);
 +              SHOW_BOOT_PROGRESS(-57);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS(57);
  
        print_image_hdr(hdr);
  
        r = nand_read(nand, offset, &cnt, (u_char *) addr);
        if (r) {
                puts("** Read error\n");
 -              SHOW_BOOT_PROGRESS(-1);
 +              SHOW_BOOT_PROGRESS(-58);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS(58);
  
        /* Loading ok, update default load address */
  
@@@ -537,7 -534,7 +537,7 @@@ int do_nandboot(cmd_tbl_t * cmdtp, int 
        char *boot_device = NULL;
        int idx;
        ulong addr, offset = 0;
- #if (CONFIG_COMMANDS & CFG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
+ #if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
        struct mtd_device *dev;
        struct part_info *part;
        u8 pnum;
        }
  #endif
  
 +      SHOW_BOOT_PROGRESS(52);
        switch (argc) {
        case 1:
                addr = CFG_LOAD_ADDR;
                offset = simple_strtoul(argv[3], NULL, 16);
                break;
        default:
- #if (CONFIG_COMMANDS & CFG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
+ #if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
  usage:
  #endif
                printf("Usage:\n%s\n", cmdtp->usage);
 -              SHOW_BOOT_PROGRESS(-1);
 +              SHOW_BOOT_PROGRESS(-53);
                return 1;
        }
  
 +      SHOW_BOOT_PROGRESS(53);
        if (!boot_device) {
                puts("\n** No boot device **\n");
 -              SHOW_BOOT_PROGRESS(-1);
 +              SHOW_BOOT_PROGRESS(-54);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS(54);
  
        idx = simple_strtoul(boot_device, NULL, 16);
  
        if (idx < 0 || idx >= CFG_MAX_NAND_DEVICE || !nand_info[idx].name) {
                printf("\n** Device %d not available\n", idx);
 -              SHOW_BOOT_PROGRESS(-1);
 +              SHOW_BOOT_PROGRESS(-55);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS(55);
  
        return nand_load_image(cmdtp, &nand_info[idx], offset, addr, argv[0]);
  }
@@@ -614,7 -607,7 +614,7 @@@ U_BOOT_CMD(nboot, 4, 1, do_nandboot
        "nboot   - boot from NAND device\n",
        "[partition] | [[[loadAddr] dev] offset]\n");
  
- #endif                                /* (CONFIG_COMMANDS & CFG_CMD_NAND) */
+ #endif
  
  #else /* CFG_NAND_LEGACY */
  /*
  # define SHOW_BOOT_PROGRESS(arg)
  #endif
  
- #if (CONFIG_COMMANDS & CFG_CMD_NAND)
+ #if defined(CONFIG_CMD_NAND)
  #include <linux/mtd/nand_legacy.h>
  #if 0
  #include <linux/mtd/nand_ids.h>
@@@ -894,7 -887,6 +894,7 @@@ int do_nandboot (cmd_tbl_t *cmdtp, int 
        ulong offset = 0;
        image_header_t *hdr;
        int rcode = 0;
 +      SHOW_BOOT_PROGRESS(52);
        switch (argc) {
        case 1:
                addr = CFG_LOAD_ADDR;
                break;
        default:
                printf ("Usage:\n%s\n", cmdtp->usage);
 -              SHOW_BOOT_PROGRESS (-1);
 +              SHOW_BOOT_PROGRESS (-53);
                return 1;
        }
  
 +      SHOW_BOOT_PROGRESS(53);
        if (!boot_device) {
                puts ("\n** No boot device **\n");
 -              SHOW_BOOT_PROGRESS (-1);
 +              SHOW_BOOT_PROGRESS (-54);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS(54);
  
        dev = simple_strtoul(boot_device, &ep, 16);
  
        if ((dev >= CFG_MAX_NAND_DEVICE) ||
            (nand_dev_desc[dev].ChipID == NAND_ChipID_UNKNOWN)) {
                printf ("\n** Device %d not available\n", dev);
 -              SHOW_BOOT_PROGRESS (-1);
 +              SHOW_BOOT_PROGRESS (-55);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS(55);
  
        printf ("\nLoading from device %d: %s at 0x%lx (offset 0x%lx)\n",
                dev, nand_dev_desc[dev].name, nand_dev_desc[dev].IO_ADDR,
        if (nand_legacy_rw (nand_dev_desc + dev, NANDRW_READ, offset,
                        SECTORSIZE, NULL, (u_char *)addr)) {
                printf ("** Read error on %d\n", dev);
 -              SHOW_BOOT_PROGRESS (-1);
 +              SHOW_BOOT_PROGRESS (-56);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS(56);
  
        hdr = (image_header_t *)addr;
  
                cnt -= SECTORSIZE;
        } else {
                printf ("\n** Bad Magic Number 0x%x **\n", ntohl(hdr->ih_magic));
 -              SHOW_BOOT_PROGRESS (-1);
 +              SHOW_BOOT_PROGRESS (-57);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS(57);
  
        if (nand_legacy_rw (nand_dev_desc + dev, NANDRW_READ,
                        offset + SECTORSIZE, cnt, NULL,
                        (u_char *)(addr+SECTORSIZE))) {
                printf ("** Read error on %d\n", dev);
 -              SHOW_BOOT_PROGRESS (-1);
 +              SHOW_BOOT_PROGRESS (-58);
                return 1;
        }
 +      SHOW_BOOT_PROGRESS(58);
  
        /* Loading ok, update default load address */
  
@@@ -999,6 -985,6 +999,6 @@@ U_BOOT_CMD
        "loadAddr dev\n"
  );
  
- #endif /* (CONFIG_COMMANDS & CFG_CMD_NAND) */
+ #endif
  
  #endif /* CFG_NAND_LEGACY */
diff --combined common/cmd_net.c
  #include <command.h>
  #include <net.h>
  
- #if (CONFIG_COMMANDS & CFG_CMD_NET)
+ #if defined(CONFIG_CMD_NET)
  
 +#ifdef CONFIG_SHOW_BOOT_PROGRESS
 +# include <status_led.h>
 +extern void show_boot_progress (int val);
 +# define SHOW_BOOT_PROGRESS(arg)      show_boot_progress (arg)
 +#else
 +# define SHOW_BOOT_PROGRESS(arg)
 +#endif
  
  extern int do_bootm (cmd_tbl_t *, int, int, char *[]);
  
@@@ -75,7 -68,7 +75,7 @@@ U_BOOT_CMD
        "[loadAddress] [bootfilename]\n"
  );
  
- #if (CONFIG_COMMANDS & CFG_CMD_DHCP)
+ #if defined(CONFIG_CMD_DHCP)
  int do_dhcp (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  {
        return netboot_common(DHCP, cmdtp, argc, argv);
@@@ -86,9 -79,9 +86,9 @@@ U_BOOT_CMD
        "dhcp\t- invoke DHCP client to obtain IP/boot params\n",
        "\n"
  );
- #endif        /* CFG_CMD_DHCP */
+ #endif
  
- #if (CONFIG_COMMANDS & CFG_CMD_NFS)
+ #if defined(CONFIG_CMD_NFS)
  int do_nfs (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  {
        return netboot_common(NFS, cmdtp, argc, argv);
@@@ -99,7 -92,7 +99,7 @@@ U_BOOT_CMD
        "nfs\t- boot image via network using NFS protocol\n",
        "[loadAddress] [host ip addr:bootfilename]\n"
  );
- #endif        /* CFG_CMD_NFS */
+ #endif
  
  static void netboot_update_env (void)
  {
                ip_to_string (NetOurDNSIP, tmp);
                setenv ("dnsip", tmp);
        }
- #if (CONFIG_BOOTP_MASK & CONFIG_BOOTP_DNS2)
+ #if defined(CONFIG_BOOTP_DNS2)
        if (NetOurDNS2IP) {
                ip_to_string (NetOurDNS2IP, tmp);
                setenv ("dnsip2", tmp);
        if (NetOurNISDomain[0])
                setenv ("domain", NetOurNISDomain);
  
- #if (CONFIG_COMMANDS & CFG_CMD_SNTP) && (CONFIG_BOOTP_MASK & CONFIG_BOOTP_TIMEOFFSET)
+ #if defined(CONFIG_CMD_SNTP) \
+     && defined(CONFIG_BOOTP_TIMEOFFSET)
        if (NetTimeOffset) {
                sprintf (tmp, "%d", NetTimeOffset);
                setenv ("timeoffset", tmp);
        }
  #endif
- #if (CONFIG_COMMANDS & CFG_CMD_SNTP) && (CONFIG_BOOTP_MASK & CONFIG_BOOTP_NTPSERVER)
+ #if defined(CONFIG_CMD_SNTP) \
+     && defined(CONFIG_BOOTP_NTPSERVER)
        if (NetNtpServerIP) {
                ip_to_string (NetNtpServerIP, tmp);
                setenv ("ntpserverip", tmp);
@@@ -191,25 -186,18 +193,25 @@@ netboot_common (proto_t proto, cmd_tbl_
                break;
  
        default: printf ("Usage:\n%s\n", cmdtp->usage);
 +              SHOW_BOOT_PROGRESS(-80);
                return 1;
        }
  
 -      if ((size = NetLoop(proto)) < 0)
 +      SHOW_BOOT_PROGRESS(80);
 +      if ((size = NetLoop(proto)) < 0) {
 +              SHOW_BOOT_PROGRESS(-81);
                return 1;
 +      }
  
 +      SHOW_BOOT_PROGRESS(81);
        /* NetLoop ok, update environment */
        netboot_update_env();
  
        /* done if no file was loaded (no errors though) */
 -      if (size == 0)
 +      if (size == 0) {
 +              SHOW_BOOT_PROGRESS(-82);
                return 0;
 +      }
  
        /* flush cache */
        flush_cache(load_addr, size);
  
                printf ("Automatic boot of image at addr 0x%08lX ...\n",
                        load_addr);
 +              SHOW_BOOT_PROGRESS(82);
                rcode = do_bootm (cmdtp, 0, 1, local_args);
        }
  
  #ifdef CONFIG_AUTOSCRIPT
        if (((s = getenv("autoscript")) != NULL) && (strcmp(s,"yes") == 0)) {
                printf("Running autoscript at addr 0x%08lX ...\n", load_addr);
 +              SHOW_BOOT_PROGRESS(83);
                rcode = autoscript (load_addr);
        }
  #endif
 +#if defined(CONFIG_SHOW_BOOT_PROGRESS)
 +      if (rcode < 0)
 +              SHOW_BOOT_PROGRESS(-83);
 +      else
 +              SHOW_BOOT_PROGRESS(84);
 +#endif
        return rcode;
  }
  
- #if (CONFIG_COMMANDS & CFG_CMD_PING)
+ #if defined(CONFIG_CMD_PING)
  int do_ping (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  {
        if (argc < 2)
@@@ -269,9 -249,9 +271,9 @@@ U_BOOT_CMD
        "ping\t- send ICMP ECHO_REQUEST to network host\n",
        "pingAddress\n"
  );
- #endif        /* CFG_CMD_PING */
+ #endif
  
- #if (CONFIG_COMMANDS & CFG_CMD_CDP)
+ #if defined(CONFIG_CMD_CDP)
  
  static void cdp_update_env(void)
  {
@@@ -312,9 -292,9 +314,9 @@@ U_BOOT_CMD
        cdp,    1,      1,      do_cdp,
        "cdp\t- Perform CDP network configuration\n",
  );
- #endif        /* CFG_CMD_CDP */
+ #endif
  
- #if (CONFIG_COMMANDS & CFG_CMD_SNTP)
+ #if defined(CONFIG_CMD_SNTP)
  int do_sntp (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  {
        char *toff;
@@@ -350,6 -330,6 +352,6 @@@ U_BOOT_CMD
        "sntp\t- synchronize RTC via network\n",
        "[NTP server IP]\n"
  );
- #endif        /* CFG_CMD_SNTP */
+ #endif
  
- #endif        /* CFG_CMD_NET */
+ #endif
diff --combined common/cmd_reiser.c
@@@ -28,7 -28,7 +28,7 @@@
   */
  #include <common.h>
  
- #if (CONFIG_COMMANDS & CFG_CMD_REISER)
+ #if defined(CONFIG_CMD_REISER)
  #include <config.h>
  #include <command.h>
  #include <image.h>
@@@ -90,7 -90,7 +90,7 @@@ int do_reiserls (cmd_tbl_t *cmdtp, int 
        }
  
        if (!reiserfs_mount(part_length)) {
 -              printf ("** Bad Reisefs partition or disk - %s %d:%d **\n",  argv[1], dev, part);
 +              printf ("** Bad Reiserfs partition or disk - %s %d:%d **\n",  argv[1], dev, part);
                return 1;
        }
  
@@@ -183,7 -183,7 +183,7 @@@ int do_reiserload (cmd_tbl_t *cmdtp, in
                        return 1;
                }
  
 -              if (strncmp(info.type, BOOT_PART_TYPE, sizeof(info.type)) != 0) {
 +              if (strncmp((char *)info.type, BOOT_PART_TYPE, sizeof(info.type)) != 0) {
                        printf ("\n** Invalid partition type \"%.32s\""
                                " (expect \"" BOOT_PART_TYPE "\")\n",
                                info.type);
        }
  
        if (!reiserfs_mount(part_length)) {
 -              printf ("** Bad Reisefs partition or disk - %s %d:%d **\n",  argv[1], dev, part);
 +              printf ("** Bad Reiserfs partition or disk - %s %d:%d **\n",  argv[1], dev, part);
                return 1;
        }
  
@@@ -240,4 -240,4 +240,4 @@@ U_BOOT_CMD
        "      to address 'addr' from dos filesystem\n"
  );
  
- #endif        /* CONFIG_COMMANDS & CFG_CMD_REISER */
+ #endif
diff --combined disk/part.c
index 6ab5857,0e772ee..56b9427
mode 100755,100644..100644
@@@ -34,9 -34,9 +34,9 @@@
  #define PRINTF(fmt,args...)
  #endif
  
- #if ((CONFIG_COMMANDS & CFG_CMD_IDE)  || \
-      (CONFIG_COMMANDS & CFG_CMD_SCSI) || \
-      (CONFIG_COMMANDS & CFG_CMD_USB)  || \
+ #if (defined(CONFIG_CMD_IDE) || \
+      defined(CONFIG_CMD_SCSI) || \
+      defined(CONFIG_CMD_USB) || \
       defined(CONFIG_MMC) || \
       defined(CONFIG_SYSTEMACE) )
  
@@@ -46,13 -46,13 +46,13 @@@ struct block_drvr 
  };
  
  static const struct block_drvr block_drvr[] = {
- #if (CONFIG_COMMANDS & CFG_CMD_IDE)
+ #if defined(CONFIG_CMD_IDE)
        { .name = "ide", .get_dev = ide_get_dev, },
  #endif
- #if (CONFIG_COMMANDS & CFG_CMD_SCSI)
+ #if defined(CONFIG_CMD_SCSI)
        { .name = "scsi", .get_dev = scsi_get_dev, },
  #endif
- #if ((CONFIG_COMMANDS & CFG_CMD_USB) && defined(CONFIG_USB_STORAGE))
+ #if defined(CONFIG_CMD_USB) && defined(CONFIG_USB_STORAGE)
        { .name = "usb", .get_dev = usb_stor_get_dev, },
  #endif
  #if defined(CONFIG_MMC)
@@@ -86,9 -86,9 +86,9 @@@ block_dev_desc_t *get_dev(char* ifname
  }
  #endif
  
- #if ((CONFIG_COMMANDS & CFG_CMD_IDE)  || \
-      (CONFIG_COMMANDS & CFG_CMD_SCSI) || \
-      (CONFIG_COMMANDS & CFG_CMD_USB)  || \
+ #if (defined(CONFIG_CMD_IDE) || \
+      defined(CONFIG_CMD_SCSI) || \
+      defined(CONFIG_CMD_USB) || \
       defined(CONFIG_MMC) || \
       defined(CONFIG_SYSTEMACE) )
  
@@@ -174,12 -174,13 +174,12 @@@ void dev_print (block_dev_desc_t *dev_d
                puts ("            Capacity: not available\n");
        }
  }
- #endif        /* CFG_CMD_IDE || CFG_CMD_SCSI || CFG_CMD_USB || CONFIG_MMC */
+ #endif
  
- #if ((CONFIG_COMMANDS & CFG_CMD_IDE)  || \
-      (CONFIG_COMMANDS & CFG_CMD_SCSI) || \
-      (CONFIG_COMMANDS & CFG_CMD_USB)  || \
+ #if (defined(CONFIG_CMD_IDE) || \
+      defined(CONFIG_CMD_SCSI) || \
+      defined(CONFIG_CMD_USB) || \
       defined(CONFIG_MMC)              || \
 -     (defined(CONFIG_MMC) && defined(CONFIG_LPC2292)) || \
       defined(CONFIG_SYSTEMACE)          )
  
  #if defined(CONFIG_MAC_PARTITION) || \
@@@ -222,7 -223,7 +222,7 @@@ void init_part (block_dev_desc_t * dev_
  int get_partition_info (block_dev_desc_t *dev_desc, int part
                                        , disk_partition_t *info)
  {
 -              switch (dev_desc->part_type) {
 +      switch (dev_desc->part_type) {
  #ifdef CONFIG_MAC_PARTITION
        case PART_TYPE_MAC:
                if (get_partition_info_mac(dev_desc,part,info) == 0) {
@@@ -330,4 -331,4 +330,4 @@@ void print_part (block_dev_desc_t * dev
  # error nor CONFIG_ISO_PARTITION configured!
  #endif
  
- #endif        /* (CONFIG_COMMANDS & CFG_CMD_IDE) || CONFIG_COMMANDS & CFG_CMD_SCSI) */
+ #endif
diff --combined drivers/tsec.c
@@@ -176,7 -176,7 +176,7 @@@ int tsec_initialize(bd_t * bis, int ind
        priv->regs->maccfg1 |= MACCFG1_SOFT_RESET;
        priv->regs->maccfg1 &= ~(MACCFG1_SOFT_RESET);
  
- #if defined(CONFIG_MII) || (CONFIG_COMMANDS & CFG_CMD_MII) \
+ #if defined(CONFIG_MII) || defined(CONFIG_CMD_MII) \
        && !defined(BITBANGMII)
        miiphy_register(dev->name, tsec_miiphy_read, tsec_miiphy_write);
  #endif
@@@ -993,6 -993,11 +993,6 @@@ struct phy_info phy_info_M88E1111S = 
        (struct phy_cmd[]){     /* config */
                           /* Reset and configure the PHY */
                           {MIIM_CONTROL, MIIM_CONTROL_RESET, NULL},
 -                         {0x1d, 0x1f, NULL},
 -                         {0x1e, 0x200c, NULL},
 -                         {0x1d, 0x5, NULL},
 -                         {0x1e, 0x0, NULL},
 -                         {0x1e, 0x100, NULL},
                           {0x14, 0x0cd2, NULL}, /* Delay RGMII TX and RX */
                           {MIIM_GBIT_CONTROL, MIIM_GBIT_CONTROL_INIT, NULL},
                           {MIIM_ANAR, MIIM_ANAR_INIT, NULL},
@@@ -1032,16 -1037,14 +1032,16 @@@ static struct phy_info phy_info_M88E114
        "Marvell 88E1145",
        4,
        (struct phy_cmd[]){     /* config */
 +                         /* Reset the PHY */
 +                         {MIIM_CONTROL, MIIM_CONTROL_RESET, NULL},
 +
                           /* Errata E0, E1 */
                           {29, 0x001b, NULL},
                           {30, 0x418f, NULL},
                           {29, 0x0016, NULL},
                           {30, 0xa2da, NULL},
  
 -                         /* Reset and configure the PHY */
 -                         {MIIM_CONTROL, MIIM_CONTROL_RESET, NULL},
 +                         /* Configure the PHY */
                           {MIIM_GBIT_CONTROL, MIIM_GBIT_CONTROL_INIT, NULL},
                           {MIIM_ANAR, MIIM_ANAR_INIT, NULL},
                           {MIIM_88E1011_PHY_SCR, MIIM_88E1011_PHY_MDI_X_AUTO,
@@@ -1348,10 -1351,8 +1348,10 @@@ struct phy_info *get_phy_info(struct et
        /* loop through all the known PHY types, and find one that */
        /* matches the ID we read from the PHY. */
        for (i = 0; phy_info[i]; i++) {
 -              if (phy_info[i]->id == (phy_ID >> phy_info[i]->shift))
 +              if (phy_info[i]->id == (phy_ID >> phy_info[i]->shift)) {
                        theInfo = phy_info[i];
 +                      break;
 +              }
        }
  
        if (theInfo == NULL) {
@@@ -1442,7 -1443,7 +1442,7 @@@ static void relocate_cmds(void
        relocated = 1;
  }
  
- #if defined(CONFIG_MII) || (CONFIG_COMMANDS & CFG_CMD_MII) \
+ #if defined(CONFIG_MII) || defined(CONFIG_CMD_MII) \
        && !defined(BITBANGMII)
  
  struct tsec_private *get_priv_for_phy(unsigned char phyaddr)
@@@ -1501,7 -1502,6 +1501,6 @@@ static int tsec_miiphy_write(char *devn
        return 0;
  }
  
- #endif /* defined(CONFIG_MII) || (CONFIG_COMMANDS & CFG_CMD_MII)
-               && !defined(BITBANGMII) */
+ #endif
  
  #endif /* CONFIG_TSEC_ENET */
diff --combined fs/fat/fat.c
index 21a00b8,3824e1d..c068a84
mode 100755,100644..100644
@@@ -31,7 -31,7 +31,7 @@@
  #include <asm/byteorder.h>
  #include <part.h>
  
- #if (CONFIG_COMMANDS & CFG_CMD_FAT)
+ #if defined(CONFIG_CMD_FAT)
  
  /*
   * Convert a string to lowercase.
@@@ -70,11 -70,10 +70,11 @@@ in
  fat_register_device(block_dev_desc_t *dev_desc, int part_no)
  {
        unsigned char buffer[SECTOR_SIZE];
 +      disk_partition_t info;
  
        if (!dev_desc->block_read)
                return -1;
 -      cur_dev=dev_desc;
 +      cur_dev = dev_desc;
        /* check if we have a MBR (on floppies we have only a PBR) */
        if (dev_desc->block_read (dev_desc->dev, 0, 1, (ulong *) buffer) != 1) {
                printf ("** Can't read from device %d **\n", dev_desc->dev);
                /* no signature found */
                return -1;
        }
- #if ((CONFIG_COMMANDS & CFG_CMD_IDE)  || \
-      (CONFIG_COMMANDS & CFG_CMD_SCSI) || \
-      (CONFIG_COMMANDS & CFG_CMD_USB)  || \
-      (defined(CONFIG_MMC)) || \
+       if(!strncmp((char *)&buffer[DOS_FS_TYPE_OFFSET],"FAT",3)) {
+               /* ok, we assume we are on a PBR only */
+               cur_part = 1;
+               part_offset=0;
+       }
+       else {
+ #if (defined(CONFIG_CMD_IDE) || \
+      defined(CONFIG_CMD_SCSI) || \
+      defined(CONFIG_CMD_USB) || \
+      (defined(CONFIG_MMC) && defined(CONFIG_LPC2292)) || \
       defined(CONFIG_SYSTEMACE)          )
 -              disk_partition_t info;
 -              if(!get_partition_info(dev_desc, part_no, &info)) {
 -                      part_offset = info.start;
 -                      cur_part = part_no;
 -              }
 -              else {
 -                      printf ("** Partition %d not valid on device %d **\n",part_no,dev_desc->dev);
 -                      return -1;
 -              }
 +      /* First we assume, there is a MBR */
 +      if (!get_partition_info (dev_desc, part_no, &info)) {
 +              part_offset = info.start;
 +              cur_part = part_no;
 +      } else if (!strncmp((char *)&buffer[DOS_FS_TYPE_OFFSET], "FAT", 3)) {
 +              /* ok, we assume we are on a PBR only */
 +              cur_part = 1;
 +              part_offset = 0;
 +      } else {
 +              printf ("** Partition %d not valid on device %d **\n", part_no, dev_desc->dev);
 +              return -1;
 +      }
  #else
 +      if(!strncmp((char *)&buffer[DOS_FS_TYPE_OFFSET],"FAT",3)) {
 +              /* ok, we assume we are on a PBR only */
 +              cur_part = 1;
 +              part_offset = 0;
 +              info.start = part_offset;
 +      } else {
                /* FIXME we need to determine the start block of the
                 * partition where the DOS FS resides. This can be done
                 * by using the get_partition_info routine. For this
                 * purpose the libpart must be included.
                 */
 -              part_offset=32;
 +              part_offset = 32;
                cur_part = 1;
 -#endif
        }
 +#endif
        return 0;
  }
  
@@@ -979,8 -975,10 +985,10 @@@ file_fat_detectfs(void
                printf("No current device\n");
                return 1;
        }
- #if (CONFIG_COMMANDS & CFG_CMD_IDE) || (CONFIG_COMMANDS & CFG_CMD_SCSI) || \
-     (CONFIG_COMMANDS & CFG_CMD_USB) || (CONFIG_MMC)
+ #if defined(CONFIG_CMD_IDE) || \
+     defined(CONFIG_CMD_SCSI) || \
+     defined(CONFIG_CMD_USB) || \
+     (CONFIG_MMC)
        printf("Interface:  ");
        switch(cur_dev->if_type) {
                case IF_TYPE_IDE :      printf("IDE"); break;
@@@ -1021,4 -1019,4 +1029,4 @@@ file_fat_read(const char *filename, voi
        return do_fat_read(filename, buffer, maxsize, LS_NO);
  }
  
- #endif /* #if (CONFIG_COMMANDS & CFG_CMD_FAT) */
+ #endif
  #define CONFIG_LOADS_ECHO     1       /* echo on for serial download */
  #define CFG_LOADS_BAUD_CHANGE 1       /* allow baudrate change */
  
+ /*
+  * BOOTP options
+  */
+ #define CONFIG_BOOTP_BOOTFILESIZE
+ #define CONFIG_BOOTP_BOOTPATH
+ #define CONFIG_BOOTP_GATEWAY
+ #define CONFIG_BOOTP_HOSTNAME
+ /*
+  * Command line configuration.
+  */
+ #include <config_cmd_default.h>
+ #define CONFIG_CMD_PING
+ #define CONFIG_CMD_I2C
+ #if defined(CONFIG_PCI)
+     #define CONFIG_CMD_PCI
+ #endif
  #if defined(CFG_RAMBOOT)
-   #if defined(CONFIG_PCI)
-     #define  CONFIG_COMMANDS  ((CONFIG_CMD_DFL        \
-                                | CFG_CMD_PING         \
-                                | CFG_CMD_PCI          \
-                                | CFG_CMD_I2C)         \
-                               &                       \
-                                ~(CFG_CMD_ENV          \
-                                 | CFG_CMD_LOADS))
-   #else
-     #define  CONFIG_COMMANDS  ((CONFIG_CMD_DFL        \
-                                | CFG_CMD_PING         \
-                                | CFG_CMD_I2C)         \
-                               &                       \
-                                ~(CFG_CMD_ENV          \
-                                 | CFG_CMD_LOADS))
-   #endif
- #else
-   #if defined(CONFIG_PCI)
-     #define  CONFIG_COMMANDS  (CONFIG_CMD_DFL         \
-                               | CFG_CMD_PCI           \
-                               | CFG_CMD_PING          \
-                               | CFG_CMD_I2C)
-   #else
-     #define  CONFIG_COMMANDS  (CONFIG_CMD_DFL         \
-                               | CFG_CMD_PING          \
-                               | CFG_CMD_I2C)
-   #endif
+     #undef CONFIG_CMD_ENV
+     #undef CONFIG_CMD_LOADS
  #endif
  
- #include <cmd_confdefs.h>
  
  #undef CONFIG_WATCHDOG                        /* watchdog disabled */
  
  #define CFG_LOAD_ADDR 0x2000000       /* default load address */
  #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 */
  #else
      #define CFG_CBSIZE        256             /* Console I/O Buffer Size */
  /* Cache Configuration */
  #define CFG_DCACHE_SIZE               32768
  #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*/
  #endif
  
  #define BOOTFLAG_COLD 0x01            /* Normal Power-On: Boot from FLASH */
  #define BOOTFLAG_WARM 0x02            /* Software reboot */
  
- #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_SER_INDEX 2       /* which serial port to use */
  #endif
  #define       CONFIG_EXTRA_ENV_SETTINGS                                       \
     "netdev=eth0\0"                                                      \
     "consoledev=ttyS0\0"                                                 \
 -   "ramdiskaddr=600000\0"                                             \
 +   "ramdiskaddr=1000000\0"                                            \
     "ramdiskfile=your.ramdisk.u-boot\0"                                        \
     "fdtaddr=400000\0"                                                 \
     "fdtfile=your.fdt.dtb\0"
     "tftp $ramdiskaddr $ramdiskfile;"                                    \
     "tftp $loadaddr $bootfile;"                                          \
     "tftp $fdtaddr $fdtfile;"                                          \
 -   "bootm $loadaddr $ramdiskaddr"
 +   "bootm $loadaddr $ramdiskaddr $fdtaddr"
  
  #define CONFIG_BOOTCOMMAND  CONFIG_NFSBOOTCOMMAND
  
@@@ -43,7 -43,9 +43,7 @@@
  
  #define CONFIG_PCI
  #define CONFIG_TSEC_ENET              /* tsec ethernet support */
 -#undef CONFIG_TSEC_ENET               /* tsec ethernet support */
 -#undef  CONFIG_ETHER_ON_FCC             /* cpm FCC ethernet support */
 -#define  CONFIG_ETHER_ON_FCC             /* cpm FCC ethernet support */
 +#undef CONFIG_ETHER_ON_FCC             /* cpm FCC ethernet support */
  #define CONFIG_ENV_OVERWRITE
  #define CONFIG_SPD_EEPROM             /* Use SPD EEPROM for DDR setup*/
  #define CONFIG_DDR_DLL                        /* possible DLL fix needed */
  #endif        /* CONFIG_PCI */
  
  
 -#if defined(CONFIG_TSEC_ENET)
 +#ifdef CONFIG_TSEC_ENET
  
  #ifndef CONFIG_NET_MULTI
  #define CONFIG_NET_MULTI      1
  #endif
  
 +#ifndef CONFIG_MII
  #define CONFIG_MII            1       /* MII PHY management */
 +#endif
  #define CONFIG_TSEC1  1
  #define CONFIG_TSEC1_NAME     "TSEC0"
  #define CONFIG_TSEC2  1
  /* Options are: TSEC[0-1] */
  #define CONFIG_ETHPRIME               "TSEC0"
  
 -#elif defined(CONFIG_ETHER_ON_FCC)    /* CPM FCC Ethernet */
 +#endif /* CONFIG_TSEC_ENET */
 +
 +#ifdef CONFIG_ETHER_ON_FCC    /* CPM FCC Ethernet */
  
 -#define CONFIG_ETHER_ON_FCC   /* define if ether on FCC   */
  #undef  CONFIG_ETHER_NONE     /* define if ether on something else */
  #define CONFIG_ETHER_INDEX      2       /* which channel for ether */
  
    #define FETH3_RST           0x80
  #endif                                /* CONFIG_ETHER_INDEX */
  
 -#define CONFIG_MII                    /* MII PHY management */
 +#ifndef CONFIG_MII
 +#define CONFIG_MII            1       /* MII PHY management */
 +#endif
 +
  #define CONFIG_BITBANGMII             /* bit-bang MII PHY management */
  
  /*
  #define CONFIG_LOADS_ECHO     1       /* echo on for serial download */
  #define CFG_LOADS_BAUD_CHANGE 1       /* allow baudrate change */
  
+ /*
+  * BOOTP options
+  */
+ #define CONFIG_BOOTP_BOOTFILESIZE
+ #define CONFIG_BOOTP_BOOTPATH
+ #define CONFIG_BOOTP_GATEWAY
+ #define CONFIG_BOOTP_HOSTNAME
+ /*
+  * Command line configuration.
+  */
+ #include <config_cmd_default.h>
+ #define CONFIG_CMD_PING
+ #define CONFIG_CMD_I2C
+ #if defined(CONFIG_PCI)
+     #define CONFIG_CMD_PCI
+ #endif
+ #if defined(CONFIG_ETHER_ON_FCC)
+     #define CONFIG_CMD_MII
+ #endif
  #if defined(CFG_RAMBOOT)
-   #if defined(CONFIG_PCI)
-     #define  CONFIG_COMMANDS  ((CONFIG_CMD_DFL        \
-                                | CFG_CMD_PING         \
-                                | CFG_CMD_PCI          \
-                                | CFG_CMD_I2C)         \
-                               &                       \
-                                ~(CFG_CMD_ENV          \
-                                 | CFG_CMD_LOADS))
-   #elif defined(CONFIG_TSEC_ENET)
-     #define  CONFIG_COMMANDS  ((CONFIG_CMD_DFL        \
-                               | CFG_CMD_PING          \
-                               | CFG_CMD_I2C)          \
-                               & ~(CFG_CMD_ENV))
-   #elif defined(CONFIG_ETHER_ON_FCC)
-     #define  CONFIG_COMMANDS  ((CONFIG_CMD_DFL        \
-                                | CFG_CMD_MII          \
-                                | CFG_CMD_PING         \
-                                | CFG_CMD_I2C)         \
-                               & ~(CFG_CMD_ENV))
-   #endif
- #else
-   #if defined(CONFIG_PCI)
-     #define  CONFIG_COMMANDS  (CONFIG_CMD_DFL         \
-                               | CFG_CMD_PCI           \
-                               | CFG_CMD_PING          \
-                               | CFG_CMD_MII           \
-                               | CFG_CMD_I2C)
-   #elif defined(CONFIG_TSEC_ENET)
-     #define  CONFIG_COMMANDS  (CONFIG_CMD_DFL         \
-                               | CFG_CMD_PING          \
-                               | CFG_CMD_I2C           \
-                               | CFG_CMD_MII)
-   #elif defined(CONFIG_ETHER_ON_FCC)
-     #define  CONFIG_COMMANDS  (CONFIG_CMD_DFL         \
-                               | CFG_CMD_MII           \
-                               | CFG_CMD_PING          \
-                               | CFG_CMD_I2C)
-   #endif
+     #undef CONFIG_CMD_ENV
+     #undef CONFIG_CMD_LOADS
  #endif
  
- #include <cmd_confdefs.h>
  
  #undef CONFIG_WATCHDOG                        /* watchdog disabled */
  
  #define CFG_LOAD_ADDR 0x1000000       /* default load address */
  #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 */
  #else
      #define CFG_CBSIZE        256             /* Console I/O Buffer Size */
  /* Cache Configuration */
  #define CFG_DCACHE_SIZE               32768
  #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*/
  #endif
  
  #define BOOTFLAG_COLD 0x01            /* Normal Power-On: Boot from FLASH */
  #define BOOTFLAG_WARM 0x02            /* Software reboot */
  
- #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_SER_INDEX 2       /* which serial port to use */
  #endif
  
  #define       CONFIG_EXTRA_ENV_SETTINGS                                       \
     "netdev=eth0\0"                                                      \
 -   "consoledev=ttyS0\0"                                                 \
 -   "ramdiskaddr=400000\0"                                             \
 -   "ramdiskfile=your.ramdisk.u-boot\0"
 +   "consoledev=ttyCPM\0"                                              \
 +   "ramdiskaddr=1000000\0"                                            \
 +   "ramdiskfile=your.ramdisk.u-boot\0"                                        \
 +   "fdtaddr=400000\0"                                                 \
 +   "fdtfile=mpc8560ads.dtb\0"
  
  #define CONFIG_NFSBOOTCOMMAND                                         \
     "setenv bootargs root=/dev/nfs rw "                                  \
        "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \
        "console=$consoledev,$baudrate $othbootargs;"                     \
     "tftp $loadaddr $bootfile;"                                          \
 -   "bootm $loadaddr"
 +   "tftp $fdtaddr $fdtfile;"                                          \
 +   "bootm $loadaddr - $fdtaddr"
  
  #define CONFIG_RAMBOOTCOMMAND \
     "setenv bootargs root=/dev/ram rw "                                  \
        "console=$consoledev,$baudrate $othbootargs;"                     \
     "tftp $ramdiskaddr $ramdiskfile;"                                    \
     "tftp $loadaddr $bootfile;"                                          \
 -   "bootm $loadaddr $ramdiskaddr"
 +   "tftp $fdtaddr $fdtfile;"                                          \
 +   "bootm $loadaddr $ramdiskaddr $fdtaddr"
  
  #define CONFIG_BOOTCOMMAND  CONFIG_NFSBOOTCOMMAND
  
diff --combined include/configs/lwmon5.h
  /* Comment this out to enable USB 1.1 device */
  #define USB_2_0_DEVICE
  
- #define CMD_USB                       CFG_CMD_USB
- #else
- #define CMD_USB                       0       /* no USB on 440GRx             */
  #endif /* CONFIG_440EPX */
  
  /* Partitions */
  #define CONFIG_DOS_PARTITION
  #define CONFIG_ISO_PARTITION
  
- #define CONFIG_COMMANDS       (CONFIG_CMD_DFL |       \
-                              CFG_CMD_ASKENV   |       \
-                              CFG_CMD_DATE     |       \
-                              CFG_CMD_DHCP     |       \
-                              CFG_CMD_DIAG     |       \
-                              CFG_CMD_EEPROM   |       \
-                              CFG_CMD_ELF      |       \
-                              CFG_CMD_FAT      |       \
-                              CFG_CMD_I2C      |       \
-                              CFG_CMD_IRQ      |       \
-                              CFG_CMD_MII      |       \
-                              CFG_CMD_NET      |       \
-                              CFG_CMD_NFS      |       \
-                              CFG_CMD_PCI      |       \
-                              CFG_CMD_PING     |       \
-                              CFG_CMD_REGINFO  |       \
-                              CFG_CMD_SDRAM    |       \
-                              CMD_USB)
  
- #define CONFIG_SUPPORT_VFAT
+ /*
+  * BOOTP options
+  */
+ #define CONFIG_BOOTP_BOOTFILESIZE
+ #define CONFIG_BOOTP_BOOTPATH
+ #define CONFIG_BOOTP_GATEWAY
+ #define CONFIG_BOOTP_HOSTNAME
+ /*
+  * Command line configuration.
+  */
+ #include <config_cmd_default.h>
+ #define CONFIG_CMD_ASKENV
+ #define CONFIG_CMD_DATE
+ #define CONFIG_CMD_DHCP
+ #define CONFIG_CMD_DIAG
+ #define CONFIG_CMD_EEPROM
+ #define CONFIG_CMD_ELF
+ #define CONFIG_CMD_FAT
+ #define CONFIG_CMD_I2C
+ #define CONFIG_CMD_IRQ
+ #define CONFIG_CMD_MII
+ #define CONFIG_CMD_NET
+ #define CONFIG_CMD_NFS
+ #define CONFIG_CMD_PCI
+ #define CONFIG_CMD_PING
+ #define CONFIG_CMD_REGINFO
+ #define CONFIG_CMD_SDRAM
+ #ifdef CONFIG_440EPX
+ #define CONFIG_CMD_USB
+ #endif
  
- /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
- #include <cmd_confdefs.h>
  
  /*-----------------------------------------------------------------------
   * Miscellaneous configurable options
   *----------------------------------------------------------------------*/
+ #define CONFIG_SUPPORT_VFAT
  #define CFG_LONGHELP                  /* undef to save memory         */
  #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      */
  #else
  #define CFG_CBSIZE            256     /* Console I/O Buffer Size      */
  #define CFG_EBC_CFG           0xb8400000
  
  /*-----------------------------------------------------------------------
 + * Graphics (Fujitsu Lime)
 + *----------------------------------------------------------------------*/
 +/* SDRAM Clock frequency adjustment register */
 +#define CFG_LIME_SDRAM_CLOCK  0xC1FC0000
 +/* Lime Clock frequency is to set 133MHz */
 +#define CFG_LIME_CLOCK_133MHZ 0x10000
 +
 +/* SDRAM Parameter register */
 +#define CFG_LIME_MMR          0xC1FCFFFC
 +/* SDRAM parameter value */
 +#define CFG_LIME_MMR_VALUE    0x414FB7F2
 +
 +/*-----------------------------------------------------------------------
   * GPIO Setup
   *----------------------------------------------------------------------*/
  #define CFG_GPIO_PHY1_RST     12
  #define CFG_GPIO_FLASH_WP     14
  #define CFG_GPIO_PHY0_RST     22
 -#define CFG_GPIO_HUB_RST      50
  #define CFG_GPIO_WATCHDOG     58
  #define CFG_GPIO_LIME_S               59
  #define CFG_GPIO_LIME_RST     60
  {GPIO1_BASE, GPIO_IN , GPIO_ALT1, GPIO_OUT_0}, /* GPIO47 UIC_IRQ(8)   DMA_ACK(0)      */      \
  {GPIO1_BASE, GPIO_IN , GPIO_ALT1, GPIO_OUT_0}, /* GPIO48 UIC_IRQ(9)   DMA_EOT/TC(0)   */      \
  {GPIO1_BASE, GPIO_OUT, GPIO_SEL , GPIO_OUT_1}, /* GPIO49  Unselect via TraceSelect Bit        */      \
 -{GPIO1_BASE, GPIO_OUT, GPIO_SEL , GPIO_OUT_0}, /* GPIO50  Unselect via TraceSelect Bit        */      \
 +{GPIO1_BASE, GPIO_IN,  GPIO_SEL , GPIO_OUT_0}, /* GPIO50  Unselect via TraceSelect Bit        */      \
  {GPIO1_BASE, GPIO_IN , GPIO_SEL , GPIO_OUT_0}, /* GPIO51  Unselect via TraceSelect Bit        */      \
  {GPIO1_BASE, GPIO_IN , GPIO_SEL , GPIO_OUT_0}, /* GPIO52  Unselect via TraceSelect Bit        */      \
  {GPIO1_BASE, GPIO_OUT, GPIO_SEL , GPIO_OUT_1}, /* GPIO53  Unselect via TraceSelect Bit        */      \
   *----------------------------------------------------------------------*/
  #define CFG_DCACHE_SIZE               (32<<10)  /* For AMCC 440 CPUs                  */
  #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  */
  #endif
  
  #define BOOTFLAG_COLD 0x01            /* Normal Power-On: Boot from FLASH     */
  #define BOOTFLAG_WARM 0x02            /* Software reboot                      */
  
- #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_SER_INDEX 2           /* which serial port to use */
  #endif
  #ifdef CFG_ENV_IS_IN_FLASH
  #define CFG_ENV_SECT_SIZE     0x10000 /* size of one complete sector          */
  #define CFG_ENV_ADDR          (CFG_MONITOR_BASE-CFG_ENV_SECT_SIZE)
 -#define       CFG_ENV_SIZE            0x2000  /* Total Size of Environment Sector     */
 +#define CFG_ENV_SIZE          0x2000  /* Total Size of Environment Sector     */
 +
 +#define CONFIG_ENV_OVERWRITE  1
  
  /* Address and size of Redundant Environment Sector   */
  #define CFG_ENV_ADDR_REDUND   (CFG_ENV_ADDR-CFG_ENV_SECT_SIZE)
  #define CFG_ENV_SIZE_REDUND   (CFG_ENV_SIZE)
  #endif /* CFG_ENV_IS_IN_FLASH */
  
 +#define ENV_NAME_REVLEV       "revision_level"
 +#define ENV_NAME_SOLDER       "solder_switch"
 +#define ENV_NAME_DIP  "dip"
 +
  /*-----------------------------------------------------------------------
   * DDR SDRAM
   *----------------------------------------------------------------------*/
  #define CONFIG_SPD_EEPROM               /* Use SPD EEPROM for setup             */
  #undef CONFIG_DDR_ECC                 /* don't use ECC                        */
  #define SPD_EEPROM_ADDRESS      {0x50}
 +#define       CONFIG_PROG_SDRAM_TLB   1
  
  /*-----------------------------------------------------------------------
   * I2C
  #define       CONFIG_EXTRA_ENV_SETTINGS                                       \
        "netdev=eth0\0"                                                 \
        "hostname=pcs440ep\0"                                           \
 +      "use_eeprom_ethaddr=default\0"                                  \
 +      "cs_test=off\0"                                                 \
        "nfsargs=setenv bootargs root=/dev/nfs rw "                     \
                "nfsroot=${serverip}:${rootpath}\0"                     \
        "ramargs=setenv bootargs root=/dev/ram rw\0"                    \
  #define CONFIG_BOOTDELAY      5       /* autoboot after 5 seconds     */
  #endif
  
 +#define CONFIG_PREBOOT        "echo;" \
 +      "echo Type \"run flash_nfs\" to mount root filesystem over NFS;" \
 +      "echo"
 +
 +/* check U-Boot image with SHA1 sum */
 +#define CONFIG_SHA1_CHECK_UB_IMG      1
 +#define CONFIG_SHA1_START             CFG_MONITOR_BASE
 +#define CONFIG_SHA1_LEN                       CFG_MONITOR_LEN
 +
 +/*-----------------------------------------------------------------------
 + * Definitions for status LED
 + */
 +#define CONFIG_STATUS_LED     1       /* Status LED enabled           */
 +#define CONFIG_BOARD_SPECIFIC_LED     1
 +
 +#define STATUS_LED_BIT                0x08                    /* LED 1 is on GPIO_PPC_1 */
 +#define STATUS_LED_PERIOD     ((CFG_HZ / 2) / 5)      /* blink at 5 Hz */
 +#define STATUS_LED_STATE      STATUS_LED_OFF
 +#define STATUS_LED_BIT1               0x04                    /* LED 2 is on GPIO_PPC_2 */
 +#define STATUS_LED_PERIOD1    ((CFG_HZ / 2) / 5)      /* blink at 5 Hz */
 +#define STATUS_LED_STATE1     STATUS_LED_ON
 +#define STATUS_LED_BIT2               0x02                    /* LED 3 is on GPIO_PPC_3 */
 +#define STATUS_LED_PERIOD2    ((CFG_HZ / 2) / 5)      /* blink at 5 Hz */
 +#define STATUS_LED_STATE2     STATUS_LED_OFF
 +#define STATUS_LED_BIT3               0x01                    /* LED 4 is on GPIO_PPC_4 */
 +#define STATUS_LED_PERIOD3    ((CFG_HZ / 2) / 5)      /* blink at 5 Hz */
 +#define STATUS_LED_STATE3     STATUS_LED_OFF
 +
 +#define CONFIG_SHOW_BOOT_PROGRESS     1
 +
  #define CONFIG_BAUDRATE               115200
  
  #define CONFIG_LOADS_ECHO     1       /* echo on for serial download  */
  #define CONFIG_HW_WATCHDOG                    /* watchdog */
  #endif
  
- #define CONFIG_COMMANDS              (CONFIG_CMD_DFL  | \
-                               CFG_CMD_ASKENV  | \
-                               CFG_CMD_DHCP    | \
-                               CFG_CMD_DIAG    | \
-                               CFG_CMD_EEPROM  | \
-                               CFG_CMD_ELF     | \
-                               CFG_CMD_EXT2    | \
-                               CFG_CMD_FAT     | \
-                               CFG_CMD_I2C     | \
-                               CFG_CMD_IDE     | \
-                               CFG_CMD_IRQ     | \
-                               CFG_CMD_MII     | \
-                               CFG_CMD_NET     | \
-                               CFG_CMD_NFS     | \
-                               CFG_CMD_PCI     | \
-                               CFG_CMD_PING    | \
-                               CFG_CMD_REGINFO | \
-                               CFG_CMD_REISER  | \
-                               CFG_CMD_SDRAM   | \
-                               CFG_CMD_USB     )
  
+ /*
+  * BOOTP options
+  */
+ #define CONFIG_BOOTP_BOOTFILESIZE
+ #define CONFIG_BOOTP_BOOTPATH
+ #define CONFIG_BOOTP_GATEWAY
+ #define CONFIG_BOOTP_HOSTNAME
  
- #define CONFIG_SUPPORT_VFAT
  
- /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
- #include <cmd_confdefs.h>
+ /*
+  * Command line configuration.
+  */
+ #include <config_cmd_default.h>
+ #define CONFIG_CMD_ASKENV
+ #define CONFIG_CMD_DHCP
+ #define CONFIG_CMD_DIAG
+ #define CONFIG_CMD_EEPROM
+ #define CONFIG_CMD_ELF
+ #define CONFIG_CMD_I2C
+ #define CONFIG_CMD_IRQ
+ #define CONFIG_CMD_MII
+ #define CONFIG_CMD_NET
+ #define CONFIG_CMD_NFS
+ #define CONFIG_CMD_PCI
+ #define CONFIG_CMD_PING
+ #define CONFIG_CMD_REGINFO
+ #define CONFIG_CMD_SDRAM
+ #define CONFIG_CMD_EXT2
+ #define CONFIG_CMD_FAT
+ #define CONFIG_CMD_USB
+ #define CONFIG_SUPPORT_VFAT
  
  /*
   * Miscellaneous configurable options
   */
  #define CFG_LONGHELP                  /* undef to save memory         */
  #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      */
  #else
  #define CFG_CBSIZE            256     /* Console I/O Buffer Size      */
   */
  #define CFG_DCACHE_SIZE               (32<<10) /* For AMCC 440 CPUs                   */
  #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        */
  #endif
  
  #define BOOTFLAG_COLD 0x01            /* Normal Power-On: Boot from FLASH     */
  #define BOOTFLAG_WARM 0x02            /* Software reboot                      */
  
- #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_SER_INDEX 2       /* which serial port to use */
  #endif
  
 +/*-----------------------------------------------------------------------
 + * IDE/ATA stuff Supports IDE harddisk
 + *-----------------------------------------------------------------------
 + */
 +
 +#undef  CONFIG_IDE_8xx_PCCARD         /* Use IDE with PC Card Adapter */
 +
 +#undef  CONFIG_IDE_8xx_DIRECT         /* Direct IDE    not supported  */
 +#undef  CONFIG_IDE_LED                        /* LED   for ide not supported  */
 +
 +#define CFG_IDE_MAXBUS                1       /* max. 1 IDE bus               */
 +#define CFG_IDE_MAXDEVICE     1       /* max. 2 drives per IDE bus    */
 +
 +#define CONFIG_IDE_PREINIT    1
 +#define CONFIG_IDE_RESET      1
 +
 +#define CFG_ATA_IDE0_OFFSET   0x0000
 +
 +#define CFG_ATA_BASE_ADDR     CFG_CF1
 +
 +/* Offset for data I/O                        */
 +#define CFG_ATA_DATA_OFFSET   0
 +
 +/* Offset for normal register accesses        */
 +#define CFG_ATA_REG_OFFSET    (CFG_ATA_DATA_OFFSET)
 +
 +/* Offset for alternate registers     */
 +#define CFG_ATA_ALT_OFFSET    (0x0000)
 +
 +/* These addresses need to be shifted one place to the left
 + * ( bus per_addr 20 -30 is connectsd on CF bus A10-A0)
 + * These values are shifted
 + */
 +#define CFG_ATA_PORT_ADDR(port) ((port) << 1)
 +
  #endif        /* __CONFIG_H */
  /* Comment this out to enable USB 1.1 device */
  #define USB_2_0_DEVICE
  
- #define CMD_USB                       CFG_CMD_USB
- #else
- #define CMD_USB                       0       /* no USB on 440GRx             */
  #endif /* CONFIG_440EPX */
  
  /* Partitions */
  #define CONFIG_DOS_PARTITION
  #define CONFIG_ISO_PARTITION
  
- #define CONFIG_COMMANDS       (CONFIG_CMD_DFL |       \
-                              CFG_CMD_ASKENV   |       \
-                              CFG_CMD_DHCP     |       \
-                              CFG_CMD_DTT      |       \
-                              CFG_CMD_DIAG     |       \
-                              CFG_CMD_EEPROM   |       \
-                              CFG_CMD_ELF      |       \
-                              CFG_CMD_FAT      |       \
-                              CFG_CMD_I2C      |       \
-                              CFG_CMD_IRQ      |       \
-                              CFG_CMD_MII      |       \
-                              CFG_CMD_NAND     |       \
-                              CFG_CMD_NET      |       \
-                              CFG_CMD_NFS      |       \
-                              CFG_CMD_PCI      |       \
-                              CFG_CMD_PING     |       \
-                              CFG_CMD_REGINFO  |       \
-                              CFG_CMD_SDRAM    |       \
-                              CMD_USB)
+ /*
+  * BOOTP options
+  */
+ #define CONFIG_BOOTP_BOOTFILESIZE
+ #define CONFIG_BOOTP_BOOTPATH
+ #define CONFIG_BOOTP_GATEWAY
+ #define CONFIG_BOOTP_HOSTNAME
+ /*
+  * Command line configuration.
+  */
+ #include <config_cmd_default.h>
+ #define CONFIG_CMD_ASKENV
+ #define CONFIG_CMD_DHCP
+ #define CONFIG_CMD_DTT
+ #define CONFIG_CMD_DIAG
+ #define CONFIG_CMD_EEPROM
+ #define CONFIG_CMD_ELF
+ #define CONFIG_CMD_FAT
+ #define CONFIG_CMD_I2C
+ #define CONFIG_CMD_IRQ
+ #define CONFIG_CMD_MII
+ #define CONFIG_CMD_NAND
+ #define CONFIG_CMD_NET
+ #define CONFIG_CMD_NFS
+ #define CONFIG_CMD_PCI
+ #define CONFIG_CMD_PING
+ #define CONFIG_CMD_REGINFO
+ #define CONFIG_CMD_SDRAM
+ #ifdef CONFIG_440EPX
+ #define CONFIG_CMD_USB
+ #endif
  
  /* POST support */
  #define CONFIG_POST           (CFG_POST_MEMORY   | \
                                 CFG_POST_CPU      | \
                                 CFG_POST_UART     | \
                                 CFG_POST_I2C      | \
 +                               CFG_POST_CACHE    | \
 +                               CFG_POST_FPU      | \
 +                               CFG_POST_ETHER    | \
                                 CFG_POST_SPR)
  
  #define CFG_POST_WORD_ADDR    (CFG_GBL_DATA_OFFSET - 0x4)
  #define CONFIG_LOGBUFFER
 +#define CFG_POST_CACHE_ADDR   0x10000000 /* free virtual address      */
  
  #define CFG_CONSOLE_IS_IN_ENV /* Otherwise it catches logbuffer as output */
  
  #define CONFIG_SUPPORT_VFAT
  
- /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
- #include <cmd_confdefs.h>
  /*-----------------------------------------------------------------------
   * Miscellaneous configurable options
   *----------------------------------------------------------------------*/
  #define CFG_LONGHELP                  /* undef to save memory         */
  #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      */
  #else
  #define CFG_CBSIZE            256     /* Console I/O Buffer Size      */
   *----------------------------------------------------------------------*/
  #define CFG_DCACHE_SIZE               (32<<10)  /* For AMCC 440 CPUs                  */
  #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  */
  #endif
  
  #define BOOTFLAG_COLD 0x01            /* Normal Power-On: Boot from FLASH     */
  #define BOOTFLAG_WARM 0x02            /* Software reboot                      */
  
- #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_SER_INDEX 2           /* which serial port to use */
  #endif
diff --combined include/configs/stxssa.h
  #define CONFIG_CPM2           1       /* has CPM2 */
  #define CONFIG_STXSSA         1       /* Silicon Tx GPPP SSA board specific*/
  
 -#undef  CONFIG_PCI                    /* pci ethernet support */
 -#define CONFIG_TSEC_ENET              /* tsec ethernet support*/
 -#undef CONFIG_ETHER_ON_FCC             /* cpm FCC ethernet support */
 +#define CONFIG_PCI                    /* PCI ethernet support */
 +#define CONFIG_TSEC_ENET              /* tsec ethernet support*/
 +#undef CONFIG_ETHER_ON_FCC            /* cpm FCC ethernet support */
  #define CONFIG_ENV_OVERWRITE
 -#define CONFIG_SPD_EEPROM               /* Use SPD EEPROM for DDR setup */
 -#undef  CONFIG_DDR_ECC                        /* only for ECC DDR module */
 -#undef CONFIG_DDR_DLL                  /* possible DLL fix needed */
 +#define CONFIG_SPD_EEPROM             /* Use SPD EEPROM for DDR setup */
 +#undef        CONFIG_DDR_ECC                  /* only for ECC DDR module */
 +#undef CONFIG_DDR_DLL                 /* possible DLL fix needed */
  #define CONFIG_DDR_2T_TIMING          /* Sets the 2T timing bit */
  
  
  /* sysclk for MPC85xx
   */
  
 -#define CONFIG_SYS_CLK_FREQ     33000000 /* most pci cards are 33Mhz */
 +#define CONFIG_SYS_CLK_FREQ   33000000 /* most pci cards are 33Mhz */
  
  /* Blinkin' LEDs for Robert :-)
  */
  /*
   * These can be toggled for performance analysis, otherwise use default.
   */
 -#define CONFIG_L2_CACHE                     /* toggle L2 cache         */
 -#define  CONFIG_BTB                          /* toggle branch predition */
 -#define  CONFIG_ADDR_STREAMING               /* toggle addr streaming   */
 +#define CONFIG_L2_CACHE                               /* toggle L2 cache             */
 +#define  CONFIG_BTB                           /* toggle branch predition */
 +#define  CONFIG_ADDR_STREAMING                        /* toggle addr streaming        */
  
 -#define CONFIG_BOARD_EARLY_INIT_F   1        /* Call board_pre_init      */
 +#define CONFIG_BOARD_EARLY_INIT_F   1         /* Call board_pre_init   */
  
 -#undef  CFG_DRAM_TEST                       /* memory test, takes time  */
 -#define CFG_MEMTEST_START       0x00200000  /* memtest region */
 -#define CFG_MEMTEST_END         0x00400000
 +#undef        CFG_DRAM_TEST                           /* memory test, takes time      */
 +#define CFG_MEMTEST_START     0x00200000      /* memtest region */
 +#define CFG_MEMTEST_END               0x00400000
  
  
 -/* Localbus connector.  There are many options that can be
 +/* Localbus connector.        There are many options that can be
   * connected here, including sdram or lots of flash.
   * This address, however, is used to configure a 256M local bus
   * window that includes the Config latch below.
   */
 -#define CFG_LBC_OPTION_BASE   0xF0000000      /* Localbus Extension */
 +#define CFG_LBC_OPTION_BASE   0xF0000000      /* Localbus Extension */
  #define CFG_LBC_OPTION_SIZE   256             /* 256MB */
  
  /* There are various flash options used, we configure for the largest,
   * sizes.
   */
  #ifdef CONFIG_STXSSA_4M
 -#define CFG_FLASH_BASE                0xFFC00000      /* start of  4 MiB flash */
 +#define CFG_FLASH_BASE                0xFFC00000      /* start of  4 MiB flash */
  #else
 -#define CFG_FLASH_BASE                0xFC000000      /* start of 64 MiB flash */
 +#define CFG_FLASH_BASE                0xFC000000      /* start of 64 MiB flash */
  #endif
  #define CFG_BR0_PRELIM        (CFG_FLASH_BASE | 0x1801) /* port size 32bit     */
  #define CFG_OR0_PRELIM        (CFG_FLASH_BASE | 0x0FF7)
  
  #define CFG_FLASH_CFI         1
  #define CFG_FLASH_CFI_DRIVER  1
 -#undef CFG_FLASH_USE_BUFFER_WRITE     /* use buffered writes (20x faster) */
 +#undef CFG_FLASH_USE_BUFFER_WRITE     /* use buffered writes (20x faster) */
  #define CFG_MAX_FLASH_SECT    256     /* max number of sectors on one chip */
  #define CFG_MAX_FLASH_BANKS   1       /* max number of memory banks   */
  
   */
  #define CFG_LBC_CFGLATCH_BASE 0xFB000000      /* Base of config latch */
  #define CFG_BR1_PRELIM                0xFB001801      /* 32-bit port */
 -#define CFG_OR1_PRELIM                0xFFFF0FF7      /* 64K is enough */
 +#define CFG_OR1_PRELIM                0xFFFF0FF7      /* 64K is enough */
  
 -#define CFG_MONITOR_BASE      TEXT_BASE       /* start of monitor     */
 +#define CFG_MONITOR_BASE      TEXT_BASE       /* start of monitor     */
  
  #if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
  #define CFG_RAMBOOT
  #else
 -#undef  CFG_RAMBOOT
 +#undef        CFG_RAMBOOT
  #endif
  
  #ifdef CFG_RAMBOOT
 -#define CFG_CCSRBAR_DEFAULT   0x40000000      /* CCSRBAR by BDI cfg   */
 +#define CFG_CCSRBAR_DEFAULT   0x40000000      /* CCSRBAR by BDI cfg   */
  #else
 -#define CFG_CCSRBAR_DEFAULT   0xff700000      /* CCSRBAR Default      */
 +#define CFG_CCSRBAR_DEFAULT   0xff700000      /* CCSRBAR Default      */
  #endif
 -#define CFG_CCSRBAR             0xe0000000      /* relocated CCSRBAR    */
 +#define CFG_CCSRBAR           0xe0000000      /* relocated CCSRBAR    */
  #define CFG_IMMR              CFG_CCSRBAR     /* PQII uses CFG_IMMR   */
  
  
  #define CFG_DDR_SDRAM_BASE    0x00000000      /* DDR is system memory  */
  #define CFG_SDRAM_BASE                CFG_DDR_SDRAM_BASE
  
 -#define SPD_EEPROM_ADDRESS    0x54            /*  DDR DIMM */
 +#define SPD_EEPROM_ADDRESS    0x54            /*  DDR DIMM */
  
  #undef CONFIG_CLOCKS_IN_MHZ
  
  /* local bus definitions */
 -#define CFG_BR2_PRELIM                0xf8001861      /* 64MB localbus SDRAM  */
 +#define CFG_BR2_PRELIM                0xf8001861      /* 64MB localbus SDRAM  */
  #define CFG_OR2_PRELIM                0xfc006901
 -#define CFG_LBC_LCRR          0x00030004      /* local bus freq       */
 +#define CFG_LBC_LCRR          0x00030004      /* local bus freq       */
  #define CFG_LBC_LBCR          0x00000000
  #define CFG_LBC_LSRT          0x20000000
  #define CFG_LBC_MRTPR         0x20000000
  #define CFG_LBC_LSDMR_5               0x4061b723
  
  #define CONFIG_L1_INIT_RAM
 -#define CFG_INIT_RAM_LOCK     1
 -#define CFG_INIT_RAM_ADDR       0x60000000      /* Initial RAM address  */
 -#define CFG_INIT_RAM_END      0x4000          /* End of used area in RAM */
 +#define CFG_INIT_RAM_LOCK     1
 +#define CFG_INIT_RAM_ADDR     0x60000000      /* Initial RAM address  */
 +#define CFG_INIT_RAM_END      0x4000          /* End of used area in RAM */
  
 -#define CFG_GBL_DATA_SIZE     128             /* num bytes initial data */
 +#define CFG_GBL_DATA_SIZE     128             /* num bytes initial data */
  #define CFG_GBL_DATA_OFFSET   (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
  #define CFG_INIT_SP_OFFSET    CFG_GBL_DATA_OFFSET
  
 -#define CFG_MONITOR_LEN               (256 * 1024)    /* Reserve 256 kB for Mon */
 -#define CFG_MALLOC_LEN                (512 * 1024)    /* Reserved for malloc */
 +#define CFG_MONITOR_LEN               (256 * 1024)    /* Reserve 256 kB for Mon */
 +#define CFG_MALLOC_LEN                (512 * 1024)    /* Reserved for malloc */
  
  /* Serial Port */
  #define CONFIG_CONS_INDEX     2
  #undef        CONFIG_SERIAL_SOFTWARE_FIFO
  #define CFG_NS16550
  #define CFG_NS16550_SERIAL
 -#define CFG_NS16550_REG_SIZE    1
 +#define CFG_NS16550_REG_SIZE  1
  #define CFG_NS16550_CLK               get_bus_freq(0)
  
  #define CFG_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 115200}
  
 -#define CFG_NS16550_COM1        (CFG_CCSRBAR+0x4500)
 -#define CFG_NS16550_COM2        (CFG_CCSRBAR+0x4600)
 +#define CFG_NS16550_COM1      (CFG_CCSRBAR+0x4500)
 +#define CFG_NS16550_COM2      (CFG_CCSRBAR+0x4600)
  
  #define CONFIG_CMDLINE_EDITING        1       /* add command line history     */
  #define CFG_HUSH_PARSER               1       /* Use the HUSH parser          */
 -#ifdef  CFG_HUSH_PARSER
 +#ifdef        CFG_HUSH_PARSER
  #define CFG_PROMPT_HUSH_PS2 "> "
  #endif
  
  /* I2C */
  #define CONFIG_FSL_I2C                        /* Use FSL common I2C driver */
 -#define  CONFIG_HARD_I2C              /* I2C with hardware support*/
 +#define  CONFIG_HARD_I2C              /* I2C with hardware support*/
  #undef        CONFIG_SOFT_I2C                 /* I2C bit-banged */
  #define CFG_I2C_SPEED         400000  /* I2C speed and slave address  */
  #define CFG_I2C_SLAVE         0x7F
  #if 0
 -#define CFG_I2C_NOPROBES        {0x00}  /* Don't probe these addrs */
 +#define CFG_I2C_NOPROBES      {0x00}  /* Don't probe these addrs */
  #else
  /* I did the 'if 0' so we could keep the syntax above if ever needed. */
  #undef CFG_I2C_NOPROBES
  #endif
  #define CFG_I2C_OFFSET                0x3000
  
 -/* I2C EEPROM.  AT24C32, we keep our environment in here.
 +/* I2C EEPROM.        AT24C32, we keep our environment in here.
  */
  #define CFG_I2C_EEPROM_ADDR           0x51    /* 1010001x             */
  #define CFG_I2C_EEPROM_ADDR_LEN               2
  #if defined(CONFIG_PCI)               /* PCI Ethernet card */
  
  #define CONFIG_NET_MULTI
 -#define CONFIG_PCI_PNP                        /* do pci plug-and-play */
 +#define CONFIG_PCI_PNP                        /* do pci plug-and-play */
  
 -#undef CONFIG_EEPRO100
 -#undef CONFIG_TULIP
 +#define CONFIG_EEPRO100
 +#define CONFIG_TULIP
  
  #if !defined(CONFIG_PCI_PNP)
 -  #define PCI_ENET0_IOADDR            0xe0000000
 -  #define PCI_ENET0_MEMADDR     0xe0000000
 -  #define PCI_IDSEL_NUMBER      0x0c  /* slot0->3(IDSEL)=12->15 */
 +  #define PCI_ENET0_IOADDR    0xe0000000
 +  #define PCI_ENET0_MEMADDR   0xe0000000
 +  #define PCI_IDSEL_NUMBER    0x0c    /* slot0->3(IDSEL)=12->15 */
  #endif
  
 -#undef CONFIG_PCI_SCAN_SHOW
 -#define CFG_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
 +#define CONFIG_PCI_SCAN_SHOW
 +#define CFG_PCI_SUBSYS_VENDORID 0x1057        /* Motorola */
  
  #endif /* CONFIG_PCI */
  
  #if defined(CONFIG_TSEC_ENET)
  
  #ifndef CONFIG_NET_MULTI
 -#define CONFIG_NET_MULTI      1
 +#define CONFIG_NET_MULTI      1
  #endif
  
  #define CONFIG_MII            1       /* MII PHY management           */
  #define CONFIG_TSEC1_NAME     "TSEC0"
  #define CONFIG_TSEC2  1
  #define CONFIG_TSEC2_NAME     "TSEC1"
 -#undef CONFIG_MPS85XX_FEC
 +#define CONFIG_MPS85XX_FEC
  
  #define TSEC1_PHY_ADDR                2
  #define TSEC2_PHY_ADDR                4
  
  #elif defined(CONFIG_ETHER_ON_FCC)    /* CPM FCC Ethernet */
  
 -#define CONFIG_ETHER_ON_FCC2             /* define if ether on FCC   */
 -#undef  CONFIG_ETHER_NONE               /* define if ether on something else */
 -#define CONFIG_ETHER_INDEX      2       /* which channel for ether  */
 +#define CONFIG_ETHER_ON_FCC2          /* define if ether on FCC   */
 +#undef        CONFIG_ETHER_NONE               /* define if ether on something else */
 +#define CONFIG_ETHER_INDEX    2       /* which channel for ether  */
  
  #if (CONFIG_ETHER_INDEX == 2)
    /*
     * - Select bus for bd/buffers
     * - Full duplex
     */
 -  #define CFG_CMXFCR_MASK       (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
 -  #define CFG_CMXFCR_VALUE      (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
 -  #define CFG_CPMFCR_RAMTYPE    0
 +  #define CFG_CMXFCR_MASK     (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
 +  #define CFG_CMXFCR_VALUE    (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
 +  #define CFG_CPMFCR_RAMTYPE  0
  #if 0
 -  #define CFG_FCC_PSMR          (FCC_PSMR_FDE)
 +  #define CFG_FCC_PSMR                (FCC_PSMR_FDE)
  #else
 -  #define CFG_FCC_PSMR          0
 +  #define CFG_FCC_PSMR                0
  #endif
    #define FETH2_RST           0x01
  #elif (CONFIG_ETHER_INDEX == 3)
    /* need more definitions here for FE3 */
    #define FETH3_RST           0x80
 -#endif                                /* CONFIG_ETHER_INDEX */
 +#endif                                        /* CONFIG_ETHER_INDEX */
  
  /* MDIO is done through the TSEC0 control.
  */
  
  #define       CONFIG_TIMESTAMP                /* Print image info with ts     */
  
+ /*
+  * BOOTP options
+  */
+ #define CONFIG_BOOTP_BOOTFILESIZE
+ #define CONFIG_BOOTP_BOOTPATH
+ #define CONFIG_BOOTP_GATEWAY
+ #define CONFIG_BOOTP_HOSTNAME
+ /*
+  * Command line configuration.
+  */
+ #include <config_cmd_default.h>
+ #define CONFIG_CMD_PING
+ #define CONFIG_CMD_I2C
+ #if defined(CONFIG_PCI)
+     #define CONFIG_CMD_PCI
+ #endif
+ #if defined(CONFIG_TSEC_ENET) || defined(CONFIG_ETHER_ON_FCC)
+     #define CONFIG_CMD_MII
+ #endif
  #if defined(CFG_RAMBOOT)
-   #if defined(CONFIG_PCI)
-   #define  CONFIG_COMMANDS    ((CONFIG_CMD_DFL | CFG_CMD_PCI | \
-                               CFG_CMD_PING | CFG_CMD_I2C) & \
-                                ~(CFG_CMD_ENV | \
-                                 CFG_CMD_LOADS ))
-   #elif defined(CONFIG_TSEC_ENET)
-   #define  CONFIG_COMMANDS    ((CONFIG_CMD_DFL | CFG_CMD_PING | \
-                               CFG_CMD_MII | CFG_CMD_I2C ) & \
-                               ~(CFG_CMD_ENV))
-   #elif defined(CONFIG_ETHER_ON_FCC)
-   #define  CONFIG_COMMANDS    ((CONFIG_CMD_DFL | CFG_CMD_MII | \
-                               CFG_CMD_PING | CFG_CMD_I2C) & \
-                               ~(CFG_CMD_ENV))
-   #endif
+     #undef CONFIG_CMD_ENV
+     #undef CONFIG_CMD_LOADS
  #else
-   #if defined(CONFIG_PCI)
-   #define  CONFIG_COMMANDS    (CONFIG_CMD_DFL | CFG_CMD_PCI | \
-                               CFG_CMD_ELF | CFG_CMD_PING | CFG_CMD_I2C)
-   #elif defined(CONFIG_TSEC_ENET)
-   #define  CONFIG_COMMANDS    (CONFIG_CMD_DFL | CFG_CMD_PING | \
-                               CFG_CMD_ELF | CFG_CMD_MII | CFG_CMD_I2C)
-   #elif defined(CONFIG_ETHER_ON_FCC)
-   #define  CONFIG_COMMANDS    (CONFIG_CMD_DFL | CFG_CMD_MII | \
-                               CFG_CMD_ELF | CFG_CMD_PING | CFG_CMD_I2C)
-   #endif
+     #define CONFIG_CMD_ELF
  #endif
- #include <cmd_confdefs.h>
  
  #undef CONFIG_WATCHDOG                        /* watchdog disabled            */
  
   */
  #define CFG_LONGHELP                  /* undef to save memory         */
  #define CFG_PROMPT    "SSA=> "        /* Monitor Command Prompt       */
- #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
+ #if defined(CONFIG_CMD_KGDB)
  #define CFG_CBSIZE    1024            /* Console I/O Buffer Size      */
  #else
  #define CFG_CBSIZE    256             /* Console I/O Buffer Size      */
  /* Cache Configuration */
  #define CFG_DCACHE_SIZE               32768
  #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 */
  #endif
  
  #define BOOTFLAG_COLD 0x01            /* Normal Power-On: Boot from FLASH */
  #define BOOTFLAG_WARM 0x02            /* Software reboot              */
  
- #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_SER_INDEX 2       /* which serial port to use */
  #endif
   */
  #ifdef CFG_ENV_IS_IN_EEPROM           /* use restricted "standard" environment */
  
 -#define CONFIG_BAUDRATE               38400
 +#define CONFIG_BAUDRATE               38400
  
  #define CONFIG_BOOTDELAY      3       /* -1 disable autoboot */
  #define CONFIG_BOOTCOMMAND    "bootm 0xffc00000 0xffd00000"
  #define CONFIG_BOOTARGS               "root=/dev/nfs rw ip=any console=ttyS1,$baudrate"
  #define CONFIG_SERVERIP       192.168.85.1
 -#define CONFIG_IPADDR                 192.168.85.60
 +#define CONFIG_IPADDR         192.168.85.60
  #define CONFIG_GATEWAYIP      192.168.85.1
  #define CONFIG_NETMASK                255.255.255.0
  #define CONFIG_HOSTNAME       STX_SSA
  
  #else /* ENV IS IN FLASH              -- use a full-blown envionment */
  
 -#define CONFIG_BAUDRATE               115200
 +#define CONFIG_BAUDRATE               115200
  
  #define CONFIG_BOOTDELAY      5       /* -1 disable autoboot */
  
diff --combined lib_ppc/board.c
  #ifdef CONFIG_MPC5xxx
  #include <mpc5xxx.h>
  #endif
- #if (CONFIG_COMMANDS & CFG_CMD_IDE)
+ #if defined(CONFIG_CMD_IDE)
  #include <ide.h>
  #endif
- #if (CONFIG_COMMANDS & CFG_CMD_SCSI)
+ #if defined(CONFIG_CMD_SCSI)
  #include <scsi.h>
  #endif
- #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
+ #if defined(CONFIG_CMD_KGDB)
  #include <kgdb.h>
  #endif
  #ifdef CONFIG_STATUS_LED
@@@ -80,14 -80,14 +80,14 @@@ extern int update_flash_size (int flash
  extern void sc3_read_eeprom(void);
  #endif
  
- #if (CONFIG_COMMANDS & CFG_CMD_DOC)
+ #if defined(CONFIG_CMD_DOC)
  void doc_init (void);
  #endif
  #if defined(CONFIG_HARD_I2C) || \
      defined(CONFIG_SOFT_I2C)
  #include <i2c.h>
  #endif
- #if (CONFIG_COMMANDS & CFG_CMD_NAND)
+ #if defined(CONFIG_CMD_NAND)
  void nand_init (void);
  #endif
  
@@@ -118,7 -118,7 +118,7 @@@ extern ulong __init_end
  extern ulong _end;
  ulong monitor_flash_len;
  
- #if (CONFIG_COMMANDS & CFG_CMD_BEDBUG)
+ #if defined(CONFIG_CMD_BEDBUG)
  #include <bedbug/type.h>
  #endif
  
@@@ -139,10 -139,10 +139,10 @@@ static  ulong   mem_malloc_brk   = 0
   */
  static void mem_malloc_init (void)
  {
-       ulong dest_addr = CFG_MONITOR_BASE + gd->reloc_off;
-       mem_malloc_end = dest_addr;
-       mem_malloc_start = dest_addr - TOTAL_MALLOC_LEN;
+ #if !defined(CONFIG_RELOC_FIXUP_WORKS)
+       mem_malloc_end = CFG_MONITOR_BASE + gd->reloc_off;
+ #endif
+       mem_malloc_start = mem_malloc_end - TOTAL_MALLOC_LEN;
        mem_malloc_brk = mem_malloc_start;
  
        memset ((void *) mem_malloc_start,
@@@ -620,7 -620,13 +620,13 @@@ void board_init_r (gd_t *id, ulong dest
        bd = gd->bd;
  
        gd->flags |= GD_FLG_RELOC;      /* tell others: relocation done */
+ #if defined(CONFIG_RELOC_FIXUP_WORKS)
+       gd->reloc_off = 0;
+       mem_malloc_end = dest_addr;
+ #else
        gd->reloc_off = dest_addr - CFG_MONITOR_BASE;
+ #endif
  
  #ifdef CONFIG_SERIAL_MULTI
        serial_initialize();
        spi_init_r ();
  #endif
  
- #if (CONFIG_COMMANDS & CFG_CMD_NAND)
+ #if defined(CONFIG_CMD_NAND)
        WATCHDOG_RESET ();
        puts ("NAND:  ");
        nand_init();            /* go init the NAND */
  
  #if defined(CONFIG_TQM8xxL) || defined(CONFIG_TQM8260) || \
      defined(CONFIG_TQM8272) || \
 -    defined(CONFIG_CCM) || defined(CONFIG_KUP4K) || defined(CONFIG_KUP4X)
 +    defined(CONFIG_CCM) || defined(CONFIG_KUP4K) || \
 +    defined(CONFIG_KUP4X) || defined(CONFIG_PCS440EP)
        load_sernum_ethaddr ();
  #endif
        /* IP Address */
                hermes_start_lxt980 ((int) bd->bi_ethspeed);
  #endif
  
- #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
+ #if defined(CONFIG_CMD_KGDB)
        WATCHDOG_RESET ();
        puts ("KGDB:  ");
        kgdb_init ();
        serial_buffered_init();
  #endif
  
 -#ifdef CONFIG_STATUS_LED
 +#if defined(CONFIG_STATUS_LED) && defined(STATUS_LED_BOOT)
        status_led_set (STATUS_LED_BOOT, STATUS_LED_BLINKING);
  #endif
  
        if ((s = getenv ("loadaddr")) != NULL) {
                load_addr = simple_strtoul (s, NULL, 16);
        }
- #if (CONFIG_COMMANDS & CFG_CMD_NET)
+ #if defined(CONFIG_CMD_NET)
        if ((s = getenv ("bootfile")) != NULL) {
                copy_filename (BootFile, s, sizeof (BootFile));
        }
- #endif /* CFG_CMD_NET */
+ #endif
  
        WATCHDOG_RESET ();
  
- #if (CONFIG_COMMANDS & CFG_CMD_SCSI)
+ #if defined(CONFIG_CMD_SCSI)
        WATCHDOG_RESET ();
        puts ("SCSI:  ");
        scsi_init ();
  #endif
  
- #if (CONFIG_COMMANDS & CFG_CMD_DOC)
+ #if defined(CONFIG_CMD_DOC)
        WATCHDOG_RESET ();
        puts ("DOC:   ");
        doc_init ();
  #endif
  
- #if (CONFIG_COMMANDS & CFG_CMD_NET)
+ #if defined(CONFIG_CMD_NET)
  #if defined(CONFIG_NET_MULTI)
        WATCHDOG_RESET ();
        puts ("Net:   ");
        eth_initialize (bd);
  #endif
  
- #if (CONFIG_COMMANDS & CFG_CMD_NET) && ( \
+ #if defined(CONFIG_CMD_NET) && ( \
      defined(CONFIG_CCM)               || \
      defined(CONFIG_ELPT860)   || \
      defined(CONFIG_EP8260)    || \
        post_run (NULL, POST_RAM | post_bootmode_get(0));
  #endif
  
- #if (CONFIG_COMMANDS & CFG_CMD_PCMCIA) && !(CONFIG_COMMANDS & CFG_CMD_IDE)
+ #if defined(CONFIG_CMD_PCMCIA) \
+     && !defined(CONFIG_CMD_IDE)
        WATCHDOG_RESET ();
        puts ("PCMCIA:");
        pcmcia_init ();
  #endif
  
- #if (CONFIG_COMMANDS & CFG_CMD_IDE)
+ #if defined(CONFIG_CMD_IDE)
        WATCHDOG_RESET ();
  # ifdef       CONFIG_IDE_8xx_PCCARD
        puts ("PCMCIA:");
  #else
        ide_init ();
  #endif
- #endif /* CFG_CMD_IDE */
+ #endif
  
  #ifdef CONFIG_LAST_STAGE_INIT
        WATCHDOG_RESET ();
        last_stage_init ();
  #endif
  
- #if (CONFIG_COMMANDS & CFG_CMD_BEDBUG)
+ #if defined(CONFIG_CMD_BEDBUG)
        WATCHDOG_RESET ();
        bedbug_init ();
  #endif
diff --combined net/eth.c
+++ b/net/eth.c
  #include <net.h>
  #include <miiphy.h>
  
- #if (CONFIG_COMMANDS & CFG_CMD_NET) && defined(CONFIG_NET_MULTI)
+ #if defined(CONFIG_CMD_NET) && defined(CONFIG_NET_MULTI)
  
 +#if defined(CONFIG_SHOW_BOOT_PROGRESS)
 +# include <status_led.h>
 +extern void show_ethcfg_progress (int arg);
 +# define SHOW_BOOT_PROGRESS(arg)      show_boot_progress (arg)
 +#else
 +# define SHOW_BOOT_PROGRESS(arg)
 +#endif
 +
  #ifdef CFG_GT_6426x
  extern int gt6426x_eth_initialize(bd_t *bis);
  #endif
@@@ -150,8 -142,7 +150,7 @@@ int eth_initialize(bd_t *bis
        eth_devices = NULL;
        eth_current = NULL;
  
-       SHOW_BOOT_PROGRESS(64);
- #if defined(CONFIG_MII) || (CONFIG_COMMANDS & CFG_CMD_MII)
+ #if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
        miiphy_init();
  #endif
  
  
        if (!eth_devices) {
                puts ("No ethernet found.\n");
 +              SHOW_BOOT_PROGRESS(-64);
        } else {
                struct eth_device *dev = eth_devices;
                char *ethprime = getenv ("ethprime");
  
 +              SHOW_BOOT_PROGRESS(65);
                do {
                        if (eth_number)
                                puts (", ");
@@@ -462,7 -451,7 +461,7 @@@ char *eth_get_name (void
  {
        return (eth_current ? eth_current->name : "unknown");
  }
- #elif (CONFIG_COMMANDS & CFG_CMD_NET) && !defined(CONFIG_NET_MULTI)
+ #elif defined(CONFIG_CMD_NET) && !defined(CONFIG_NET_MULTI)
  
  extern int at91rm9200_miiphy_initialize(bd_t *bis);
  extern int emac4xx_miiphy_initialize(bd_t *bis);
@@@ -471,7 -460,7 +470,7 @@@ extern int ns7520_miiphy_initialize(bd_
  
  int eth_initialize(bd_t *bis)
  {
- #if defined(CONFIG_MII) || (CONFIG_COMMANDS & CFG_CMD_MII)
+ #if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
        miiphy_init();
  #endif