* [U-Boot] [Add tlbentry problem]
@ 2008-08-18 14:52 김영순
2008-08-18 15:28 ` Stefan Roese
2008-09-09 20:19 ` Feng Kan
0 siblings, 2 replies; 3+ messages in thread
From: 김영순 @ 2008-08-18 14:52 UTC (permalink / raw)
To: u-boot
I?ve worked on my custum board based on SEQUOIA.
I?d like to add new device (DSP, SIZE=256M, CS4).
I added tlbentry(256M) in init.S and defined CS4 in sequoia.h.
Init.S:
/* TLB-entry for EBC(DSP) */
tlbentry( CFG_DSP_BASE, SZ_256M, CFG_DSP_BASE, 1,
AC_R|AC_W|AC_X|SA_G|SA_I )
sequoia.h:
#define CFG_DSP_BASE 0xd0000000
#define CFG_EBC_PB4AP 0x05014300
#define CFG_EBC_PB4CR (CFG_DSP_BASE | 0x3a000)
The problem is this.
When I access over 2Mbytes area of DSP4(Over d0200000), I?ve got bus error
in my application.
Accessing to under 2Mbytes, it works well?.
Are there anything to do, when I want to attatch new devices????
Best Regards?
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [Add tlbentry problem]
2008-08-18 14:52 [U-Boot] [Add tlbentry problem] 김영순
@ 2008-08-18 15:28 ` Stefan Roese
2008-09-09 20:19 ` Feng Kan
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2008-08-18 15:28 UTC (permalink / raw)
To: u-boot
On Monday 18 August 2008, ??? wrote:
> I?ve worked on my custum board based on SEQUOIA.
>
>
>
> I?d like to add new device (DSP, SIZE=256M, CS4).
>
> I added tlbentry(256M) in init.S and defined CS4 in sequoia.h.
>
>
>
> Init.S:
>
> /* TLB-entry for EBC(DSP) */
>
> tlbentry( CFG_DSP_BASE, SZ_256M, CFG_DSP_BASE, 1,
> AC_R|AC_W|AC_X|SA_G|SA_I )
>
>
>
> sequoia.h:
>
> #define CFG_DSP_BASE 0xd0000000
>
> #define CFG_EBC_PB4AP 0x05014300
>
> #define CFG_EBC_PB4CR (CFG_DSP_BASE | 0x3a000)
With this you defined the bank size to 2MB. So a bus error for access "after"
these 2MB is to be expected. Try this instead:
#define CFG_EBC_PB4CR (CFG_DSP_BASE | 0xfa000)
This will only cover 128MB though as this is the max for an EBC bank size.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [Add tlbentry problem]
2008-08-18 14:52 [U-Boot] [Add tlbentry problem] 김영순
2008-08-18 15:28 ` Stefan Roese
@ 2008-09-09 20:19 ` Feng Kan
1 sibling, 0 replies; 3+ messages in thread
From: Feng Kan @ 2008-09-09 20:19 UTC (permalink / raw)
To: u-boot
Hi Yshim:
Please check your EBC CR value, if you configure for 2M, then
thats what you will get.
Feng Kan
??? wrote:
>
>
> I?ve worked on my custum board based on SEQUOIA.
>
>
>
> I?d like to add new device (DSP, SIZE=256M, CS4).
>
> I added tlbentry(256M) in init.S and defined CS4 in sequoia.h.
>
>
>
> Init.S:
>
> /* TLB-entry for EBC(DSP) */
>
> tlbentry( CFG_DSP_BASE, SZ_256M, CFG_DSP_BASE, 1,
> AC_R|AC_W|AC_X|SA_G|SA_I )
>
>
>
> sequoia.h:
>
> #define CFG_DSP_BASE 0xd0000000
>
> #define CFG_EBC_PB4AP 0x05014300
>
> #define CFG_EBC_PB4CR (CFG_DSP_BASE | 0x3a000)
>
>
>
> The problem is this.
>
> When I access over 2Mbytes area of DSP4(Over d0200000), I?ve got bus error
> in my application.
>
> Accessing to under 2Mbytes, it works well?.
>
>
>
> Are there anything to do, when I want to attatch new devices????
>
>
>
> Best Regards?
>
>
>
>
>
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-09-09 20:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-18 14:52 [U-Boot] [Add tlbentry problem] 김영순
2008-08-18 15:28 ` Stefan Roese
2008-09-09 20:19 ` Feng Kan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox