xref: /rk3399_rockchip-uboot/arch/arm/include/asm/arch-rockchip/param.h (revision 3bbe0d2f9129303e9f36d3ddfa3485653e188ecd)
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 <memblk.h>
11 
12 /**
13  * param_parse_ddr_mem() - Parse ddr memory region
14  *
15  * @out_count: valid count of memblock for memblock list.
16  * @return memblock structure list which contains base and size info.
17  */
18 struct memblock *param_parse_ddr_mem(int *out_count);
19 
20 /**
21  * param_parse_atf_mem() - Parse atf memory region
22  *
23  * @return memblock structure which contains base and size info.
24  */
25 struct memblock param_parse_atf_mem(void);
26 
27 /**
28  * param_parse_atf_mem() - Parse op-tee memory region
29  *
30  * @return memblock structure which contains base and size info.
31  */
32 struct memblock param_parse_optee_mem(void);
33 
34 /**
35  * param_parse_atf_mem() - Parse platform common reserved memory region
36  *
37  * @return memblock structure which contains base and size info.
38  */
39 struct memblock param_parse_common_resv_mem(void);
40 
41 /**
42  * param_parse_bootdev() - Parse boot device info.
43  *
44  * @devtype: out data to store dev type
45  * @devnum: out data to store dev number
46  *
47  * @return 0 on success, otherwise failed.
48  */
49 int param_parse_bootdev(char **devtype, char **devtnum);
50 
51 /**
52  * param_parse_pre_serial() - Parse and Init serial according to pre-loader serial.
53  *
54  * @return 0 on success, otherwise failed.
55  */
56 int param_parse_pre_serial(void);
57 
58 /**
59  * param_parse_pubkey_fuse_programmed() - Parse and pass fuse programmed state.
60  *
61  * @return 0 on success, otherwise failed.
62  */
63 int param_parse_pubkey_fuse_programmed(void);
64 
65 #endif
66