]> Git Repo - u-boot.git/blob - board/renesas/falcon/falcon.c
ARM: renesas: Add R8A779A0 V3U Falcon board code
[u-boot.git] / board / renesas / falcon / falcon.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * board/renesas/falcon/falcon.c
4  *     This file is Falcon board support.
5  *
6  * Copyright (C) 2020 Renesas Electronics Corp.
7  */
8
9 #include <common.h>
10 #include <asm/arch/rmobile.h>
11 #include <asm/arch/sys_proto.h>
12 #include <asm/global_data.h>
13 #include <asm/io.h>
14 #include <asm/mach-types.h>
15 #include <asm/processor.h>
16 #include <linux/errno.h>
17
18 DECLARE_GLOBAL_DATA_PTR;
19
20 #define CPGWPR          0xE6150000
21 #define CPGWPCR         0xE6150004
22
23 int board_early_init_f(void)
24 {
25         /* Unlock CPG access */
26         writel(0x5A5AFFFF, CPGWPR);
27         writel(0xA5A50000, CPGWPCR);
28
29         return 0;
30 }
31
32 int board_init(void)
33 {
34         /* address of boot parameters */
35         gd->bd->bi_boot_params = CONFIG_SYS_TEXT_BASE + 0x50000;
36
37         return 0;
38 }
39
40 #define RST_BASE        0xE6160000 /* Domain0 */
41 #define RST_SRESCR0     (RST_BASE + 0x18)
42 #define RST_SPRES       0x5AA58000
43
44 void reset_cpu(void)
45 {
46         writel(RST_SPRES, RST_SRESCR0);
47 }
This page took 0.028451 seconds and 4 git commands to generate.