2018-07-23 09:11:59 +01:00
|
|
|
/*
|
2019-02-11 13:34:15 +00:00
|
|
|
* Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved.
|
2018-07-23 09:11:59 +01:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DSU_DEF_H
|
|
|
|
#define DSU_DEF_H
|
|
|
|
|
2018-12-14 00:18:21 +00:00
|
|
|
#include <lib/utils_def.h>
|
2018-07-23 09:11:59 +01:00
|
|
|
|
|
|
|
/********************************************************************
|
2019-04-09 14:11:06 +01:00
|
|
|
* DSU Cluster Configuration registers definitions
|
2018-07-23 09:11:59 +01:00
|
|
|
********************************************************************/
|
|
|
|
#define CLUSTERCFR_EL1 S3_0_C15_C3_0
|
2019-04-09 14:11:06 +01:00
|
|
|
|
|
|
|
#define CLUSTERCFR_ACP_SHIFT U(11)
|
2018-07-23 09:11:59 +01:00
|
|
|
|
|
|
|
/********************************************************************
|
2019-04-09 14:11:06 +01:00
|
|
|
* DSU Cluster Main Revision ID registers definitions
|
2018-07-23 09:11:59 +01:00
|
|
|
********************************************************************/
|
2019-04-09 14:11:06 +01:00
|
|
|
#define CLUSTERIDR_EL1 S3_0_C15_C3_1
|
|
|
|
|
2018-07-23 09:11:59 +01:00
|
|
|
#define CLUSTERIDR_REV_SHIFT U(0)
|
|
|
|
#define CLUSTERIDR_REV_BITS U(4)
|
|
|
|
#define CLUSTERIDR_VAR_SHIFT U(4)
|
|
|
|
#define CLUSTERIDR_VAR_BITS U(4)
|
|
|
|
|
|
|
|
/********************************************************************
|
2019-04-09 14:11:06 +01:00
|
|
|
* DSU Cluster Auxiliary Control registers definitions
|
|
|
|
********************************************************************/
|
|
|
|
#define CLUSTERACTLR_EL1 S3_0_C15_C3_3
|
|
|
|
|
2019-04-09 16:29:01 +01:00
|
|
|
#define CLUSTERACTLR_EL1_DISABLE_CLOCK_GATING (ULL(1) << 15)
|
|
|
|
|
2019-04-09 14:11:06 +01:00
|
|
|
/********************************************************************
|
|
|
|
* Masks applied for DSU errata workarounds
|
2018-07-23 09:11:59 +01:00
|
|
|
********************************************************************/
|
2019-02-11 13:34:15 +00:00
|
|
|
#define DSU_ERRATA_936184_MASK (U(0x3) << 15)
|
2018-07-23 09:11:59 +01:00
|
|
|
|
|
|
|
#endif /* DSU_DEF_H */
|