Skip to content

Conversation

@ccli8
Copy link
Contributor

@ccli8 ccli8 commented Nov 17, 2025

On M55M1 series, the clock module index is virtual to stay compatible with 32-bit only cell value in devicetree. Its real value of being 64-bit integer needs to acquire via lookup into mapping table.

clk_modidx_real = CANFD0_MODULE;
break;
case NUMAKER_CANFD1_MODULE:
clk_modidx_real = CANFD1_MODULE;
Copy link
Contributor

Choose a reason for hiding this comment

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

missing break; ? or else add __fallthrough;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

break is missing, thanks

On M55M1 series, the clock module index is virtual to stay compatible
with 32-bit only cell value in devicetree. Its real value of being
64-bit integer needs to acquire indirectly.

Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
@ccli8 ccli8 force-pushed the nvt_m55m1_canfd_fix_clock branch from 2b4227c to 9efecf0 Compare November 17, 2025 04:01
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: CAN platform: Nuvoton Numicro Numaker Nuvoton Technology Corporation, Numicro Numaker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants