mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-09-01 03:41:13 +02:00
Add a UART/USART driver for STM32 with complete a hardware support; it used for STM32CubeProgrammer support with even parity. This driver is not used for console, which is already handle by a simple driver (drivers/st/uart/aarch32/stm32_console.S). Change-Id: Ia9266e5d177fe7fd09c8a15b81da1a05b1bc8b2d Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com>
32 lines
877 B
C
32 lines
877 B
C
/*
|
|
* Copyright (c) 2017-2021, STMicroelectronics - All Rights Reserved
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef STM32MP_CLKFUNC_H
|
|
#define STM32MP_CLKFUNC_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <libfdt.h>
|
|
|
|
#include <platform_def.h>
|
|
|
|
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);
|
|
|
|
int fdt_rcc_read_uint32_array(const char *prop_name, uint32_t count,
|
|
uint32_t *array);
|
|
int fdt_rcc_subnode_offset(const char *name);
|
|
const fdt32_t *fdt_rcc_read_prop(const char *prop_name, int *lenp);
|
|
bool fdt_get_rcc_secure_status(void);
|
|
|
|
int fdt_get_clock_id(int node);
|
|
unsigned long fdt_get_uart_clock_freq(uintptr_t instance);
|
|
|
|
#endif /* STM32MP_CLKFUNC_H */
|