1 // SPDX-License-Identifier: GPL-2.0+
3 * board/renesas/falcon/falcon.c
4 * This file is Falcon board support.
6 * Copyright (C) 2020 Renesas Electronics Corp.
10 #include <asm/arch/rmobile.h>
11 #include <asm/arch/sys_proto.h>
12 #include <asm/global_data.h>
14 #include <asm/mach-types.h>
15 #include <asm/processor.h>
16 #include <linux/errno.h>
18 DECLARE_GLOBAL_DATA_PTR;
20 #define CPGWPR 0xE6150000
21 #define CPGWPCR 0xE6150004
23 int board_early_init_f(void)
25 /* Unlock CPG access */
26 writel(0x5A5AFFFF, CPGWPR);
27 writel(0xA5A50000, CPGWPCR);
34 /* address of boot parameters */
35 gd->bd->bi_boot_params = CONFIG_SYS_TEXT_BASE + 0x50000;
40 #define RST_BASE 0xE6160000 /* Domain0 */
41 #define RST_SRESCR0 (RST_BASE + 0x18)
42 #define RST_SPRES 0x5AA58000
46 writel(RST_SPRES, RST_SRESCR0);