rpi_shared.h 1.14 KB
Newer Older
1
/*
2
 * Copyright (c) 2015-2019, ARM Limited and Contributors. All rights reserved.
3
4
5
6
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

7
8
#ifndef RPI_SHARED_H
#define RPI_SHARED_H
9

10
#include <stdint.h>
11
12
13
14
15
16

/*******************************************************************************
 * Function and variable prototypes
 ******************************************************************************/

/* Utility functions */
17
void rpi3_console_init(unsigned int base_clk_rate);
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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);

36
37
38
/* VideoCore firmware commands */
int rpi3_vc_hardware_get_board_revision(uint32_t *revision);

39
#endif /* RPI3_PRIVATE_H */