2019-05-05 06:01:56 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2019 Vestas Wind Systems A/S
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_KINETIS_SCG_H_
|
|
|
|
#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_KINETIS_SCG_H_
|
|
|
|
|
|
|
|
/* SCG system oscillator mode */
|
|
|
|
#define KINETIS_SCG_SOSC_MODE_EXT 0U
|
|
|
|
#define KINETIS_SCG_SOSC_MODE_LOW_POWER 4U
|
|
|
|
#define KINETIS_SCG_SOSC_MODE_HIGH_GAIN 12U
|
|
|
|
|
2019-06-17 04:16:35 +08:00
|
|
|
/* SCG clock controller clock names */
|
|
|
|
#define KINETIS_SCG_CORESYS_CLK 0U
|
|
|
|
#define KINETIS_SCG_BUS_CLK 1U
|
|
|
|
#define KINETIS_SCG_FLEXBUS_CLK 2U
|
|
|
|
#define KINETIS_SCG_FLASH_CLK 3U
|
|
|
|
#define KINETIS_SCG_SOSC_CLK 4U
|
|
|
|
#define KINETIS_SCG_SIRC_CLK 5U
|
|
|
|
#define KINETIS_SCG_FIRC_CLK 6U
|
|
|
|
#define KINETIS_SCG_SPLL_CLK 7U
|
|
|
|
#define KINETIS_SCG_SOSC_ASYNC_DIV1_CLK 8U
|
|
|
|
#define KINETIS_SCG_SOSC_ASYNC_DIV2_CLK 9U
|
|
|
|
#define KINETIS_SCG_SIRC_ASYNC_DIV1_CLK 10U
|
|
|
|
#define KINETIS_SCG_SIRC_ASYNC_DIV2_CLK 11U
|
|
|
|
#define KINETIS_SCG_FIRC_ASYNC_DIV1_CLK 12U
|
|
|
|
#define KINETIS_SCG_FIRC_ASYNC_DIV2_CLK 13U
|
|
|
|
#define KINETIS_SCG_SPLL_ASYNC_DIV1_CLK 14U
|
|
|
|
#define KINETIS_SCG_SPLL_ASYNC_DIV2_CLK 15U
|
|
|
|
|
2019-05-05 06:01:56 +08:00
|
|
|
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_KINETIS_SCG_H_ */
|