soc: nxp: ke1xf: set ip clock in dts
Move the selection of the IP clock source for the modules in the NXP Kinetis KE1xF SoCs from being hardcoded in soc.c to being specified in the device tree. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
c433a2ba33
commit
e4f191aaf6
4 changed files with 71 additions and 49 deletions
17
include/dt-bindings/clock/kinetis_pcc.h
Normal file
17
include/dt-bindings/clock/kinetis_pcc.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* Copyright (c) 2019 Vestas Wind Systems A/S
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_KINETIS_PCC_H_
|
||||
#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_KINETIS_PCC_H_
|
||||
|
||||
/* NXP Kinetis Peripheral Clock Controller IP sources */
|
||||
#define KINETIS_PCC_SRC_NONE_OR_EXT 0 /* Clock off or external clock is used */
|
||||
#define KINETIS_PCC_SRC_SOSC_ASYNC 1 /* System Oscillator async clock */
|
||||
#define KINETIS_PCC_SRC_SIRC_ASYNC 2 /* Slow IRC async clock */
|
||||
#define KINETIS_PCC_SRC_FIRC_ASYNC 3 /* Fast IRC async clock */
|
||||
#define KINETIS_PCC_SRC_SPLL_ASYNC 6 /* System PLL async clock */
|
||||
|
||||
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_KINETIS_PCC_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue