* 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
This commit is contained in:
parent
5e4be00fb0
commit
a6cccaea5a
|
@ -2,6 +2,11 @@
|
||||||
Changes since U-Boot 1.0.1:
|
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
|
* Fix variable CPU clock for MPC859/866 systems for low CPU clocks
|
||||||
|
|
||||||
* Implement adaptive SDRAM timing configuration based on actual CPU
|
* Implement adaptive SDRAM timing configuration based on actual CPU
|
||||||
|
|
|
@ -160,6 +160,9 @@ int pcmcia_on (void)
|
||||||
}
|
}
|
||||||
#else
|
#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)
|
#if defined(CONFIG_LWMON) || defined(CONFIG_NSCU)
|
||||||
# define CFG_PCMCIA_TIMING (PCMCIA_SHT(9) | PCMCIA_SST(3) | PCMCIA_SL(12))
|
# define CFG_PCMCIA_TIMING (PCMCIA_SHT(9) | PCMCIA_SST(3) | PCMCIA_SL(12))
|
||||||
#else
|
#else
|
||||||
|
@ -197,6 +200,17 @@ int pcmcia_on (void)
|
||||||
switch (i) {
|
switch (i) {
|
||||||
#ifdef CONFIG_IDE_8xx_PCCARD
|
#ifdef CONFIG_IDE_8xx_PCCARD
|
||||||
case 4:
|
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 */
|
case 0: { /* map attribute memory */
|
||||||
win->or = ( PCMCIA_BSIZE_64M
|
win->or = ( PCMCIA_BSIZE_64M
|
||||||
| PCMCIA_PPS_8
|
| PCMCIA_PPS_8
|
||||||
|
|
|
@ -191,6 +191,11 @@ void putc (const char c)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
|
#ifdef CONFIG_SILENT_CONSOLE
|
||||||
|
if (gd->flags & GD_FLG_SILENT)
|
||||||
|
return(0);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (gd->flags & GD_FLG_DEVINIT) {
|
if (gd->flags & GD_FLG_DEVINIT) {
|
||||||
/* Send to the standard output */
|
/* Send to the standard output */
|
||||||
fputc (stdout, c);
|
fputc (stdout, c);
|
||||||
|
@ -204,6 +209,11 @@ void puts (const char *s)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
|
#ifdef CONFIG_SILENT_CONSOLE
|
||||||
|
if (gd->flags & GD_FLG_SILENT)
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (gd->flags & GD_FLG_DEVINIT) {
|
if (gd->flags & GD_FLG_DEVINIT) {
|
||||||
/* Send to the standard output */
|
/* Send to the standard output */
|
||||||
fputs (stdout, s);
|
fputs (stdout, s);
|
||||||
|
|
|
@ -122,23 +122,13 @@ plprcr_wait:
|
||||||
|
|
||||||
plprcr_wait_end:
|
plprcr_wait_end:
|
||||||
|
|
||||||
/* turn instruction cache off
|
/* unlock instruction cache but leave it enabled
|
||||||
*/
|
*/
|
||||||
lis r4, CACHE_CMD_UNLOCK_ALL@h
|
lis r4, CACHE_CMD_UNLOCK_ALL@h
|
||||||
ori r4, r4, CACHE_CMD_UNLOCK_ALL@l
|
ori r4, r4, CACHE_CMD_UNLOCK_ALL@l
|
||||||
mtspr IC_CST, r4
|
mtspr IC_CST, r4
|
||||||
isync
|
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 */
|
mtspr LR, r10 /* restore original Link Register value */
|
||||||
blr
|
blr
|
||||||
|
|
||||||
|
|
|
@ -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
|
- Until the console devices have been initialized, output has to be
|
||||||
suppressed by testing for the flag "GD_FLG_SILENT" in "gd->flags".
|
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
|
- When the console devices have been initialized, "stdout" and
|
||||||
"stderr" are set to "nulldev", so subsequent messages are
|
"stderr" are set to "nulldev", so subsequent messages are
|
||||||
|
|
|
@ -130,15 +130,16 @@
|
||||||
#define CONFIG_MAC_PARTITION
|
#define CONFIG_MAC_PARTITION
|
||||||
#define CONFIG_DOS_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 | \
|
#define CONFIG_COMMANDS ( CONFIG_CMD_DFL | \
|
||||||
CFG_CMD_ASKENV | \
|
CFG_CMD_ASKENV | \
|
||||||
CFG_CMD_DHCP | \
|
CFG_CMD_DHCP | \
|
||||||
CFG_CMD_EEPROM | \
|
CFG_CMD_EEPROM | \
|
||||||
CFG_CMD_IDE | \
|
CFG_CMD_IDE | \
|
||||||
CFG_CMD_I2C | \
|
CFG_CMD_I2C )
|
||||||
CFG_CMD_DATE )
|
|
||||||
|
|
||||||
/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
|
/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
|
||||||
#include <cmd_confdefs.h>
|
#include <cmd_confdefs.h>
|
||||||
|
@ -275,12 +276,6 @@
|
||||||
*/
|
*/
|
||||||
#define CFG_TBSCR (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
|
#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
|
* PISCR - Periodic Interrupt Status and Control 11-31
|
||||||
*-----------------------------------------------------------------------
|
*-----------------------------------------------------------------------
|
||||||
|
@ -403,7 +398,6 @@
|
||||||
#endif /* CONFIG_CAN_DRIVER */
|
#endif /* CONFIG_CAN_DRIVER */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
|
||||||
* 4096 Rows from SDRAM example configuration
|
* 4096 Rows from SDRAM example configuration
|
||||||
* 1000 factor s -> ms
|
* 1000 factor s -> ms
|
||||||
* 64 PTP (pre-divider from MPTPR) from SDRAM example configuration
|
* 64 PTP (pre-divider from MPTPR) from SDRAM example configuration
|
||||||
|
|
|
@ -115,13 +115,6 @@ static int init_baudrate (void)
|
||||||
|
|
||||||
static int display_banner (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 ("\n\n%s\n\n", version_string);
|
||||||
printf ("U-Boot code: %08lX -> %08lX BSS: -> %08lX\n",
|
printf ("U-Boot code: %08lX -> %08lX BSS: -> %08lX\n",
|
||||||
_armboot_start, _armboot_end_data, _armboot_end);
|
_armboot_start, _armboot_end_data, _armboot_end);
|
||||||
|
@ -148,11 +141,6 @@ static int display_dram_config (void)
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
#ifdef CONFIG_SILENT_CONSOLE
|
|
||||||
if (gd->flags & GD_FLG_SILENT)
|
|
||||||
return (0);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
puts ("RAM Configuration:\n");
|
puts ("RAM Configuration:\n");
|
||||||
|
|
||||||
for(i=0; i<CONFIG_NR_DRAM_BANKS; i++) {
|
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)
|
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: ");
|
puts ("Flash: ");
|
||||||
print_size (size, "\n");
|
print_size (size, "\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue