drivers: clock_control: mcux_sim: PTP clock
Add PTP clock get rate code Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
parent
6ead65bb2f
commit
1205bab4a0
|
@ -54,6 +54,9 @@ static int mcux_sim_get_subsys_rate(const struct device *dev,
|
|||
case KINETIS_SIM_ENET_CLK:
|
||||
clock_name = kCLOCK_CoreSysClk;
|
||||
break;
|
||||
case KINETIS_SIM_ENET_1588_CLK:
|
||||
clock_name = kCLOCK_Osc0ErClk;
|
||||
break;
|
||||
default:
|
||||
clock_name = (clock_name_t) sub_system;
|
||||
break;
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#define KINETIS_SIM_ER32KSEL_LPO1KHZ 3
|
||||
|
||||
#define KINETIS_SIM_ENET_CLK 4321
|
||||
#define KINETIS_SIM_ENET_1588_CLK 4322
|
||||
|
||||
|
||||
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_KINETIS_SIM_H_ */
|
||||
|
|
Loading…
Reference in a new issue