Skip to contentSkip to conversation

mpc8245 Portx BAT setting...

U-Boot-Users 배장식 3 participants 3 messages Jul 31, 2003

lore
Share & tools
lore

배장식

author
#0 lore raw

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/20030731/0f7683a1/attachment.htm

#1 lore raw

Dear ???,

I cannot help you with your problem. But I can give some advice:

Most users on this list seem not to be able to read encoded e-mail. Please try to send plain ASCII (latin) TEXT e-mails to the
list.

Your Name appears in Korean letters, too....

Best regards
Reinhard

----- Original Message -----
From: ???
To: U-BOOT
Sent: Thursday, July 31, 2003 4:53 AM
Subject: [U-Boot-Users] mpc8245 Portx BAT setting...

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.....

#2 lore raw
Quoted 2 lines · In message <[email protected]> you wrote:

I cannot help you with your problem. But I can give some advice:

This is indeed excellent advice.

Quoted 3 lines

Most users on this list seem not to be able to read encoded e-mail. Please try to send plain ASCII (latin) TEXT e-mails to the
list.

It is not primarily a question of being able to or not.

HTML and especially base64 encoded email is bad because:

* it is not searchable in the archievs
* it is not "grep"able in local archives
* it wastes bandwidht

I routinely ignore HTML and especially base64 encoded email.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Q: How do you spell "onomatopoeia"?
A: The way it sounds.