1/* 2 * Copyright (c) 2020, Arm Limited. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7#include <asm_macros.S> 8#include <neoverse_n_common.h> 9 10 .global is_scu_present_in_dsu 11 12/* 13 * Check if the SCU L3 Unit is present on the DSU 14 * 1-> SCU present 15 * 0-> SCU not present 16 * 17 * This function is implemented as weak on dsu_helpers.S and must be 18 * overwritten for Neoverse Nx cores. 19 */ 20 21func is_scu_present_in_dsu 22 mrs x0, CPUCFR_EL1 23 ubfx x0, x0, #SCU_SHIFT, #1 24 eor x0, x0, #1 25 ret 26endfunc is_scu_present_in_dsu 27