dts: arm: silabs: Configure hfxo in dtsi
This commit moves configuration of hfxo from headers defined on board level to device trees of SoCs. Signed-off-by: Franciszek Zdobylak <fzdobylak@antmicro.com>
This commit is contained in:
parent
8e4c588eab
commit
6f91fd858c
9 changed files with 32 additions and 42 deletions
16
soc/arm/silabs_exx32/common/sl_device_init_hfxo_config.h
Normal file
16
soc/arm/silabs_exx32/common/sl_device_init_hfxo_config.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright (c) 2023 Antmicro <www.antmicro.com>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef SL_DEVICE_INIT_HFXO_CONFIG_H
|
||||
#define SL_DEVICE_INIT_HFXO_CONFIG_H
|
||||
|
||||
#include <zephyr/devicetree.h>
|
||||
|
||||
#define SL_DEVICE_INIT_HFXO_MODE cmuHfxoOscMode_Crystal
|
||||
#define SL_DEVICE_INIT_HFXO_FREQ DT_PROP(DT_NODELABEL(clk_hfxo), clock_frequency)
|
||||
#define SL_DEVICE_INIT_HFXO_CTUNE DT_PROP(DT_NODELABEL(clk_hfxo), ctune)
|
||||
|
||||
#endif /* SL_DEVICE_INIT_HFXO_CONFIG_H */
|
Loading…
Add table
Add a link
Reference in a new issue