summaryrefslogtreecommitdiff
path: root/board/MAI/AmigaOneG3SE/articiaS.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2002-12-07 00:20:59 +0000
committerwdenk <wdenk>2002-12-07 00:20:59 +0000
commit7c7a23bd5a0bc149d2edd665ec46381726b24e0c (patch)
treed859f82ea2561180db2ffd7569f0b9007d710769 /board/MAI/AmigaOneG3SE/articiaS.c
parent1f53a41603b9093c59741f4208fef0ab3790d6ce (diff)
downloadu-boot-imx-7c7a23bd5a0bc149d2edd665ec46381726b24e0c.zip
u-boot-imx-7c7a23bd5a0bc149d2edd665ec46381726b24e0c.tar.gz
u-boot-imx-7c7a23bd5a0bc149d2edd665ec46381726b24e0c.tar.bz2
* Patch by Hans-Joerg Frieden, 06 Dec 2002
Fix misc problems with AmigaOne support * Patch by Chris Hallinan, 3 Dec 2002: minor cleanup to the MPC8245 EPIC driver * Patch by Pierre Aubert , 28 Nov 2002 Add support for external (SIU) interrupts on MPC8xx * Patch by Pierre Aubert , 28 Nov 2002 Fix nested syscalls bug in standalone applications * Patch by David Müller, 27 Nov 2002: fix output of "pciinfo" command for CardBus bridge devices. * Fix bug in TQM8260 board detection - boards got stuck when board ID was not readable
Diffstat (limited to 'board/MAI/AmigaOneG3SE/articiaS.c')
-rw-r--r--board/MAI/AmigaOneG3SE/articiaS.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/board/MAI/AmigaOneG3SE/articiaS.c b/board/MAI/AmigaOneG3SE/articiaS.c
index af85444..5eddfc6 100644
--- a/board/MAI/AmigaOneG3SE/articiaS.c
+++ b/board/MAI/AmigaOneG3SE/articiaS.c
@@ -82,8 +82,9 @@ static inline unsigned short NSto10PS (unsigned char spd_byte)
long detect_sdram (uint8 * rom, int dimmNum, struct dimm_bank *banks)
{
+ DECLARE_GLOBAL_DATA_PTR;
int dimm_address = (dimmNum == 0) ? SM_DIMM0_ADDR : SM_DIMM1_ADDR;
- uint32 busclock = get_bus_freq (0);
+ uint32 busclock = gd->bus_clk;
uint32 memclock = busclock;
uint32 tmemclock = 1000000000 / (memclock / 100);
uint32 datawidth;
@@ -404,7 +405,7 @@ long articiaS_ram_init (void)
uint32 total_ram = 0;
struct dimm_bank banks[4]; /* FIXME: Move to initram */
- uint32 busclock = get_bus_freq (0);
+ uint32 busclock = gd->bus_clk;
uint32 memclock = busclock;
uint32 reg32;
uint32 refresh_clocks;