Miscellanious spc1920 related cleanups
authorMarkus Klotzbuecher <mk@creamnet.de>
Tue, 9 Jan 2007 13:57:13 +0000 (14:57 +0100)
committerMarkus Klotzbuecher <mk@pollux.denx.de>
Tue, 9 Jan 2007 13:57:13 +0000 (14:57 +0100)
board/spc1920/hpi.c
board/spc1920/spc1920.c
include/configs/spc1920.h

index 687c170a85084bafa2018f0cc44479c85180b757..05dd8bd5cb2792225a68f233903ed58d94c65ca9 100644 (file)
@@ -40,7 +40,6 @@
 
 #include "pld.h"
 #include "hpi.h"
-#include "spc1920.h" /* led function */
 
 #define        _NOT_USED_      0xFFFFFFFF
 
index d0a6ff1eba917e96fd78d1a5afe110bbe3c1c733..d69b91517219c65e9d2502bb02b6cf84aa5fe04b 100644 (file)
@@ -220,10 +220,20 @@ int board_early_init_f(void)
        immap->im_ioport.iop_pdpar &= ~(0x0040);
        immap->im_ioport.iop_pddir |= 0x0040;
        immap->im_ioport.iop_pddat |= 0x0040;
-
 #endif
 
-       /* Enable PD10 (COM2_EN) */
+       /*
+        * Enable console on SMC1. This requires turning on
+        * the com2_en signal and SMC1_DISABLE
+        */
+
+       /* SMC1_DISABLE: PB17 */
+       immap->im_cpm.cp_pbodr &= ~0x4000;
+       immap->im_cpm.cp_pbpar &= ~0x4000;
+       immap->im_cpm.cp_pbdir |= 0x4000;
+       immap->im_cpm.cp_pbdat &= ~0x4000;
+
+       /* COM2_EN: PD10 */
        immap->im_ioport.iop_pdpar &= ~0x0020;
        immap->im_ioport.iop_pddir &= ~0x4000;
        immap->im_ioport.iop_pddir |= 0x0020;
index c6b4d3002b782d3c00bfd1bfddda160f57723a80..dcff8a6c9e80f27c4026fc6a9dda6df8308c8fd8 100644 (file)
 #define CFG_8xx_CPUCLK_MIN             40000000
 #define CFG_8xx_CPUCLK_MAX             133000000
 
-#define CFG_RESET_ADDRESS              0xf8000000
+#define CFG_RESET_ADDRESS              0xC0000000
 
 #define CONFIG_BOARD_EARLY_INIT_F
+#define CONFIG_LAST_STAGE_INIT
 
-
-#if 1
+#if 0
 #define CONFIG_BOOTDELAY       -1      /* autoboot disabled            */
 #else
 #define CONFIG_BOOTDELAY       5       /* autoboot after 5 seconds     */
@@ -89,7 +89,6 @@
                         | CFG_CMD_JFFS2 \
                         | CFG_CMD_PING \
                         | CFG_CMD_DHCP \
-                        | CFG_CMD_IMMAP \
                         | CFG_CMD_I2C \
                         | CFG_CMD_MII)
                        /* & ~( CFG_CMD_NET)) */
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CFG_SIUMCR      (SIUMCR_FRC)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
 #endif /* CONFIG_SPC1920_HPI_TEST */
 
 /*
- * PLD CS5 
+ * PLD CS5
  */
 #define CFG_SPC1920_PLD_BASE   0x80000000
 #define CFG_PRELIM_OR5_AM      0xfff00000