Skip to content

Commit e8f6f6d

Browse files
KevShajummahadevan108
authored andcommitted
s32: drivers: s32k148: patch ENET for compatibility with MCUX
In order to reuse existing device header with MCUX SDK ENET driver, rename IP_ENET_BASE_PTRS -> ENET_BASE_PTRS and add missing ENET macros. Signed-off-by: Kevin Shaju <[email protected]>
1 parent d08f8c9 commit e8f6f6d

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

s32/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Patch List for S32K1:
4343
- Rename fields and macros of FTM device headers to allow compatibility with MCUX FTM driver.
4444
- Rename fields and macros of FlexCAN device headers to allow compatibility with MCUX FlexCAN driver.
4545
- Rename fields and macros of ADC device headers to allow compatibility with MCUX ADC driver.
46+
- Add/rename macros of S32K148 ENET device header to allow compatibility with MCUX ENET driver.
4647

4748
Patch List for S32K3:
4849
- Relocate uninitialized non-cacheable variables into .nocache section defined by Zephyr.

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

Lines changed: 11 additions & 1 deletion
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 */

0 commit comments

Comments
 (0)