]> git.sur5r.net Git - u-boot/commitdiff
* Patch by Wolter Kamphuis, 15 Dec 2003:
authorwdenk <wdenk>
Fri, 6 Feb 2004 21:48:22 +0000 (21:48 +0000)
committerwdenk <wdenk>
Fri, 6 Feb 2004 21:48:22 +0000 (21:48 +0000)
  made CONFIG_SILENT_CONSOLE usable on all architectures

* Disable date command on TQM866M - there is no RTC on MPC866

CHANGELOG
common/cmd_pcmcia.c
common/console.c
cpu/mpc8xx/plprcr_write.S
doc/README.silent
include/configs/TQM866M.h
lib_arm/board.c

index 6a14d025faf463c0547e294984f3451f07be8d30..b3d00fe5a80a8cf0c4221f2029c4ba29d506a594 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,11 @@
 Changes since U-Boot 1.0.1:
 ======================================================================
 
+* Patch by Wolter Kamphuis, 15 Dec 2003:
+  made CONFIG_SILENT_CONSOLE usable on all architectures
+
+* Disable date command on TQM866M - there is no RTC on MPC866
+
 * Fix variable CPU clock for MPC859/866 systems for low CPU clocks
 
 * Implement adaptive SDRAM timing configuration based on actual CPU
index 8c17859daa3e11b5c5431c0a4f52a8a3032b6ac8..53d22271bb195179b657fef6393965a30a048dca 100644 (file)
@@ -160,6 +160,9 @@ int pcmcia_on (void)
 }
 #else
 
+#ifdef CONFIG_BMS2003
+# define  BMS2003_FRAM_TIMING  (PCMCIA_SHT(2) | PCMCIA_SST(2) | PCMCIA_SL(4))
+#endif
 #if defined(CONFIG_LWMON) || defined(CONFIG_NSCU)
 # define  CFG_PCMCIA_TIMING    (PCMCIA_SHT(9) | PCMCIA_SST(3) | PCMCIA_SL(12))
 #else
@@ -197,6 +200,17 @@ int pcmcia_on (void)
                switch (i) {
 #ifdef CONFIG_IDE_8xx_PCCARD
                case 4:
+#ifdef CONFIG_BMS2003
+                   {   /* map FRAM area */
+                       win->or = (     PCMCIA_BSIZE_256K
+                               |       PCMCIA_PPS_8
+                               |       PCMCIA_PRS_ATTR
+                               |       slotbit
+                               |       PCMCIA_PV
+                               |       BMS2003_FRAM_TIMING );
+                       break;
+                   }
+#endif
                case 0: {       /* map attribute memory */
                        win->or = (     PCMCIA_BSIZE_64M
                                |       PCMCIA_PPS_8
index 629f60b7fe60df9afb974a03cab1d6902ff63b72..1e0ca8de15abfaa3a4ca78e3df6d9b91fc9d2821 100644 (file)
@@ -191,6 +191,11 @@ void putc (const char c)
 {
        DECLARE_GLOBAL_DATA_PTR;
 
+#ifdef CONFIG_SILENT_CONSOLE
+       if (gd->flags & GD_FLG_SILENT)
+               return(0);
+#endif
+
        if (gd->flags & GD_FLG_DEVINIT) {
                /* Send to the standard output */
                fputc (stdout, c);
@@ -204,6 +209,11 @@ void puts (const char *s)
 {
        DECLARE_GLOBAL_DATA_PTR;
 
+#ifdef CONFIG_SILENT_CONSOLE
+       if (gd->flags & GD_FLG_SILENT)
+               return;
+#endif
+
        if (gd->flags & GD_FLG_DEVINIT) {
                /* Send to the standard output */
                fputs (stdout, s);
index 7d39a0edf6c6d2ad7294391796b493f91e1a56e6..e32567114218869edb0e742a6b8bcdab57349be0 100644 (file)
@@ -122,23 +122,13 @@ plprcr_wait:
 
 plprcr_wait_end:
 
-       /* turn instruction cache off
+       /* unlock instruction cache but leave it enabled
         */
        lis     r4, CACHE_CMD_UNLOCK_ALL@h
        ori     r4, r4, CACHE_CMD_UNLOCK_ALL@l
        mtspr   IC_CST, r4
        isync
 
-       lis     r4, CACHE_CMD_INVALIDATE@h
-       ori     r4, r4, CACHE_CMD_INVALIDATE@l
-       mtspr   IC_CST, r4
-       isync
-
-       lis     r4, CACHE_CMD_DISABLE@h
-       ori     r4, r4, CACHE_CMD_DISABLE@l
-       mtspr   IC_CST, r4
-       isync
-
        mtspr   LR, r10         /* restore original Link Register value */
        blr
 
index f2628a6bf8bc721eb8438cb8ea8a6e7321ca56a1..677253251856a60c24e043d5dc032faa3e023b7f 100644 (file)
@@ -9,8 +9,6 @@ The following actions are taken if "silent" is set at boot time:
 
  - Until the console devices have been initialized, output has to be
    suppressed by testing for the flag "GD_FLG_SILENT" in "gd->flags".
-   Currently only the messages for the TRAB board are handled in this
-   way.
 
  - When the console devices have been initialized, "stdout" and
    "stderr" are set to "nulldev", so subsequent messages are
index f0181db11b8c9be8fa11a65d1415e4c987422178..713cc407591c360843c727e3d71095ace500f115 100644 (file)
 #define CONFIG_MAC_PARTITION
 #define CONFIG_DOS_PARTITION
 
-#define CONFIG_RTC_MPC8xx              /* use internal RTC of MPC8xx   */
+#undef CONFIG_RTC_MPC8xx               /* MPC866 does not support RTC  */
+
+#define        CONFIG_TIMESTAMP                /* but print image timestmps    */
 
 #define CONFIG_COMMANDS              ( CONFIG_CMD_DFL  | \
                                CFG_CMD_ASKENV  | \
                                CFG_CMD_DHCP    | \
                                CFG_CMD_EEPROM  | \
                                CFG_CMD_IDE     | \
-                               CFG_CMD_I2C     | \
-                               CFG_CMD_DATE    )
+                               CFG_CMD_I2C     )
 
 /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
 #include <cmd_confdefs.h>
  */
 #define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
-/*-----------------------------------------------------------------------
- * RTCSC - Real-Time Clock Status and Control Register         11-27
- *-----------------------------------------------------------------------
- */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
-
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
 #endif /* CONFIG_CAN_DRIVER */
 
 /*
- * 
  * 4096        Rows from SDRAM example configuration
  * 1000        factor s -> ms
  * 64  PTP (pre-divider from MPTPR) from SDRAM example configuration
index 1591ba2b0ce38a37b509b2d84689b4a3ea1a5486..08679d32f0814ab82a08364fa9d7fb0287db5c9f 100644 (file)
@@ -115,13 +115,6 @@ static int init_baudrate (void)
 
 static int display_banner (void)
 {
-#ifdef CONFIG_SILENT_CONSOLE
-       DECLARE_GLOBAL_DATA_PTR;
-
-       if (gd->flags & GD_FLG_SILENT)
-               return (0);
-#endif
-
        printf ("\n\n%s\n\n", version_string);
        printf ("U-Boot code: %08lX -> %08lX  BSS: -> %08lX\n",
                _armboot_start, _armboot_end_data, _armboot_end);
@@ -148,11 +141,6 @@ static int display_dram_config (void)
        DECLARE_GLOBAL_DATA_PTR;
        int i;
 
-#ifdef CONFIG_SILENT_CONSOLE
-       if (gd->flags & GD_FLG_SILENT)
-               return (0);
-#endif
-
        puts ("RAM Configuration:\n");
 
        for(i=0; i<CONFIG_NR_DRAM_BANKS; i++) {
@@ -165,12 +153,6 @@ static int display_dram_config (void)
 
 static void display_flash_config (ulong size)
 {
-#ifdef CONFIG_SILENT_CONSOLE
-       DECLARE_GLOBAL_DATA_PTR;
-
-       if (gd->flags & GD_FLG_SILENT)
-               return;
-#endif
        puts ("Flash: ");
        print_size (size, "\n");
 }