* [U-Boot-Users] RPXlite_DW problem/solution U-boot CVS
@ 2004-11-30 3:19 ccool
2004-11-30 8:41 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: ccool @ 2004-11-30 3:19 UTC (permalink / raw)
To: u-boot
Hello,
I found out a little something in the CVS version of U-boot about the
RPXlite_DW addapted by Sam Song.
In the file
include/configs/RPXlite_DW.h
at line 324
I had to replace
#define CFG_OR1_PRELIM ( CFG_OR_AM_SDRAM | CFG_OR_TIMING_SDRAM )
for
#define CFG_OR1_PRELIM 0xFF000E00
and at line 353-354
I had to replace
#define CFG_MAMR_9COL ((CFG_MAMR_PTA << MAMR_PTA_SHIFT) | MAMR_PTAE | \
MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10)
by
#define CFG_MAMR_9COL 0x20802000
If I did not change those two register, U-boot would get stuck@the DRAM
detection and would only find 1K (instead of the 16M on my board).
I`m sending this as a simple information. I know my method is not the best
way to define thoses register, but I though that maybe the other ways to
improve the definition you have put in a way that all RPXlite_DW board would
set the Ram correctly.
Have a nice day,
Rapha?l
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] RPXlite_DW problem/solution U-boot CVS
2004-11-30 3:19 [U-Boot-Users] RPXlite_DW problem/solution U-boot CVS ccool
@ 2004-11-30 8:41 ` Wolfgang Denk
0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2004-11-30 8:41 UTC (permalink / raw)
To: u-boot
In message <200411292219.25317.ccool@ninjatech.biz> you wrote:
>
> I found out a little something in the CVS version of U-boot about the
> RPXlite_DW addapted by Sam Song.
>
> In the file
> include/configs/RPXlite_DW.h
> at line 324
> I had to replace
> #define CFG_OR1_PRELIM ( CFG_OR_AM_SDRAM | CFG_OR_TIMING_SDRAM )
> for
> #define CFG_OR1_PRELIM 0xFF000E00
>
> and at line 353-354
> I had to replace
> #define CFG_MAMR_9COL ((CFG_MAMR_PTA << MAMR_PTA_SHIFT) | MAMR_PTAE | \
> MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10)
> by
> #define CFG_MAMR_9COL 0x20802000
Argh... Is it too much to ask you to provide the information in the
same readable format as used in the original coinfig file, i. e.
broken down into separate, readable parts, instead of just throwing a
hard-coded hex number on us?
> If I did not change those two register, U-boot would get stuck at the DRAM
> detection and would only find 1K (instead of the 16M on my board).
So let's have a look what you did.
You changed the OR setting from 0xF800.... into 0xFF00...., which
means that instead oif the previously used mapping of 128 MB you now
only map 64 MB. [I really wonder why you not redefined SDRAM_MAX_SIZE
as 0x04000000 - was too much work or what?]
And you changed MAMR_AMA_TYPE_1 into MAMR_AMA_TYPE_0 (Addess Multi-
plexing Type 0), and MAMR_G0CLA_A10 into MAMR_G0CLA_A11 (General Line
0 : A10).
And you still use the name CFG_MAMR_9COL for this definition, which
is misleading at best, because what you changed means that you don't
have a 9 column SDRAM on your board, but are using a 8 column SDRAM.
> I`m sending this as a simple information. I know my method is not the best
> way to define thoses register, but I though that maybe the other ways to
Indeed, it is not the best way. Actually it is a quick and ugly hack
and not usable, as it breaks U-Boot for all the other boards that
worked fine so far.
What we learned is that there seems to be RPXlite_DW boards out there
that use 8 column SDRAM, and others (most?) that use 9 column SDRAM.
The correct fix to this would be to make the SDRAM initialization
code automatically detect if 8 or 9 column SDRAM is used and adjust
the settings as needed. Example code for doing exactly this can be
found in the TQM8xxL configurations (i. e. in board/tqm8xx/tqm8xx.c).
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Monday is an awful way to spend one seventh of your life.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] RPXlite_DW problem/solution U-boot CVS
@ 2004-11-30 14:53 Sam Song
2004-11-30 16:21 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: Sam Song @ 2004-11-30 14:53 UTC (permalink / raw)
To: u-boot
Hi, Rapha,
> In the file include/configs/RPXlite_DW.h
> at line 324 I had to replace
> #define CFG_OR1_PRELIM ( CFG_OR_AM_SDRAM |
> CFG_OR_TIMING_SDRAM )
> for
> #define CFG_OR1_PRELIM 0xFF000E00
> and at line 353-354
> I had to replace
> #define CFG_MAMR_9COL ((CFG_MAMR_PTA <<
> MAMR_PTA_SHIFT) | MAMR_PTAE |
> \ MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL |
MAMR_G0CLA_A10)
> by
> #define CFG_MAMR_9COL 0x20802000
OK, you can do that because there are only 16MB RAM on
your board. So if you successfully port U-Boot on your
16MB RPXlite_DW board. I would meet you half way. Just
Add "make RPXlite_DW_16MB" to support your board. So
you just need add a CONFIG_RPXLITE_16MB macro in your
code only. Note, I ported U-Boot on RPXlite DW board
with 64MB SDRAM and it has been working fine:-)
=====
Best regards,
Sam
_________________________________________________________
Do You Yahoo!?
150??MP3????????????
http://music.yisou.com/
???????????????????
http://image.yisou.com
1G??1000???????????
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] RPXlite_DW problem/solution U-boot CVS
2004-11-30 14:53 Sam Song
@ 2004-11-30 16:21 ` Wolfgang Denk
2004-12-01 1:05 ` Sam Song
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2004-11-30 16:21 UTC (permalink / raw)
To: u-boot
In message <20041130145337.65907.qmail@web15601.mail.cnb.yahoo.com> you wrote:
>
> OK, you can do that because there are only 16MB RAM on
> your board. So if you successfully port U-Boot on your
> 16MB RPXlite_DW board. I would meet you half way. Just
> Add "make RPXlite_DW_16MB" to support your board. So
No, please don't. It is trivial (less than 15 lines of code) to
support both 8 and 9 column SDRAM chips with the same configuration,
so instead of littering the Makefile with countless configurations
all the boards will be able to run the same U-Boot image. I already
poointed out how to do this.
> you just need add a CONFIG_RPXLITE_16MB macro in your
Don't. I will reject any such patches. Do it the Right Way (TM).
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
COBOL is for morons. -- E.W. Dijkstra
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] RPXlite_DW problem/solution U-boot CVS
2004-11-30 16:21 ` Wolfgang Denk
@ 2004-12-01 1:05 ` Sam Song
0 siblings, 0 replies; 5+ messages in thread
From: Sam Song @ 2004-12-01 1:05 UTC (permalink / raw)
To: u-boot
Wolfgang Denk <wd@denx.de> wrote?
> > Add "make RPXlite_DW_16MB" to support your board.
>
> No, please don't. It is trivial (less than 15
> lines of code) to support both 8 and 9 column
> SDRAM chips with the same configuration,
> so instead of littering the Makefile with
> countless configurations
> all the boards will be able to run the same U-Boot
> image. I already poointed out how to do this.
Sorry for this misleading advice I did. OK, just do
the port in your way. But first thing is to port right
on 16MB RPXlite DW board. For Rapha's port
convenience, I list the ported RPXlite DW hardware
configuration.
CPU: MPC823e
FLASH: 4?AM29DL323DB90VI 4?4MB=16MB 4?8bit
SDRAM: 2?MT48LC16M16A2-75 2?32MB=64MB 2?16bit
> > you just need add a CONFIG_RPXLITE_16MB macro in
>
> Don't. I will reject any such patches. Do it the
> Right Way (TM).
OK, fine. Be more professional. I do agree:-)
=====
Best regards,
Sam
_________________________________________________________
Do You Yahoo!?
150??MP3????????????
http://music.yisou.com/
???????????????????
http://image.yisou.com
1G??1000???????????
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-12-01 1:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-30 3:19 [U-Boot-Users] RPXlite_DW problem/solution U-boot CVS ccool
2004-11-30 8:41 ` Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2004-11-30 14:53 Sam Song
2004-11-30 16:21 ` Wolfgang Denk
2004-12-01 1:05 ` Sam Song
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.