mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 12:13:00 -04:00
Make IPB clock on MGT5100/MPC5200 configurable in board config file;
go back to 66 MHz for stability
This commit is contained in:
parent
b56ddc636d
commit
acf98e7f30
@ -2,6 +2,9 @@
|
|||||||
Changes for U-Boot 1.0.0:
|
Changes for U-Boot 1.0.0:
|
||||||
======================================================================
|
======================================================================
|
||||||
|
|
||||||
|
* Make IPB clock on MGT5100/MPC5200 configurable in board config file;
|
||||||
|
go back to 66 MHz for stability
|
||||||
|
|
||||||
* Patches by Jon Diekema, 15 Sep 2003:
|
* Patches by Jon Diekema, 15 Sep 2003:
|
||||||
- add description for missing CFG_CMD_* entries in the README file
|
- add description for missing CFG_CMD_* entries in the README file
|
||||||
- sacsng tweaks
|
- sacsng tweaks
|
||||||
|
@ -152,6 +152,7 @@ void cpu_init_f (void)
|
|||||||
/* enable timebase */
|
/* enable timebase */
|
||||||
*(vu_long *)(MPC5XXX_XLBARB + 0x40) |= (1 << 13);
|
*(vu_long *)(MPC5XXX_XLBARB + 0x40) |= (1 << 13);
|
||||||
|
|
||||||
|
#if defined(CFG_IPBSPEED_133)
|
||||||
/* Motorola reports IPB should better run at 133 MHz. */
|
/* Motorola reports IPB should better run at 133 MHz. */
|
||||||
*(vu_long *)MPC5XXX_ADDECR |= 1;
|
*(vu_long *)MPC5XXX_ADDECR |= 1;
|
||||||
/* pci_clk_sel = 0x02, ipb_clk_sel = 0x00; */
|
/* pci_clk_sel = 0x02, ipb_clk_sel = 0x00; */
|
||||||
@ -160,6 +161,7 @@ void cpu_init_f (void)
|
|||||||
addecr |= 0x02;
|
addecr |= 0x02;
|
||||||
*(vu_long *)MPC5XXX_CDM_CFG = addecr;
|
*(vu_long *)MPC5XXX_CDM_CFG = addecr;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -96,6 +96,12 @@
|
|||||||
#define CONFIG_BOOTCOMMAND "bootm 100000" /* autoboot command */
|
#define CONFIG_BOOTCOMMAND "bootm 100000" /* autoboot command */
|
||||||
#define CONFIG_BOOTARGS "root=/dev/ram rw"
|
#define CONFIG_BOOTARGS "root=/dev/ram rw"
|
||||||
|
|
||||||
|
#if defined(CONFIG_MPC5200)
|
||||||
|
/*
|
||||||
|
* IPB Bus clocking configuration.
|
||||||
|
*/
|
||||||
|
#undef CFG_IPBSPEED_133 /* define for 133MHz speed */
|
||||||
|
#endif
|
||||||
/*
|
/*
|
||||||
* I2C configuration
|
* I2C configuration
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* (C) Copyright 2000-2002
|
* (C) Copyright 2000-2003
|
||||||
* DENX Software Engineering
|
* DENX Software Engineering
|
||||||
* Wolfgang Denk, wd@denx.de
|
* Wolfgang Denk, wd@denx.de
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@ -39,6 +39,10 @@ typedef unsigned int uint32_t;
|
|||||||
#define htonl(a) SWAP_LONG(a)
|
#define htonl(a) SWAP_LONG(a)
|
||||||
#endif /* __WIN32__ */
|
#endif /* __WIN32__ */
|
||||||
|
|
||||||
|
#ifndef O_BINARY /* should be define'd on __WIN32__ */
|
||||||
|
#define O_BINARY 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <image.h>
|
#include <image.h>
|
||||||
|
|
||||||
extern int errno;
|
extern int errno;
|
||||||
@ -265,11 +269,7 @@ NXTARG: ;
|
|||||||
if (lflag) {
|
if (lflag) {
|
||||||
ifd = open(imagefile, O_RDONLY);
|
ifd = open(imagefile, O_RDONLY);
|
||||||
} else {
|
} else {
|
||||||
#ifdef __WIN32__
|
|
||||||
ifd = open(imagefile, O_RDWR|O_CREAT|O_TRUNC|O_BINARY, 0666);
|
ifd = open(imagefile, O_RDWR|O_CREAT|O_TRUNC|O_BINARY, 0666);
|
||||||
#else
|
|
||||||
ifd = open(imagefile, O_RDWR|O_CREAT|O_TRUNC, 0666);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ifd < 0) {
|
if (ifd < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user