mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00

There are some incorrect casts and some missing casts in the headers. This patch fixes the ones that were 64-bit or 32-bit wide wrongly and adds casts where they were missing. Note that none of the changes of the patch actually changes the values of the definitions. This patch is just for correctness. Change-Id: Iad6458021bad521922ce4f91bafff38b116b49eb Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2018-2019, 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 control registers definitions *
|
|
********************************************************************/
|
|
#define CLUSTERCFR_EL1 S3_0_C15_C3_0
|
|
#define CLUSTERIDR_EL1 S3_0_C15_C3_1
|
|
#define CLUSTERACTLR_EL1 S3_0_C15_C3_3
|
|
|
|
/********************************************************************
|
|
* DSU control registers bit fields *
|
|
********************************************************************/
|
|
#define CLUSTERIDR_REV_SHIFT U(0)
|
|
#define CLUSTERIDR_REV_BITS U(4)
|
|
#define CLUSTERIDR_VAR_SHIFT U(4)
|
|
#define CLUSTERIDR_VAR_BITS U(4)
|
|
#define CLUSTERCFR_ACP_SHIFT U(11)
|
|
|
|
/********************************************************************
|
|
* Masks applied for DSU errata workarounds *
|
|
********************************************************************/
|
|
#define DSU_ERRATA_936184_MASK (U(0x3) << 15)
|
|
|
|
#endif /* DSU_DEF_H */
|