1 /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */ 2 /* 3 * Copyright (C) 2020, STMicroelectronics - All Rights Reserved 4 */ 5 6 /* check self hosted debug status = BSEC_DENABLE.DBGSWENABLE */ 7 bool bsec_dbgswenable(void); 8 9 /* Bitfield definition for LOCK status */ 10 #define BSEC_LOCK_PERM BIT(30) 11 #define BSEC_LOCK_SHADOW_R BIT(29) 12 #define BSEC_LOCK_SHADOW_W BIT(28) 13 #define BSEC_LOCK_SHADOW_P BIT(27) 14 #define BSEC_LOCK_ERROR BIT(26) 15