mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-10-03 16:49:55 -04:00
Update code for TQM8540 board (and 85xx in general):
- Change the name of the Ethernet driver: MOTO ENET -> ENET - Reformat boot messages - Enable redundant environment - Replace the -O2 optimization flag with -mno-string
This commit is contained in:
parent
911d08f6ae
commit
6c9e789e9e
@ -2,6 +2,12 @@
|
|||||||
Changes for U-Boot 1.1.3:
|
Changes for U-Boot 1.1.3:
|
||||||
======================================================================
|
======================================================================
|
||||||
|
|
||||||
|
* Update code for TQM8540 board (and 85xx in general):
|
||||||
|
- Change the name of the Ethernet driver: MOTO ENET -> ENET
|
||||||
|
- Reformat boot messages
|
||||||
|
- Enable redundant environment
|
||||||
|
- Replace the -O2 optimization flag with -mno-string
|
||||||
|
|
||||||
* Patch by David Brownell, 10 Mar 2005:
|
* Patch by David Brownell, 10 Mar 2005:
|
||||||
Restore copyright statements in OHCI drivers.
|
Restore copyright statements in OHCI drivers.
|
||||||
|
|
||||||
|
@ -72,8 +72,6 @@ long int initdram (int board_type)
|
|||||||
extern long spd_sdram (void);
|
extern long spd_sdram (void);
|
||||||
volatile immap_t *immap = (immap_t *) CFG_IMMR;
|
volatile immap_t *immap = (immap_t *) CFG_IMMR;
|
||||||
|
|
||||||
puts ("Initializing\n");
|
|
||||||
|
|
||||||
#if defined(CONFIG_DDR_DLL)
|
#if defined(CONFIG_DDR_DLL)
|
||||||
{
|
{
|
||||||
volatile ccsr_gur_t *gur = &immap->im_gur;
|
volatile ccsr_gur_t *gur = &immap->im_gur;
|
||||||
@ -101,7 +99,6 @@ long int initdram (int board_type)
|
|||||||
ddr_enable_ecc (dram_size);
|
ddr_enable_ecc (dram_size);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
puts (" DDR: ");
|
|
||||||
return dram_size;
|
return dram_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,4 +23,4 @@
|
|||||||
|
|
||||||
PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi
|
PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi
|
||||||
|
|
||||||
PLATFORM_CPPFLAGS += -DCONFIG_MPC85xx -DCONFIG_E500 -ffixed-r2 -ffixed-r29 -Wa,-me500 -msoft-float -O2
|
PLATFORM_CPPFLAGS += -DCONFIG_MPC85xx -DCONFIG_E500 -ffixed-r2 -ffixed-r29 -Wa,-me500 -msoft-float -mno-string
|
||||||
|
@ -41,30 +41,12 @@ int checkcpu (void)
|
|||||||
uint ver;
|
uint ver;
|
||||||
uint major, minor;
|
uint major, minor;
|
||||||
|
|
||||||
puts("Freescale PowerPC\n");
|
|
||||||
|
|
||||||
pvr = get_pvr();
|
|
||||||
ver = PVR_VER(pvr);
|
|
||||||
major = PVR_MAJ(pvr);
|
|
||||||
minor = PVR_MIN(pvr);
|
|
||||||
|
|
||||||
printf(" Core: ");
|
|
||||||
switch (ver) {
|
|
||||||
case PVR_VER(PVR_85xx):
|
|
||||||
puts("E500");
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
puts("Unknown");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
printf(", Version: %d.%d, (0x%08x)\n", major, minor, pvr);
|
|
||||||
|
|
||||||
svr = get_svr();
|
svr = get_svr();
|
||||||
ver = SVR_VER(svr);
|
ver = SVR_VER(svr);
|
||||||
major = SVR_MAJ(svr);
|
major = SVR_MAJ(svr);
|
||||||
minor = SVR_MIN(svr);
|
minor = SVR_MIN(svr);
|
||||||
|
|
||||||
puts(" System: ");
|
puts("CPU: ");
|
||||||
switch (ver) {
|
switch (ver) {
|
||||||
case SVR_8540:
|
case SVR_8540:
|
||||||
puts("8540");
|
puts("8540");
|
||||||
@ -84,11 +66,27 @@ int checkcpu (void)
|
|||||||
}
|
}
|
||||||
printf(", Version: %d.%d, (0x%08x)\n", major, minor, svr);
|
printf(", Version: %d.%d, (0x%08x)\n", major, minor, svr);
|
||||||
|
|
||||||
|
pvr = get_pvr();
|
||||||
|
ver = PVR_VER(pvr);
|
||||||
|
major = PVR_MAJ(pvr);
|
||||||
|
minor = PVR_MIN(pvr);
|
||||||
|
|
||||||
|
printf("Core: ");
|
||||||
|
switch (ver) {
|
||||||
|
case PVR_VER(PVR_85xx):
|
||||||
|
puts("E500");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
puts("Unknown");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
printf(", Version: %d.%d, (0x%08x)\n", major, minor, pvr);
|
||||||
|
|
||||||
get_sys_info(&sysinfo);
|
get_sys_info(&sysinfo);
|
||||||
|
|
||||||
puts(" Clocks: ");
|
puts("Clocks Configuration:\n");
|
||||||
printf(" CPU:%4lu MHz, ", sysinfo.freqProcessor / 1000000);
|
printf(" CPU:%4lu MHz, ", sysinfo.freqProcessor / 1000000);
|
||||||
printf("CCB:%4lu MHz, ", sysinfo.freqSystemBus / 1000000);
|
printf("CCB:%4lu MHz,\n", sysinfo.freqSystemBus / 1000000);
|
||||||
printf(" DDR:%4lu MHz, ", sysinfo.freqSystemBus / 2000000);
|
printf(" DDR:%4lu MHz, ", sysinfo.freqSystemBus / 2000000);
|
||||||
|
|
||||||
#if defined(CFG_LBC_LCRR)
|
#if defined(CFG_LBC_LCRR)
|
||||||
@ -114,7 +112,7 @@ int checkcpu (void)
|
|||||||
sysinfo.freqSystemBus / 1000000);
|
sysinfo.freqSystemBus / 1000000);
|
||||||
}
|
}
|
||||||
|
|
||||||
puts(" L1 D-cache 32KB, L1 I-cache 32KB enabled.\n");
|
puts("L1: D-cache 32 kB enabled\n I-cache 32 kB enabled\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -196,9 +196,9 @@ int cpu_init_r (void)
|
|||||||
temp = l2cache->l2ctl;
|
temp = l2cache->l2ctl;
|
||||||
asm("msync;isync");
|
asm("msync;isync");
|
||||||
|
|
||||||
printf("L2 cache enabled: 256KB\n");
|
printf("L2: 256 kB enabled\n");
|
||||||
#else
|
#else
|
||||||
printf("L2 cache disabled.\n");
|
printf("L2: disabled.\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -141,7 +141,7 @@ int tsec_initialize(bd_t *bis, int index)
|
|||||||
priv->phyaddr = tsec_info[index].phyaddr;
|
priv->phyaddr = tsec_info[index].phyaddr;
|
||||||
priv->gigabit = tsec_info[index].gigabit;
|
priv->gigabit = tsec_info[index].gigabit;
|
||||||
|
|
||||||
sprintf(dev->name, "MOTO ENET%d", index);
|
sprintf(dev->name, "ENET%d", index);
|
||||||
dev->iobase = 0;
|
dev->iobase = 0;
|
||||||
dev->priv = priv;
|
dev->priv = priv;
|
||||||
dev->init = tsec_init;
|
dev->init = tsec_init;
|
||||||
|
@ -297,7 +297,7 @@
|
|||||||
#define FEC_PHY_ADDR 0
|
#define FEC_PHY_ADDR 0
|
||||||
#define FEC_PHYIDX 0
|
#define FEC_PHYIDX 0
|
||||||
|
|
||||||
#define CONFIG_ETHPRIME "MOTO ENET2"
|
#define CONFIG_ETHPRIME "ENET1"
|
||||||
|
|
||||||
#endif /* CONFIG_TSEC_ENET */
|
#endif /* CONFIG_TSEC_ENET */
|
||||||
|
|
||||||
@ -310,6 +310,8 @@
|
|||||||
#define CFG_ENV_ADDR (CFG_MONITOR_BASE - 0x20000)
|
#define CFG_ENV_ADDR (CFG_MONITOR_BASE - 0x20000)
|
||||||
#define CFG_ENV_SECT_SIZE 0x20000 /* 128K(one sector) for env */
|
#define CFG_ENV_SECT_SIZE 0x20000 /* 128K(one sector) for env */
|
||||||
#define CFG_ENV_SIZE 0x2000
|
#define CFG_ENV_SIZE 0x2000
|
||||||
|
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET-CFG_ENV_SECT_SIZE)
|
||||||
|
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
||||||
#else
|
#else
|
||||||
#define CFG_NO_FLASH 1 /* Flash is not usable now */
|
#define CFG_NO_FLASH 1 /* Flash is not usable now */
|
||||||
#define CFG_ENV_IS_NOWHERE 1 /* Store ENV in memory only */
|
#define CFG_ENV_IS_NOWHERE 1 /* Store ENV in memory only */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user