Skip to content

Commit

Permalink
s32: soc: s32z7: add CRYPTO HSE soc specific code
Browse files Browse the repository at this point in the history
Code auto-generated with S32 Design Studio for S32 Platform for S32Z.

Signed-off-by: Ha Duong Quang <[email protected]>
  • Loading branch information
haduongquang committed Oct 8, 2024
1 parent a7393d3 commit 5804392
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 3 deletions.
4 changes: 2 additions & 2 deletions s32/drivers/s32ze/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
add_subdirectory(BaseNXP)
add_subdirectory(Mcu)
add_subdirectory(Rte)
add_subdirectory_ifdef(CONFIG_CRYPTO_NXP_HSE Crypto)
add_subdirectory_ifdef(CONFIG_CRYPTO_NXP_HSE HSE)
add_subdirectory_ifdef(CONFIG_CRYPTO_NXP_S32_HSE Crypto)
add_subdirectory_ifdef(CONFIG_CRYPTO_NXP_S32_HSE HSE)
add_subdirectory_ifdef(CONFIG_ADC_NXP_S32_ADC_SAR Adc)
add_subdirectory_ifdef(CONFIG_NXP_S32_SPI Spi)
add_subdirectory_ifdef(CONFIG_UART_NXP_S32_LINFLEXD Uart)
Expand Down
2 changes: 1 addition & 1 deletion s32/drivers/s32ze/Rte/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ zephyr_library_sources_ifdef(CONFIG_UART_NXP_S32_LINFLEXD src/SchM_Uart.c)
zephyr_library_sources_ifdef(CONFIG_CAN_NXP_S32_CANXL src/SchM_Can_43_CANEXCEL.c)
zephyr_library_sources_ifdef(CONFIG_ETH_NXP_S32_NETC src/SchM_Eth_43_NETC.c)
zephyr_library_sources_ifdef(CONFIG_ETH_NXP_S32_NETC src/SchM_EthSwt_43_NETC.c)
zephyr_library_sources_ifdef(CONFIG_CRYPTO_NXP_HSE src/SchM_Crypto_43_HSE.c)
zephyr_library_sources_ifdef(CONFIG_CRYPTO_NXP_S32_HSE src/SchM_Crypto_43_HSE.c)
107 changes: 107 additions & 0 deletions s32/soc/s32z270/include/Hse_Ip_Cfg.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
/*
* Copyright 2021-2024 NXP
*
* SPDX-License-Identifier: BSD-3-Clause
*/

#ifndef HSE_IP_CFG_H
#define HSE_IP_CFG_H

/**
* @file
*
* @addtogroup CRYPTO_43_HSE
* @{
*/

#ifdef __cplusplus
extern "C"{
#endif


/*==================================================================================================
* INCLUDE FILES
* 1) system and project includes
* 2) needed interfaces from external units
* 3) internal and external interfaces from this unit
==================================================================================================*/
#include "S32Z2_MU.h"
#include "OsIf.h"

/*==================================================================================================
* SOURCE FILE VERSION INFORMATION
==================================================================================================*/
#define HSE_IP_CFG_VENDOR_ID_H 43
#define HSE_IP_CFG_SW_MAJOR_VERSION_H 2
#define HSE_IP_CFG_SW_MINOR_VERSION_H 0
#define HSE_IP_CFG_SW_PATCH_VERSION_H 0

/*==================================================================================================
* FILE VERSION CHECKS
==================================================================================================*/

/*==================================================================================================
* CONSTANTS
==================================================================================================*/

/*==================================================================================================
* DEFINES AND MACROS
==================================================================================================*/

/* Defines for the available MU instances */
#define HSE_IP_MU_0 ((uint8)0U)
#define HSE_IP_MU_1 ((uint8)1U)
#define HSE_IP_MU_2 ((uint8)2U)
#define HSE_IP_MU_3 ((uint8)3U)
#define HSE_IP_MU_4 ((uint8)4U)
#define HSE_IP_MU_5 ((uint8)5U)
#define HSE_IP_MU_6 ((uint8)6U)
#define HSE_IP_MU_7 ((uint8)7U)

/* Max number of MU instances */
#define HSE_IP_NUM_OF_MU_INSTANCES (8U)

/* Max number of channels per MU interface */
#define HSE_IP_NUM_OF_CHANNELS_PER_MU (16U)

/* Pre-processor switch to enable/disable development error detection for Hse Ip API */
#define HSE_IP_DEV_ERROR_DETECT (STD_OFF)

/* OsIf counter type used in timeout detection for HSE IP service request */
#define HSE_IP_TIMEOUT_OSIF_COUNTER_TYPE (OSIF_COUNTER_DUMMY)

/* Support for Hse operations using TCM addresses */
#define HSE_IP_ENABLE_TCM_SUPPORT (STD_OFF)

/* Initializer for the MU Host base addresses */
#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 }

/*==================================================================================================
* ENUMS
==================================================================================================*/

/*==================================================================================================
* STRUCTURES AND OTHER TYPEDEFS
==================================================================================================*/

/*==================================================================================================
* GLOBAL CONSTANTS
==================================================================================================*/

/*==================================================================================================
* GLOBAL VARIABLE DECLARATIONS
==================================================================================================*/

/*==================================================================================================
* FUNCTION PROTOTYPES
==================================================================================================*/


#ifdef __cplusplus
}
#endif

/** @} */

#endif /* HSE_IP_CFG_H */

0 comments on commit 5804392

Please sign in to comment.