* [U-Boot-Users] [PATCH] lpd7a40x register defs, include consolidation
@ 2004-10-11 15:19 Ruhland, Paul
2004-10-11 17:45 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: Ruhland, Paul @ 2004-10-11 15:19 UTC (permalink / raw)
To: u-boot
Wolfgang,
Thanks for the response. I will resubmit with necessary changes.
A little info regarding point [2]:
> No. I reject this. [2] Please do not pollute the Makefile and MAKEALL
> (oops, you even forgot to update this one!) with so many different
> build targets which differ only in the available RAM size of the
> target. There is existing code (in common/memsize.c) to atomatically
> detect the available size, so please fix your code and auto-adjust as
> needed.
I had code to autodetect the ram working but I removed it since it required
changes to several files relating to how the DRAM config is handled (printed,
passed to kernel, etc).
For configurations with more than 32MB of DRAM the layout is not contiguous,
ie. more than one bank is required. Since the number of DRAM banks is
#defined there is no way to adjust this at runtime. The result is having an
extra bank of zero size configured for boards with <= 32MB DRAM.
This gives the wrong impression...that there are more DRAM banks but for some
reason one is zero size (ie. something is wrong).
I've since booted a kernel with the above setup and it seems to deal with the
zero size bank fine so I guess this isn't a problem from the operation point
of view.
It would be nice if either:
1) the number of DRAM banks was configurable@runtime.
2) leave the number of DRAM banks #defined (as max. banks) and simply add
checks for zero size in the config print, kernel atag, etc. handling to skip
such banks.
--
Paul Ruhland
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] [PATCH] lpd7a40x register defs, include consolidation
2004-10-11 15:19 [U-Boot-Users] [PATCH] lpd7a40x register defs, include consolidation Ruhland, Paul
@ 2004-10-11 17:45 ` Wolfgang Denk
2004-10-12 23:08 ` Paul Ruhland
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2004-10-11 17:45 UTC (permalink / raw)
To: u-boot
Dear Paul,
in message <200410111119.07866.pruhland@microwavedata.com> you wrote:
>
> I had code to autodetect the ram working but I removed it since it required
> changes to several files relating to how the DRAM config is handled (printed,
> passed to kernel, etc).
OK.
> For configurations with more than 32MB of DRAM the layout is not contiguous,
> ie. more than one bank is required. Since the number of DRAM banks is
> #defined there is no way to adjust this at runtime. The result is having an
> extra bank of zero size configured for boards with <= 32MB DRAM.
And this cannot be fixed?
> This gives the wrong impression...that there are more DRAM banks but for some
> reason one is zero size (ie. something is wrong).
I don't understand. You tell me, that there is no SDRAM populated on
one of the banks, resulting in a smaller total RAM size, and you
hesitate to show this information to the user?
> It would be nice if either:
> 1) the number of DRAM banks was configurable at runtime.
Personally, I don't see any need to display the number of banks at
all; on PowerPC systems we just print the total RAM size, and every-
body is happy with this.
But no matter what you want - both methods can be implemented. Feel
free to submit a patch.
> 2) leave the number of DRAM banks #defined (as max. banks) and simply add
> checks for zero size in the config print, kernel atag, etc. handling to skip
> such banks.
Why skip them? What's wrong that a bank that is not populated shows
up with a zero size?
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
"Life, loathe it or ignore it, you can't like it."
- Marvin the paranoid android
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] [PATCH] lpd7a40x register defs, include consolidation
2004-10-11 17:45 ` Wolfgang Denk
@ 2004-10-12 23:08 ` Paul Ruhland
0 siblings, 0 replies; 5+ messages in thread
From: Paul Ruhland @ 2004-10-12 23:08 UTC (permalink / raw)
To: u-boot
On Sunday 10 October 2004 17:51, you wrote:
> I don't understand. You tell me, that there is no SDRAM populated on
> one of the banks, resulting in a smaller total RAM size, and you
> hesitate to show this information to the user?
> Why skip them? What's wrong that a bank that is not populated shows
> up with a zero size?
Its not that the ram is unpopulated...it doesn't exist. There is really only
one 'physical' bank of ram (2 16bit chips) on the card engine. Due to the
way the LH7A40X SoCs address the ram the layout is not contiguous. You can
use a register bit to turn on 'rom look-alike' mode which enables a flat
addressing scheme but its still limited to 32MB.
So with 32MB there is only one bank while for 64MB there are two banks (using
the config option above). Without using the config option you have 8 banks
of 4MB each for 32MB. I've only added support for the former.
I just didn't want to show memory that is not there and never will be
(disregarding the guy with the soldering iron of course).
Also, I was using the 'make xxx_config' to adjust TEXT_BASE so u-boot could be
loaded at the top of ram regardless of the configuration.
If there is a way to accomplish these things without the makefile trickery I'm
certainly open to suggestions. Otherwise I'll just remove it and configure
all variants with the max possible banks.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] [PATCH] lpd7a40x register defs, include consolidation
2004-08-29 23:07 Paul Ruhland
@ 2004-10-10 21:51 ` Wolfgang Denk
0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2004-10-10 21:51 UTC (permalink / raw)
To: u-boot
Dear Paul,
in message <200408291907.31904.pruhland@rochester.rr.com> you wrote:
>
> I know you dislike large patches with many changes but I am hoping you will
> accept this. I've changed the register definitions to be in the style
Indeed. And I really hate it to receive patches that merge unrelated
changes into one big unseparatable thing.
And this is why I have to reject this one.
> CHANGELOG
> * Patch by Paul Ruhland, 29 August 2004
> - change register definitions to use the __REG style preferred by the
> arm linux community
This is OK with me. [1]
> - add targets to Makefile for all card engine SDRAM configurations
> - add support for all SDRAM configurations in board config includes,
> 'sdram_init', and board config.mk
No. I reject this. [2] Please do not pollute the Makefile and MAKEALL
(oops, you even forgot to update this one!) with so many different
build targets which differ only in the available RAM size of the
target. There is existing code (in common/memsize.c) to atomatically
detect the available size, so please fix your code and auto-adjust as
needed. This will also make your life easier as a board maintainer
since you need to have only one image per board type, not a different
one for each board configuration.
> - add CONFIG_LPD7A404 to 'ARM base boards' in toplevel README
> - add CPLD revision detection to handle hardware variations between
> card-engine revisions
> - consolidate existing board config includes into generic 'lpd7a40x-10.h'
> and 'lpd7a40x.h'... differences between boards are small enough not
> to warrent seperate files
This is OK with me. [3]
Please feel free to resubmit modifications relating to [1] and [3].
Resubmit [2] after fixing the code.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
Defaults are wonderful, just like fire.
- Larry Wall in <1996Mar6.004121.27890@netlabs.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] [PATCH] lpd7a40x register defs, include consolidation
@ 2004-08-29 23:07 Paul Ruhland
2004-10-10 21:51 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: Paul Ruhland @ 2004-08-29 23:07 UTC (permalink / raw)
To: u-boot
Wolfgang,
I know you dislike large patches with many changes but I am hoping you will
accept this. I've changed the register definitions to be in the style
preferred by the armlinux folks. Unfortunately, I changed this locally
before consolidating the board config includes and improving the SDRAM
configuration handling. So I can't really submit the latter changes
seperately without many small incremental patches and large headaches on my
end.
I will do it if you insist since these changes are quite an improvement for
these boards...but it may take a while.
CHANGELOG
* Patch by Paul Ruhland, 29 August 2004
- change register definitions to use the __REG style preferred by the
arm linux community
- add targets to Makefile for all card engine SDRAM configurations
- add support for all SDRAM configurations in board config includes,
'sdram_init', and board config.mk
- add CONFIG_LPD7A404 to 'ARM base boards' in toplevel README
- add CPLD revision detection to handle hardware variations between
card-engine revisions
- consolidate existing board config includes into generic 'lpd7a40x-10.h'
and 'lpd7a40x.h'... differences between boards are small enough not
to warrent seperate files
-------------- next part --------------
A non-text attachment was scrubbed...
Name: u-boot-lpd7a40x-reg-consolidate.patch.bz2
Type: application/x-bzip2
Size: 13394 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20040829/0609a472/attachment.bin
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-10-12 23:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-11 15:19 [U-Boot-Users] [PATCH] lpd7a40x register defs, include consolidation Ruhland, Paul
2004-10-11 17:45 ` Wolfgang Denk
2004-10-12 23:08 ` Paul Ruhland
-- strict thread matches above, loose matches on Subject: below --
2004-08-29 23:07 Paul Ruhland
2004-10-10 21:51 ` Wolfgang Denk
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.