1 /* 2 * Copyright (c) 2019, ARM Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef IMX_AIPSTZ_H 8 #define IMX_AIPSTZ_H 9 10 #include <lib/utils_def.h> 11 12 #define AIPSTZ_MPR0 U(0x0) 13 #define AIPSTZ_MPR1 U(0x4) 14 15 #define AIPSTZ_OPACR_NUM U(0x5) 16 #define OPACR_OFFSET(i) U((i) * 4 + 0x40) 17 18 struct aipstz_cfg { 19 uintptr_t base; 20 uint32_t mpr0; 21 uint32_t mpr1; 22 uint32_t opacr[AIPSTZ_OPACR_NUM]; 23 }; 24 25 void imx_aipstz_init(const struct aipstz_cfg *aipstz_cfg); 26 27 #endif /* IMX_AIPSTZ_H */ 28