Skip to content

Commit 241d9e8

Browse files
KevShajumarcin-wierzbicki
authored andcommitted
s32: soc: s32k148: add support for ENET
Add support for ENET. Signed-off-by: Kevin Shaju <[email protected]>
1 parent bf7792b commit 241d9e8

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

s32/drivers/s32k1/BaseNXP/header/S32K148_ENET.h

+11-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ typedef struct {
201201
/** Array initializer of ENET peripheral base addresses */
202202
#define IP_ENET_BASE_ADDRS { IP_ENET_BASE }
203203
/** Array initializer of ENET peripheral base pointers */
204-
#define IP_ENET_BASE_PTRS { IP_ENET }
204+
#define ENET_BASE_PTRS { IP_ENET }
205205

206206
/* ----------------------------------------------------------------------------
207207
-- ENET Register Masks
@@ -1498,6 +1498,16 @@ typedef struct {
14981498
* @}
14991499
*/ /* end of group ENET_Register_Masks */
15001500

1501+
/* ENET Buffer Descriptor and Buffer Address Alignment. */
1502+
#define ENET_BUFF_ALIGNMENT (64U)
1503+
1504+
/* Interrupt vectors for the ENET peripheral type */
1505+
#define ENET_Transmit_IRQS { ENET_TX_Buffer_IRQn }
1506+
#define ENET_Receive_IRQS { ENET_RX_Buffer_IRQn }
1507+
#define ENET_Error_IRQS { ENET_PRE_IRQn }
1508+
#define ENET_1588_Timer_IRQS { ENET_Timer_IRQn }
1509+
#define ENET_Ts_IRQS { ENET_Timer_IRQn }
1510+
15011511
/*!
15021512
* @}
15031513
*/ /* end of group ENET_Peripheral_Access_Layer */

s32/mcux/devices/S32K148/S32K148_features.h

+7
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
#define FSL_FEATURE_SOC_WDOG_COUNT (1)
3030
/* @brief RTC availability on the SoC. */
3131
#define FSL_FEATURE_SOC_RTC_COUNT (1)
32+
/* @brief ENET availability on the SoC. */
33+
#define FSL_FEATURE_SOC_ENET_COUNT (1)
3234

3335
/* SYSMPU module features */
3436

@@ -306,4 +308,9 @@
306308
/* @brief Conversion control count (related to number of registers SC1n and Rn). */
307309
#define FSL_FEATURE_ADC12_CONVERSION_CONTROL_COUNT (32)
308310

311+
/* ENET module features */
312+
313+
/* @brief Queue Size for each instance. */
314+
#define FSL_FEATURE_ENET_INSTANCE_QUEUEn(x) (1)
315+
309316
#endif /* _S32K148_FEATURES_H_ */

0 commit comments

Comments
 (0)