[PATCH v7 05/14] clk: renesas: r8a78000: Add SCMI remapping support
Wolfram Sang
wsa+renesas at sang-engineering.com
Wed Dec 2 02:11:21 PST 2026
> >> +#define MAP_FIXED(id, rate) { id, FIXED_CLK(rate) }
> >> + MAP_FIXED(R8A78000_CPG_SGASYNCD4_PERW_BUS, 266M),
> >> + MAP_FIXED(R8A78000_CPG_SGASYNCD8_PERW_BUS, 133M),
> >> + MAP_FIXED(R8A78000_CPG_SGASYNCD16_PERW_BUS, 66M),
> >> +#undef MAP_FIXED
> >
> > Why the undef? Couldn't we find a better name and keep the macro?
>
> To prevent using it below. I wanted to have a clear separation
> between default/fallback clocks that are always fixed rate clocks,
> and the tables for use with SCMI, which can contain both firmware
> IDs and fixed clock IDs.
I see. What about a comment above the macro then saying it is only to be
used for default clocks?
More information about the linux-arm-kernel
mailing list