aboutsummaryrefslogtreecommitdiff
path: root/board/silinux/ek874/ek874.c
diff options
context:
space:
mode:
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>2021-03-15 22:24:05 +0000
committerMarek Vasut <marek.vasut+renesas@gmail.com>2021-03-16 20:09:29 +0100
commit07148c18994517610a21cfe9dd370296df349712 (patch)
treee3947457ed189ded5d280cf246f024abce5dcf6e /board/silinux/ek874/ek874.c
parent220f308a5cf00249aec5ab9fb79b78a8e4e41bab (diff)
downloadu-boot-07148c18994517610a21cfe9dd370296df349712.zip
u-boot-07148c18994517610a21cfe9dd370296df349712.tar.gz
u-boot-07148c18994517610a21cfe9dd370296df349712.tar.bz2
arm: rmobile: Add Silicon Linux EK874 board support
The EK874 development kit from Silicon Linux is made of CAT874 (the main board) and CAT875 (the sub board that goes on top of CAT874). This patch adds the required board support to boot Si-Linux EK874 board based on R8A774C0 SoC. DTS files apart from r8a774c0-ek874-u-boot.dts and r8a774c0-u-boot.dtsi have been imported from Linux kernel 5.11 commit f40ddce88593 ("Linux 5.11"). Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Diffstat (limited to 'board/silinux/ek874/ek874.c')
-rw-r--r--board/silinux/ek874/ek874.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/board/silinux/ek874/ek874.c b/board/silinux/ek874/ek874.c
new file mode 100644
index 0000000..5a219cd
--- /dev/null
+++ b/board/silinux/ek874/ek874.c
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * board/silinux/ek874/ek874.c
+ * This file is ek874 board support.
+ *
+ * Copyright (C) 2021 Renesas Electronics Corporation
+ */
+
+#include <common.h>
+#include <asm/global_data.h>
+#include <asm/io.h>
+
+#define RST_BASE 0xE6160000
+#define RST_CA53RESCNT (RST_BASE + 0x44)
+#define RST_CA53_CODE 0x5A5A000F
+
+DECLARE_GLOBAL_DATA_PTR;
+
+int board_init(void)
+{
+ /* address of boot parameters */
+ gd->bd->bi_boot_params = CONFIG_SYS_TEXT_BASE + 0x50000;
+
+ return 0;
+}
+
+void reset_cpu(ulong addr)
+{
+ writel(RST_CA53_CODE, RST_CA53RESCNT);
+}