2017-11-06 14:49:04 +00:00
|
|
|
/*
|
2018-03-27 09:39:47 +01:00
|
|
|
* Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
|
2017-11-06 14:49:04 +00:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*/
|
|
|
|
|
2018-11-08 10:20:19 +00:00
|
|
|
#ifndef RPI3_PRIVATE_H
|
|
|
|
#define RPI3_PRIVATE_H
|
2017-11-06 14:49:04 +00:00
|
|
|
|
2018-08-16 16:52:57 +01:00
|
|
|
#include <stdint.h>
|
2017-11-06 14:49:04 +00:00
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
* Function and variable prototypes
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
/* Utility functions */
|
2018-03-27 09:39:47 +01:00
|
|
|
void rpi3_console_init(void);
|
2017-11-06 14:49:04 +00:00
|
|
|
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);
|
|
|
|
|
2018-07-13 09:27:16 +01:00
|
|
|
/* Hardware RNG functions */
|
|
|
|
void rpi3_rng_read(void *buf, size_t len);
|
|
|
|
|
2018-07-12 13:38:53 +01:00
|
|
|
/* VideoCore firmware commands */
|
|
|
|
int rpi3_vc_hardware_get_board_revision(uint32_t *revision);
|
|
|
|
|
2018-11-08 10:20:19 +00:00
|
|
|
#endif /* RPI3_PRIVATE_H */
|