summaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2021-04-12 01:04:51 +0100
committerTom Rini <trini@konsulko.com>2021-04-20 07:31:12 -0400
commit109552d773e7aeb0f6417d8245fb0ecf01599ef3 (patch)
tree010a7fe67a4d74cd576341a854ff299d449c890a /board
parent84b2cd74f370dabb707e2611bf57714a66d08622 (diff)
downloadu-boot-109552d773e7aeb0f6417d8245fb0ecf01599ef3.tar.gz
u-boot-109552d773e7aeb0f6417d8245fb0ecf01599ef3.tar.xz
u-boot-109552d773e7aeb0f6417d8245fb0ecf01599ef3.zip
arm: highbank: Enable OF_CONTROL
All Calxeda machines are actually a poster book example of device tree usage: the DT is loaded from flash by the management processor into DRAM, the memory node is populated with the detected DRAM size and this DT is then handed over to the kernel. So it's a shame that U-Boot didn't participate in this chain, but fortunately this is easy to fix: Define CONFIG_OF_CONTROL and CONFIG_OF_BOARD, and provide a trivial function to tell U-Boot about the (fixed) location of the DTB in DRAM. Then enable DM_SERIAL, to let the PL011 driver pick up the UART platform data from the DT. Also define AHCI, to bring this driver into the driver model world as well. Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'board')
-rw-r--r--board/highbank/highbank.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/highbank/highbank.c b/board/highbank/highbank.c
index 906bd9b6dd..2e2300a307 100644
--- a/board/highbank/highbank.c
+++ b/board/highbank/highbank.c
@@ -119,6 +119,16 @@ int ft_board_setup(void *fdt, struct bd_info *bd)
}
#endif
+void *board_fdt_blob_setup(void)
+{
+ /*
+ * The ECME management processor loads the DTB from NOR flash
+ * into DRAM (at 4KB), where it gets patched to contain the
+ * detected memory size.
+ */
+ return (void *)0x1000;
+}
+
static int is_highbank(void)
{
uint32_t midr;