xref: /rk3399_ARM-atf/include/plat/brcm/common/plat_brcm.h (revision 717448d622b13233e15aa43767fc8aa2f007486c)
1 /*
2  * Copyright (c) 2019-2020, Broadcom
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef PLAT_BRCM_H
8 #define PLAT_BRCM_H
9 
10 #include <stdint.h>
11 
12 #include <lib/cassert.h>
13 #include <lib/utils_def.h>
14 #include <lib/xlat_tables/xlat_tables.h>
15 
16 #include <platform_def.h>
17 
18 struct image_info;
19 
20 /* Global variables */
21 extern const mmap_region_t plat_brcm_mmap[];
22 
23 uint32_t brcm_get_spsr_for_bl32_entry(void);
24 uint32_t brcm_get_spsr_for_bl33_entry(void);
25 const mmap_region_t *plat_brcm_get_mmap(void);
26 int bcm_bl2_handle_scp_bl2(struct image_info *image_info);
27 void plat_brcm_io_setup(void);
28 void plat_brcm_process_flags(uint16_t plat_toc_flags);
29 
30 #endif /* PLAT_BRCM_H */
31