[U-Boot] [PATCH] fdt_support: Use CONFIG_NR_DRAM_BANKS if defined

Tom Rini trini at ti.com
Tue Apr 30 22:35:26 CEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/30/2013 04:22 PM, Doug Anderson wrote:
> It appears that there are some cases where we have more than 4 
> banks of memory.  Use CONFIG_NR_DRAM_BANKS if it's defined to 
> handle this. This will take up a little extra stack space (64 bytes
> extra if we go up to 8 banks), but that seems OK.
> 
> Signed-off-by: Doug Anderson <dianders at chromium.org> --- Note: 
> nothing in-tree has 8 banks defined yet, but some configs have it 
> defined that are not in tree yet.

And I guess having this knowledge correct for the kernel is useful in
other contexts like when we want to power down some banks of memory
but not others?  I mean, there's "lots" of platforms that lie and say
1 bank since we require contiguous mapping.  Thanks!

- -- 
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRgCsOAAoJENk4IS6UOR1WXAMP/iE4gC9vI/R1dwchMrfkwVQC
hEM2WqO1/ABmP8u85e8+wT6omTw0BIsrGjoyDQlZuNYrCsh+Gem34yvUPArSIGQN
C+oVnNSBCa5R5Iaa86ZjT8vo5U7gSxdN2CPUcuyKCop9CC8RZCHNv52o8SnRZALQ
Fmd/pdKftOrw6McetNM+sb6UJKxEa+ZBLi5UeWZ1gMS33E0EkhOCx89yDj5auwxp
toSfwTivuqZ9MEiDGOVTlx3LGLk3RZBQFFzBC8aWeWGLw7oyjMO09yp9YDi5rXZ9
9yqOQCUIkEvmv8ZrtMhOQGZOihMvNBt8q4aBF611PSUyDrRb93qZ53RIxZkiI/5F
n+0HKreuIBa3UNTr2UVyrUl0mfc3JovTsUvTrw6TmLJllsXVsJg57Drzbcw1WSV4
MG7wDyPwmZ6jknAkS8BlpHkchFlLXW78r8oTrPeg2i4AF01/cTefp0RUG0IXpZ8N
4kiMm72Su/v64zOpKNqZQ6PINDBAaBWrCVFdFckErHQTWyp+x8XRhe5YpQuFDxdY
EYtfz4bimXZhMIYf/NVsZUQ7NiuUxJ+3Eg0SWB291ITk/RB7LGU57Gt3a0Qz/0Hj
frikRuhR6Go83qaB88UeEUz4TUqnz+m8SB1+Fzb9zTK1FPQaBGc55hD65Nxr5nqd
dKpkxnd5sD6suhBS+axy
=DSap
-----END PGP SIGNATURE-----


More information about the U-Boot mailing list