Skip to content

enable NETC on imx95 Cortex-A55 #571

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

JiafeiPan
Copy link
Contributor

  1. drivers: netc: make the driver to be aarch64 compatible
  2. mcux-sdk: MIMX9596_ca55: disable FSL_FEATURE_NETC_HAS_ERRATA_051711
  3. mcux-sdk: MIMX9596_ca55: fix A-Core header file regard of netc struct definition
  4. fsl_common_arm: Fix comment sign issue on different architectures

@mmahadevan108
Copy link
Collaborator

@JiafeiPan , have the changes to the SDK driver been submitted to the SDK team?

#if defined(__ARM_ARCH_8A__) /* This macro is ARMv8-A specific */
#define __CS "//"
#else
#define __CS "@"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, because of MISRA C 2012 rule 21.1: https://stackoverflow.com/questions/50696794/misra-c-2012-rule-21-1-macros-starting-with-underscore. We will not use macro name started with underscore.
Also, this file will be included by every SDK file, to make it not conflict with other code, suggest adding prefix, like MCUX_CS. BTW, what is the meaning of CS? thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CS is comment sign character, so let's change it to be "MCUX_CS", thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed.

@yangbolu1991
Copy link
Member

Except Jason's comments, I am ok with other changes.
Will need @JiafeiPan to send the changes to SDK too.

Thanks.

@JiafeiPan
Copy link
Contributor Author

Thanks for review, will submit the update to SDK NG.

@JiafeiPan JiafeiPan force-pushed the develop/imx95-netc branch from 1bbcb46 to b15c20f Compare July 9, 2025 10:04
@JiafeiPan
Copy link
Contributor Author

The "mcux-sdk: MIMX9596_ca55: fix A-Core header file" is only for Cortex-A core and no need to push it to mcux-sdk NG, the other three patches have been merged into SDK.

@JiafeiPan JiafeiPan requested a review from zejiang0jason July 9, 2025 10:07
Zhiqiang-Hou and others added 4 commits July 9, 2025 18:23
The comment sign character is '//' on ARMv8 AARCH64, however it's
'@' on other ARM architectures.
So the current definitions of AT_NONCACHEABLE_SECTION_ALIGN
and AT_NONCACHEABLE_SECTION will result in the following error on
AARCH64.

  /tmp/cc96AQ7j.s: Assembler messages:
  /tmp/cc96AQ7j.s:1020: Error: junk at end of line, first unrecognized character is `@'

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Stephane Viau <stephane.viau@nxp.com>
Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
NETC driver is not compatible with struct definition, for example will
report the following build error like:
modules/hal/nxp/mcux/mcux-sdk-ng/drivers/netc/fsl_netc_timer.h:369:20:
error: 'ENETC_PF_TMR_Type' has no member named 'TMR_TEVENT'

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
This Errata is not available on i.MX 95.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
@mmahadevan108
Copy link
Collaborator

@zejiang0jason , please re-review and remove your block if your comment has been addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants