Skip to content

Commit 1fa49f8

Browse files
committed
s32: soc: s32z7: add CRYPTO HSE soc specific code
Code auto-generated with S32 Design Studio for S32 Platform for S32Z. Signed-off-by: Ha Duong Quang <[email protected]>
1 parent 3c90108 commit 1fa49f8

File tree

3 files changed

+110
-2
lines changed

3 files changed

+110
-2
lines changed

s32/drivers/s32ze/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ add_subdirectory(BaseNXP)
55
add_subdirectory(Icu)
66
add_subdirectory(Mcu)
77
add_subdirectory(Rte)
8-
add_subdirectory_ifdef(CONFIG_CRYPTO_NXP_HSE Crypto)
9-
add_subdirectory_ifdef(CONFIG_CRYPTO_NXP_HSE HSE)
8+
add_subdirectory_ifdef(CONFIG_CRYPTO_NXP_S32_HSE Crypto)
9+
add_subdirectory_ifdef(CONFIG_CRYPTO_NXP_S32_HSE HSE)
1010
add_subdirectory_ifdef(CONFIG_ADC_NXP_S32_ADC_SAR Adc)
1111
add_subdirectory_ifdef(CONFIG_NXP_S32_SPI Spi)
1212
add_subdirectory_ifdef(CONFIG_UART_NXP_S32_LINFLEXD Uart)

s32/drivers/s32ze/Rte/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ if(CONFIG_PWM_NXP_S32_EMIOS AND CONFIG_PWM_CAPTURE)
1717
endif()
1818
zephyr_library_sources_ifdef(CONFIG_MEMC_NXP_S32_QSPI src/SchM_Mem_43_EXFLS.c)
1919
zephyr_library_sources_ifdef(CONFIG_CRYPTO_NXP_HSE src/SchM_Crypto_43_HSE.c)
20+
zephyr_library_sources_ifdef(CONFIG_CRYPTO_NXP_S32_HSE src/SchM_Crypto_43_HSE.c)

s32/soc/s32z270/include/Hse_Ip_Cfg.h

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
/*
2+
* Copyright 2021-2024 NXP
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/
6+
7+
#ifndef HSE_IP_CFG_H
8+
#define HSE_IP_CFG_H
9+
10+
/**
11+
* @file
12+
*
13+
* @addtogroup CRYPTO_43_HSE
14+
* @{
15+
*/
16+
17+
#ifdef __cplusplus
18+
extern "C"{
19+
#endif
20+
21+
22+
/*==================================================================================================
23+
* INCLUDE FILES
24+
* 1) system and project includes
25+
* 2) needed interfaces from external units
26+
* 3) internal and external interfaces from this unit
27+
==================================================================================================*/
28+
#include "S32Z2_MU.h"
29+
#include "OsIf.h"
30+
31+
/*==================================================================================================
32+
* SOURCE FILE VERSION INFORMATION
33+
==================================================================================================*/
34+
#define HSE_IP_CFG_VENDOR_ID_H 43
35+
#define HSE_IP_CFG_SW_MAJOR_VERSION_H 2
36+
#define HSE_IP_CFG_SW_MINOR_VERSION_H 0
37+
#define HSE_IP_CFG_SW_PATCH_VERSION_H 0
38+
39+
/*==================================================================================================
40+
* FILE VERSION CHECKS
41+
==================================================================================================*/
42+
43+
/*==================================================================================================
44+
* CONSTANTS
45+
==================================================================================================*/
46+
47+
/*==================================================================================================
48+
* DEFINES AND MACROS
49+
==================================================================================================*/
50+
51+
/* Defines for the available MU instances */
52+
#define HSE_IP_MU_0 ((uint8)0U)
53+
#define HSE_IP_MU_1 ((uint8)1U)
54+
#define HSE_IP_MU_2 ((uint8)2U)
55+
#define HSE_IP_MU_3 ((uint8)3U)
56+
#define HSE_IP_MU_4 ((uint8)4U)
57+
#define HSE_IP_MU_5 ((uint8)5U)
58+
#define HSE_IP_MU_6 ((uint8)6U)
59+
#define HSE_IP_MU_7 ((uint8)7U)
60+
61+
/* Max number of MU instances */
62+
#define HSE_IP_NUM_OF_MU_INSTANCES (8U)
63+
64+
/* Max number of channels per MU interface */
65+
#define HSE_IP_NUM_OF_CHANNELS_PER_MU (16U)
66+
67+
/* Pre-processor switch to enable/disable development error detection for Hse Ip API */
68+
#define HSE_IP_DEV_ERROR_DETECT (STD_OFF)
69+
70+
/* OsIf counter type used in timeout detection for HSE IP service request */
71+
#define HSE_IP_TIMEOUT_OSIF_COUNTER_TYPE (OSIF_COUNTER_DUMMY)
72+
73+
/* Support for Hse operations using TCM addresses */
74+
#define HSE_IP_ENABLE_TCM_SUPPORT (STD_OFF)
75+
76+
/* Initializer for the MU Host base addresses */
77+
#define MU_HOST_BASE_PTRS { IP_MU0__MUB, IP_MU1__MUB, IP_MU2__MUB, IP_MU3__MUB, IP_MU4__MUB, IP_MU5__MUB, IP_MU6__MUB, IP_MU7__MUB }
78+
79+
/*==================================================================================================
80+
* ENUMS
81+
==================================================================================================*/
82+
83+
/*==================================================================================================
84+
* STRUCTURES AND OTHER TYPEDEFS
85+
==================================================================================================*/
86+
87+
/*==================================================================================================
88+
* GLOBAL CONSTANTS
89+
==================================================================================================*/
90+
91+
/*==================================================================================================
92+
* GLOBAL VARIABLE DECLARATIONS
93+
==================================================================================================*/
94+
95+
/*==================================================================================================
96+
* FUNCTION PROTOTYPES
97+
==================================================================================================*/
98+
99+
100+
#ifdef __cplusplus
101+
}
102+
#endif
103+
104+
/** @} */
105+
106+
#endif /* HSE_IP_CFG_H */
107+

0 commit comments

Comments
 (0)