mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 17:44:19 +00:00

Remove useless private structure in function prototypes. Add a reference counter on clocks. Prepare for future secured/shared/non-secured clocks. Change-Id: I3dbed81721da5ceff5e10b2c4155b1e340c036ee Signed-off-by: Yann Gautier <yann.gautier@st.com> Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Signed-off-by: Lionel Debieve <lionel.debieve@st.com> Signed-off-by: Nicolas LE BAYON <nicolas.le.bayon@st.com>
33 lines
670 B
C
33 lines
670 B
C
/*
|
|
* Copyright (c) 2017-2019, STMicroelectronics - All Rights Reserved
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef STM32MP1_CLKFUNC_H
|
|
#define STM32MP1_CLKFUNC_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <libfdt.h>
|
|
|
|
enum stm32mp_osc_id {
|
|
_HSI,
|
|
_HSE,
|
|
_CSI,
|
|
_LSI,
|
|
_LSE,
|
|
_I2S_CKIN,
|
|
NB_OSC,
|
|
_UNKNOWN_OSC_ID = 0xFF
|
|
};
|
|
|
|
extern const char *stm32mp_osc_node_label[NB_OSC];
|
|
|
|
int fdt_osc_read_freq(const char *name, uint32_t *freq);
|
|
bool fdt_osc_read_bool(enum stm32mp_osc_id osc_id, const char *prop_name);
|
|
uint32_t fdt_osc_read_uint32_default(enum stm32mp_osc_id osc_id,
|
|
const char *prop_name,
|
|
uint32_t dflt_value);
|
|
|
|
#endif /* STM32MP1_CLKFUNC_H */
|