diff options
author | Stephen Warren <swarren@nvidia.com> | 2014-07-02 14:12:30 -0600 |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2014-08-18 16:57:03 -0700 |
commit | aeb3fcb35956461077804720b8a252d50758d7e0 (patch) | |
tree | b49a5e34ee8c34f2c08fd9cb63380bb3dd516217 /board | |
parent | 39446bcefafa178e4072bd28c4f8325835d473d2 (diff) | |
download | u-boot-imx-aeb3fcb35956461077804720b8a252d50758d7e0.zip u-boot-imx-aeb3fcb35956461077804720b8a252d50758d7e0.tar.gz u-boot-imx-aeb3fcb35956461077804720b8a252d50758d7e0.tar.bz2 |
ARM: tegra: Use mem size from MC rather than ODMDATA
In at least Tegra124, the Tegra memory controller (MC) has a register
that controls the memory size. Read this to determine the memory size
rather than requiring this to be redundantly encoded into the ODMDATA.
This way, changes to the BCT (i.e. MC configuration) automatically
updated SW's view of the memory size, without requiring manual changes
to the ODMDATA.
Future work potentially required:
* Clip the memory size to architectural limits; U-Boot probably doesn't
and won't support either LPAE or Tegra's "swiss cheese" memory layout,
at least one of which would be required for >2GB RAM.
* Subtract out any carveout required by firmware on future SoCs.
Based-on-work-by: Tom Warren <twarren@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'board')
0 files changed, 0 insertions, 0 deletions