Skip to content
Commit 35331787 authored by Cong Nguyen Huu's avatar Cong Nguyen Huu Committed by Carles Cufí
Browse files

drivers: eth_nxp_s32_netc: use instance-based DT macros



At present, many of the NXP S32 shim drivers do not make use of
devicetree instance-based macros because the NXP S32 HAL relies on an
index-based approach, requiring knowledge of the peripheral instance
index during both compilation and runtime, and this index might not
align with the devicetree instance index.

The proposed solution in this patch eliminates this limitation by
determining the peripheral instance index during compilation
through macrobatics and defining the handler of SI Rx event within
the shim driver itself.

Signed-off-by: default avatarCong Nguyen Huu <cong.nguyenhuu@nxp.com>
parent 0bf4efc7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment