sunxi: d1: board: sunxi: fdt fixup of dram size for d1 platforms - #8
Open
geomatsi wants to merge 2 commits into
Open
sunxi: d1: board: sunxi: fdt fixup of dram size for d1 platforms#8geomatsi wants to merge 2 commits into
geomatsi wants to merge 2 commits into
Conversation
On D1 boards, the U-Boot SPL detects the DRAM size and patches the DTB accordingly. Later, if U-Boot uses a different DTB for booting Linux, it copies only the dtb reserved-memory blocks, but not the dtb memory block. Meanwhile, current mainline Linux device trees for D1 platforms do not include a memory block. This change enables adding or updating the memory block in the DTB passed to Linux. Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
Most part of D1 boards listed on linux-sunxi.org have 512MB or more DRAM. So add new option for SUNXI_MINIMUM_DRAM_MB and make it default for SUNXI D1 boards. Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi @smaeul
While adding support for this board in Buildroot, I discovered that I couldn't simply switch to using the mainline Linux DTS.
This merge request includes two patches that enable its use without further modifications. In brief:
Please let me know if I got it wrong and there is a proper default way to handle this.
Regards,
Sergey