mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 18:14:24 +00:00

RK3566/RK3568 is a Quad-core soc and Cortex-a55 inside. This patch supports the following functions: 1. basic platform setup 2. power up/off cpus 3. suspend/resume cpus 4. suspend/resume system 5. reset system Signed-off-by: shengfei Xu <xsf@rock-chips.com> Change-Id: I8b98a4d07664de26bd6078f63664cbc3d9c1c68c
46 lines
1.5 KiB
C
46 lines
1.5 KiB
C
/*
|
|
* Copyright (c) 2018-2022, Arm Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef DSU_DEF_H
|
|
#define DSU_DEF_H
|
|
|
|
#include <lib/utils_def.h>
|
|
|
|
/********************************************************************
|
|
* DSU Cluster Configuration registers definitions
|
|
********************************************************************/
|
|
#define CLUSTERCFR_EL1 S3_0_C15_C3_0
|
|
|
|
#define CLUSTERCFR_ACP_SHIFT U(11)
|
|
|
|
/********************************************************************
|
|
* DSU Cluster Main Revision ID registers definitions
|
|
********************************************************************/
|
|
#define CLUSTERIDR_EL1 S3_0_C15_C3_1
|
|
|
|
#define CLUSTERIDR_REV_SHIFT U(0)
|
|
#define CLUSTERIDR_REV_BITS U(4)
|
|
#define CLUSTERIDR_VAR_SHIFT U(4)
|
|
#define CLUSTERIDR_VAR_BITS U(4)
|
|
|
|
/********************************************************************
|
|
* DSU Cluster Auxiliary Control registers definitions
|
|
********************************************************************/
|
|
#define CLUSTERACTLR_EL1 S3_0_C15_C3_3
|
|
#define CLUSTERPWRCTLR_EL1 S3_0_C15_C3_5
|
|
|
|
#define CLUSTERACTLR_EL1_DISABLE_CLOCK_GATING (ULL(1) << 15)
|
|
#define CLUSTERACTLR_EL1_DISABLE_SCLK_GATING (ULL(3) << 15)
|
|
|
|
/********************************************************************
|
|
* Masks applied for DSU errata workarounds
|
|
********************************************************************/
|
|
#define DSU_ERRATA_936184_MASK (U(0x3) << 15)
|
|
|
|
#ifndef __ASSEMBLER__
|
|
void dsu_pwr_dwn(void);
|
|
#endif
|
|
#endif /* DSU_DEF_H */
|