mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-17 09:57:01 +02:00
At the moment the UART input clock rate is hard coded at compile time. This works as long as the GPU firmware always sets up the same rate, which does not seem to be true for the Raspberry Pi 4. In preparation for being able to change this at runtime, add a base clock parameter to the console setup function. This is still hardcoded for the Raspberry Pi 3. Change-Id: I398bc2f1e9b46f7af9a84cb0b33cbe8e78f2d900 Signed-off-by: Andre Przywara <andre.przywara@arm.com>
40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2015-2019, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef RPI_SHARED_H
|
|
#define RPI_SHARED_H
|
|
|
|
#include <stdint.h>
|
|
|
|
/*******************************************************************************
|
|
* Function and variable prototypes
|
|
******************************************************************************/
|
|
|
|
/* Utility functions */
|
|
void rpi3_console_init(unsigned int base_clk_rate);
|
|
void rpi3_setup_page_tables(uintptr_t total_base, size_t total_size,
|
|
uintptr_t code_start, uintptr_t code_limit,
|
|
uintptr_t rodata_start, uintptr_t rodata_limit
|
|
#if USE_COHERENT_MEM
|
|
, uintptr_t coh_start, uintptr_t coh_limit
|
|
#endif
|
|
);
|
|
|
|
/* Optional functions required in the Raspberry Pi 3 port */
|
|
unsigned int plat_rpi3_calc_core_pos(u_register_t mpidr);
|
|
|
|
/* BL2 utility functions */
|
|
uint32_t rpi3_get_spsr_for_bl32_entry(void);
|
|
uint32_t rpi3_get_spsr_for_bl33_entry(void);
|
|
|
|
/* IO storage utility functions */
|
|
void plat_rpi3_io_setup(void);
|
|
|
|
/* VideoCore firmware commands */
|
|
int rpi3_vc_hardware_get_board_revision(uint32_t *revision);
|
|
|
|
#endif /* RPI3_PRIVATE_H */
|