hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/*
 * (C) Copyright 2019 Rockchip Electronics Co., Ltd
 *
 * SPDX-License-Identifier:     GPL-2.0+
 */
 
#ifndef __ROCKCHIP_PARAM_H_
#define __ROCKCHIP_PARAM_H_
 
#include <memblk.h>
 
/**
 * param_parse_ddr_mem() - Parse ddr memory region
 *
 * @out_count: valid count of memblock for memblock list.
 * @return memblock structure list which contains base and size info.
 */
struct memblock *param_parse_ddr_mem(int *out_count);
 
/**
 * param_simple_parse_ddr_mem() - Simple parse ddr memory region
 */
#ifndef CONFIG_BIDRAM
phys_size_t param_simple_parse_ddr_mem(int init_bank);
#endif
 
/**
 * param_parse_atf_mem() - Parse atf memory region
 *
 * @return memblock structure which contains base and size info.
 */
struct memblock param_parse_atf_mem(void);
 
/**
 * param_parse_atf_mem() - Parse op-tee memory region
 *
 * @return memblock structure which contains base and size info.
 */
struct memblock param_parse_optee_mem(void);
 
/**
 * param_parse_atf_mem() - Parse platform common reserved memory region
 *
 * @return memblock structure which contains base and size info.
 */
struct memblock param_parse_common_resv_mem(void);
 
/**
 * param_parse_atags_bootdev() - Parse boot device info from atags.
 *
 * @devtype: out data to store dev type
 * @devnum: out data to store dev number
 *
 * @return 0 on success, otherwise failed.
 */
int param_parse_atags_bootdev(char **devtype, char **devtnum);
 
/**
 * param_parse_assign_bootdev() - Parse boot device info from configuration.
 *
 * @devtype: out data to store dev type
 * @devnum: out data to store dev number
 *
 * @return 0 on success, otherwise failed.
 */
int param_parse_assign_bootdev(char **devtype, char **devtnum);
 
/**
 * param_parse_pre_serial() - Parse and Init serial according to pre-loader serial.
 *
 * @return 0 on success, otherwise failed.
 */
int param_parse_pre_serial(int *flags);
 
/**
 * param_parse_pubkey_fuse_programmed() - Parse and pass fuse programmed state.
 *
 * @return 0 on success, otherwise failed.
 */
int param_parse_pubkey_fuse_programmed(void);
 
#ifdef CONFIG_PSTORE
/**
 * param_parse_pstore() - Parse and Init pstore according to pre-loader atags.
 *
 * @return 0 on success, otherwise failed.
 */
int param_parse_pstore(void);
#endif
#endif