blob: a3fe6f96d091857b55f6e1c5994dc89fd576f29a [file] [log] [blame]
Lad Prabhakarb4b65ec2021-03-15 22:24:05 +00001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * board/silinux/ek874/ek874.c
4 * This file is ek874 board support.
5 *
6 * Copyright (C) 2021 Renesas Electronics Corporation
7 */
8
Lad Prabhakarb4b65ec2021-03-15 22:24:05 +00009#include <asm/global_data.h>
Tom Rinidec7ea02024-05-20 13:35:03 -060010#include <asm/u-boot.h>
Lad Prabhakarb4b65ec2021-03-15 22:24:05 +000011#include <asm/io.h>
12
13#define RST_BASE 0xE6160000
14#define RST_CA53RESCNT (RST_BASE + 0x44)
15#define RST_CA53_CODE 0x5A5A000F
16
17DECLARE_GLOBAL_DATA_PTR;
18
19int board_init(void)
20{
21 /* address of boot parameters */
Simon Glass72cc5382022-10-20 18:22:39 -060022 gd->bd->bi_boot_params = CONFIG_TEXT_BASE + 0x50000;
Lad Prabhakarb4b65ec2021-03-15 22:24:05 +000023
24 return 0;
25}
26
Patrick Delaunay3fa1bdc2021-07-19 11:21:50 +020027void reset_cpu(void)
Lad Prabhakarb4b65ec2021-03-15 22:24:05 +000028{
29 writel(RST_CA53_CODE, RST_CA53RESCNT);
30}