xref: /rk3399_rockchip-uboot/arch/arm/include/asm/arch-rockchip/param.h (revision 6aa65bb1ee0951865e27da81dde1de76c6d4687e)
1 /*
2  * (C) Copyright 2019 Rockchip Electronics Co., Ltd
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6 
7 #ifndef __ROCKCHIP_PARAM_H_
8 #define __ROCKCHIP_PARAM_H_
9 
10 #include <sysmem.h>
11 
12 /**
13  * param_parse_atf_mem() - Parse atf memory region
14  *
15  * @return sysmem_property structure which contains base and size info.
16  */
17 struct sysmem_property param_parse_atf_mem(void);
18 
19 /**
20  * param_parse_atf_mem() - Parse op-tee memory region
21  *
22  * @return sysmem_property structure which contains base and size info.
23  */
24 struct sysmem_property param_parse_optee_mem(void);
25 
26 /**
27  * param_parse_atf_mem() - Parse platform common reserved memory region
28  *
29  * @return sysmem_property structure which contains base and size info.
30  */
31 struct sysmem_property param_parse_common_resv_mem(void);
32 
33 /**
34  * param_parse_bootdev() - Parse boot device info.
35  *
36  * @devtype: out data to store dev type
37  * @devnum: out data to store dev number
38  *
39  * @return 0 on success, otherwise failed.
40  */
41 int param_parse_bootdev(char **devtype, char **devtnum);
42 
43 #endif
44