forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: clock_control: support numaker 64-bit clock module index (dr…
…aft 2) This is a draft of supporting 64-bit clock module index on NuMaker SoC series. Relevant points include: 1. No m55m1x yet, take m2l31x as an example 2. In binding file nuvoton,numaker-pcc.yaml, add clock cell clock-module-index-hi32 3. In clock header file for DT, 64-bit value of FOO_MODULE macro expands to two 32-bit cells in BE order NOTE: See dt-bindings/clock/numaker_m2l31x_clock.h NOTE: Check the link for requirement of 64-bit integer in zephyr https://docs.zephyrproject.org/latest/build/dts/intro-syntax-structure.html 4. Clock ontrol driver is soc-conditional on clock module index 5. Other drivers (gpio, serial, etc.) also must be soc-conditional on clock module index Changes to existent soc port (taking m46x as an example): 1. In m46x.dtsi, change #clock-cells to 4 from 3 2. Re-generate numaker_m46x_clock.h which has FOO_MODULE macro expanding to two cells, with MSB cell being 0x0 3. No need to change other drivers for not supporting 64-bit module index Signed-off-by: Chun-Chieh Li <[email protected]>
- Loading branch information
Showing
6 changed files
with
118 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters