public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [mpc8245 Portx problem]
@ 2003-07-30  7:45 배장식
  0 siblings, 0 replies; only message in thread
From: 배장식 @ 2003-07-30  7:45 UTC (permalink / raw)
  To: u-boot

 
I have tried to configure PortX for use of memory  space 0x7000_0000.  I have modified MCCR4[EXTROM] to  enable entened ROM.
but i can't accessed address 0x70000000 ...
i find something worng in include/config_Sandpint8245.h
according to define BATs in config_Sandpint8245.h 
not allocate BATs for address 0x7000000 , so i try change BAT1 for extended rom 
i modify ppcboot code to blow list

1. 0x40000000 used by initial stack , until sdram init....(BAT1 allocation)
2. command/board.c : board_init_r () this function use stack...in ram so no more need 0x40000000
3. my added code to BAT1 realloction for 0x70000000.. 
    void move_bat1 (void)
    {
    mtspr (IBAT1L, (0x70000000 | BATL_PP_10 | BATL_CACHEINHIBIT));
    mtspr (IBAT1U, (0x70000000 | BATU_BL_256M | BATU_VS | BATU_VP));

    mtspr (DBAT1L, (0x70000000 | BATL_PP_10 | BATL_CACHEINHIBIT));
    mtspr (DBAT1U, (0x70000000 | BATU_BL_256M | BATU_VS | BATU_VP));
    __asm__ __volatile__("eieio");
    __asm__ __volatile__("isync");
    __asm__ __volatile__("sync");

}

4. call move_bat1 at board_init_r ......

but...board not working.....



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20030730/915a8fd3/attachment.htm 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-30  7:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-30  7:45 [U-Boot-Users] [mpc8245 Portx problem] 배장식

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox