Skip to content

Commit 1205bab

Browse files
decsnyaescolar
authored andcommitted
drivers: clock_control: mcux_sim: PTP clock
Add PTP clock get rate code Signed-off-by: Declan Snyder <[email protected]>
1 parent 6ead65b commit 1205bab

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/clock_control/clock_control_mcux_sim.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ static int mcux_sim_get_subsys_rate(const struct device *dev,
5454
case KINETIS_SIM_ENET_CLK:
5555
clock_name = kCLOCK_CoreSysClk;
5656
break;
57+
case KINETIS_SIM_ENET_1588_CLK:
58+
clock_name = kCLOCK_Osc0ErClk;
59+
break;
5760
default:
5861
clock_name = (clock_name_t) sub_system;
5962
break;

include/zephyr/dt-bindings/clock/kinetis_sim.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#define KINETIS_SIM_ER32KSEL_LPO1KHZ 3
2626

2727
#define KINETIS_SIM_ENET_CLK 4321
28+
#define KINETIS_SIM_ENET_1588_CLK 4322
2829

2930

3031
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_KINETIS_SIM_H_ */

0 commit comments

Comments
 (0)