Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: nvbctlib.h

Issue 6625006: Add the SDRAM parameters support for cbootimage. (Closed) Base URL: http://git.chromium.org/git/cbootimage.git@master
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | nvbctlib_ap20.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /** 1 /**
2 * Copyright (c) 2011 NVIDIA Corporation. All rights reserved. 2 * Copyright (c) 2011 NVIDIA Corporation. All rights reserved.
3 * 3 *
4 * See file CREDITS for list of people who contributed to this 4 * See file CREDITS for list of people who contributed to this
5 * project. 5 * project.
6 * 6 *
7 * This program is free software; you can redistribute it and/or 7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as 8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of 9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version. 10 * the License, or (at your option) any later version.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 nvbct_lib_id_reserved_offset, 58 nvbct_lib_id_reserved_offset,
59 nvbct_lib_id_bct_size, 59 nvbct_lib_id_bct_size,
60 nvbct_lib_id_hash_size, 60 nvbct_lib_id_hash_size,
61 nvbct_lib_id_crypto_offset, 61 nvbct_lib_id_crypto_offset,
62 nvbct_lib_id_crypto_length, 62 nvbct_lib_id_crypto_length,
63 nvbct_lib_id_max_bct_search_blks, 63 nvbct_lib_id_max_bct_search_blks,
64 nvbct_lib_id_num_param_sets, 64 nvbct_lib_id_num_param_sets,
65 nvbct_lib_id_dev_type_nand, 65 nvbct_lib_id_dev_type_nand,
66 nvbct_lib_id_dev_type_sdmmc, 66 nvbct_lib_id_dev_type_sdmmc,
67 nvbct_lib_id_dev_type_spi, 67 nvbct_lib_id_dev_type_spi,
68 nvbct_lib_id_num_sdram_sets,
68 69
69 nvbct_lib_id_nand_clock_divider, 70 nvbct_lib_id_nand_clock_divider,
70 nvbct_lib_id_nand_nand_timing, 71 nvbct_lib_id_nand_nand_timing,
71 nvbct_lib_id_nand_nand_timing2, 72 nvbct_lib_id_nand_nand_timing2,
72 nvbct_lib_id_nand_block_size_log2, 73 nvbct_lib_id_nand_block_size_log2,
73 nvbct_lib_id_nand_page_size_log2, 74 nvbct_lib_id_nand_page_size_log2,
74 nvbct_lib_id_sdmmc_clock_divider, 75 nvbct_lib_id_sdmmc_clock_divider,
75 nvbct_lib_id_sdmmc_data_width, 76 nvbct_lib_id_sdmmc_data_width,
76 nvbct_lib_id_sdmmc_max_power_class_supported, 77 nvbct_lib_id_sdmmc_max_power_class_supported,
77 nvbct_lib_id_spiflash_read_command_type_fast, 78 nvbct_lib_id_spiflash_read_command_type_fast,
78 nvbct_lib_id_spiflash_clock_source, 79 nvbct_lib_id_spiflash_clock_source,
79 nvbct_lib_id_spiflash_clock_divider, 80 nvbct_lib_id_spiflash_clock_divider,
80 nvbct_lib_id_sdmmc_data_width_4bit, 81 nvbct_lib_id_sdmmc_data_width_4bit,
81 nvbct_lib_id_sdmmc_data_width_8bit, 82 nvbct_lib_id_sdmmc_data_width_8bit,
82 nvbct_lib_id_spi_clock_source_pllp_out0, 83 nvbct_lib_id_spi_clock_source_pllp_out0,
83 nvbct_lib_id_spi_clock_source_pllc_out0, 84 nvbct_lib_id_spi_clock_source_pllc_out0,
84 nvbct_lib_id_spi_clock_source_pllm_out0, 85 nvbct_lib_id_spi_clock_source_pllm_out0,
85 nvbct_lib_id_spi_clock_source_clockm, 86 nvbct_lib_id_spi_clock_source_clockm,
86 87
87 nvbct_lib_id_bl_version, 88 nvbct_lib_id_bl_version,
88 nvbct_lib_id_bl_start_blk, 89 nvbct_lib_id_bl_start_blk,
89 nvbct_lib_id_bl_start_page, 90 nvbct_lib_id_bl_start_page,
90 nvbct_lib_id_bl_length, 91 nvbct_lib_id_bl_length,
91 nvbct_lib_id_bl_load_addr, 92 nvbct_lib_id_bl_load_addr,
92 nvbct_lib_id_bl_entry_point, 93 nvbct_lib_id_bl_entry_point,
93 nvbct_lib_id_bl_attribute, 94 nvbct_lib_id_bl_attribute,
94 nvbct_lib_id_bl_crypto_hash, 95 nvbct_lib_id_bl_crypto_hash,
95 96
97 nvbct_lib_id_memory_type_none,
98 nvbct_lib_id_memory_type_ddr2,
99 nvbct_lib_id_memory_type_ddr,
100 nvbct_lib_id_memory_type_lpddr2,
101 nvbct_lib_id_memory_type_lpddr,
102
103 nvbct_lib_id_sdram_memory_type,
104 nvbct_lib_id_sdram_pllm_charge_pump_setup_ctrl,
105 nvbct_lib_id_sdram_pllm_loop_filter_setup_ctrl,
106 nvbct_lib_id_sdram_pllm_input_divider,
107 nvbct_lib_id_sdram_pllm_feedback_divider,
108 nvbct_lib_id_sdram_pllm_post_divider,
109 nvbct_lib_id_sdram_pllm_stable_time,
110 nvbct_lib_id_sdram_emc_clock_divider,
111 nvbct_lib_id_sdram_emc_auto_cal_interval,
112 nvbct_lib_id_sdram_emc_auto_cal_config,
113 nvbct_lib_id_sdram_emc_auto_cal_wait,
114 nvbct_lib_id_sdram_emc_pin_program_wait,
115 nvbct_lib_id_sdram_emc_rc,
116 nvbct_lib_id_sdram_emc_rfc,
117 nvbct_lib_id_sdram_emc_ras,
118 nvbct_lib_id_sdram_emc_rp,
119 nvbct_lib_id_sdram_emc_r2w,
120 nvbct_lib_id_sdram_emc_w2r,
121 nvbct_lib_id_sdram_emc_r2p,
122 nvbct_lib_id_sdram_emc_w2p,
123 nvbct_lib_id_sdram_emc_rd_rcd,
124 nvbct_lib_id_sdram_emc_wr_rcd,
125 nvbct_lib_id_sdram_emc_rrd,
126 nvbct_lib_id_sdram_emc_rext,
127 nvbct_lib_id_sdram_emc_wdv,
128 nvbct_lib_id_sdram_emc_quse,
129 nvbct_lib_id_sdram_emc_qrst,
130 nvbct_lib_id_sdram_emc_qsafe,
131 nvbct_lib_id_sdram_emc_rdv,
132 nvbct_lib_id_sdram_emc_refresh,
133 nvbct_lib_id_sdram_emc_burst_refresh_num,
134 nvbct_lib_id_sdram_emc_pdex2wr,
135 nvbct_lib_id_sdram_emc_pdex2rd,
136 nvbct_lib_id_sdram_emc_pchg2pden,
137 nvbct_lib_id_sdram_emc_act2pden,
138 nvbct_lib_id_sdram_emc_ar2pden,
139 nvbct_lib_id_sdram_emc_rw2pden,
140 nvbct_lib_id_sdram_emc_txsr,
141 nvbct_lib_id_sdram_emc_tcke,
142 nvbct_lib_id_sdram_emc_tfaw,
143 nvbct_lib_id_sdram_emc_trpab,
144 nvbct_lib_id_sdram_emc_tclkstable,
145 nvbct_lib_id_sdram_emc_tclkstop,
146 nvbct_lib_id_sdram_emc_trefbw,
147 nvbct_lib_id_sdram_emc_quse_extra,
148 nvbct_lib_id_sdram_emc_fbio_cfg1,
149 nvbct_lib_id_sdram_emc_fbio_dqsib_dly,
150 nvbct_lib_id_sdram_emc_fbio_dqsib_dly_msb,
151 nvbct_lib_id_sdram_emc_fbio_quse_dly,
152 nvbct_lib_id_sdram_emc_fbio_quse_dly_msb,
153 nvbct_lib_id_sdram_emc_fbio_cfg5,
154 nvbct_lib_id_sdram_emc_fbio_cfg6,
155 nvbct_lib_id_sdram_emc_fbio_spare,
156 nvbct_lib_id_sdram_emc_mrs,
157 nvbct_lib_id_sdram_emc_emrs,
158 nvbct_lib_id_sdram_emc_mrw1,
159 nvbct_lib_id_sdram_emc_mrw2,
160 nvbct_lib_id_sdram_emc_mrw3,
161 nvbct_lib_id_sdram_emc_mrw_reset_command,
162 nvbct_lib_id_sdram_emc_mrw_reset_ninit_wait,
163 nvbct_lib_id_sdram_emc_adr_cfg,
164 nvbct_lib_id_sdram_emc_adr_cfg1,
165 nvbct_lib_id_sdram_mc_emem_Cfg,
166 nvbct_lib_id_sdram_mc_lowlatency_config,
167 nvbct_lib_id_sdram_emc_cfg,
168 nvbct_lib_id_sdram_emc_cfg2,
169 nvbct_lib_id_sdram_emc_dbg,
170 nvbct_lib_id_sdram_ahb_arbitration_xbar_ctrl,
171 nvbct_lib_id_sdram_emc_cfg_dig_dll,
172 nvbct_lib_id_sdram_emc_dll_xform_dqs,
173 nvbct_lib_id_sdram_emc_dll_xform_quse,
174 nvbct_lib_id_sdram_warm_boot_wait,
175 nvbct_lib_id_sdram_emc_ctt_term_ctrl,
176 nvbct_lib_id_sdram_emc_odt_write,
177 nvbct_lib_id_sdram_emc_odt_read,
178 nvbct_lib_id_sdram_emc_zcal_ref_cnt,
179 nvbct_lib_id_sdram_emc_zcal_wait_cnt,
180 nvbct_lib_id_sdram_emc_zcal_mrw_cmd,
181 nvbct_lib_id_sdram_emc_mrs_reset_dll,
182 nvbct_lib_id_sdram_emc_mrw_zq_init_dev0,
183 nvbct_lib_id_sdram_emc_mrw_zq_init_dev1,
184 nvbct_lib_id_sdram_emc_mrw_zq_init_wait,
185 nvbct_lib_id_sdram_emc_mrs_reset_dll_wait,
186 nvbct_lib_id_sdram_emc_emrs_emr2,
187 nvbct_lib_id_sdram_emc_emrs_emr3,
188 nvbct_lib_id_sdram_emc_emrs_ddr2_dll_enable,
189 nvbct_lib_id_sdram_emc_mrs_ddr2_dll_reset,
190 nvbct_lib_id_sdram_emc_emrs_ddr2_ocd_calib,
191 nvbct_lib_id_sdram_emc_ddr2_wait,
192 nvbct_lib_id_sdram_emc_cfg_clktrim0,
193 nvbct_lib_id_sdram_emc_cfg_clktrim1,
194 nvbct_lib_id_sdram_emc_cfg_clktrim2,
195 nvbct_lib_id_sdram_pmc_ddr_pwr,
196 nvbct_lib_id_sdram_apb_misc_gp_xm2cfga_pad_ctrl,
197 nvbct_lib_id_sdram_apb_misc_gp_xm2cfgc_pad_ctrl,
198 nvbct_lib_id_sdram_apb_misc_gp_xm2cfgc_pad_ctrl2,
199 nvbct_lib_id_sdram_apb_misc_gp_xm2cfgd_pad_ctrl,
200 nvbct_lib_id_sdram_apb_misc_gp_xm2cfgd_pad_ctrl2,
201 nvbct_lib_id_sdram_apb_misc_gp_xm2clkcfg_Pad_ctrl,
202 nvbct_lib_id_sdram_apb_misc_gp_xm2comp_pad_ctrl,
203 nvbct_lib_id_sdram_apb_misc_gp_xm2vttgen_pad_ctrl,
204
96 nvbct_lib_id_max, 205 nvbct_lib_id_max,
97 206
98 nvbct_lib_id_force32 = 0x7fffffff 207 nvbct_lib_id_force32 = 0x7fffffff
99 208
100 } nvbct_lib_id; 209 } nvbct_lib_id;
101 210
102 typedef int (*nvbct_lib_get_dev_param)(u_int32_t set, 211 typedef int (*nvbct_lib_get_dev_param)(u_int32_t set,
103 nvbct_lib_id id, 212 nvbct_lib_id id,
104 u_int32_t *data, 213 u_int32_t *data,
105 u_int8_t *bct); 214 u_int8_t *bct);
106 typedef int (*nvbct_lib_set_dev_param)(u_int32_t set, 215 typedef int (*nvbct_lib_set_dev_param)(u_int32_t set,
107 nvbct_lib_id id, 216 nvbct_lib_id id,
108 u_int32_t data, 217 u_int32_t data,
109 u_int8_t *bct); 218 u_int8_t *bct);
110 219
220 typedef int (*nvbct_lib_get_sdram_param)(u_int32_t set,
221 nvbct_lib_id id,
222 u_int32_t *data,
223 u_int8_t *bct);
224 typedef int (*nvbct_lib_set_sdram_param)(u_int32_t set,
225 nvbct_lib_id id,
226 u_int32_t data,
227 u_int8_t *bct);
228
111 typedef int (*nvbct_lib_get_bl_param)(u_int32_t set, 229 typedef int (*nvbct_lib_get_bl_param)(u_int32_t set,
112 nvbct_lib_id id, 230 nvbct_lib_id id,
113 u_int32_t *data, 231 u_int32_t *data,
114 u_int8_t *bct); 232 u_int8_t *bct);
115 typedef int (*nvbct_lib_set_bl_param)(u_int32_t set, 233 typedef int (*nvbct_lib_set_bl_param)(u_int32_t set,
116 nvbct_lib_id id, 234 nvbct_lib_id id,
117 u_int32_t *data, 235 u_int32_t *data,
118 u_int8_t *bct); 236 u_int8_t *bct);
119 237
120 typedef int (*nvbct_lib_get_value)(nvbct_lib_id id, 238 typedef int (*nvbct_lib_get_value)(nvbct_lib_id id,
(...skipping 25 matching lines...) Expand all
146 nvbct_lib_set_value set_value; 264 nvbct_lib_set_value set_value;
147 265
148 nvbct_lib_get_data get_data; 266 nvbct_lib_get_data get_data;
149 nvbct_lib_set_data set_data; 267 nvbct_lib_set_data set_data;
150 268
151 nvbct_lib_get_bl_param getbl_param; 269 nvbct_lib_get_bl_param getbl_param;
152 nvbct_lib_set_bl_param setbl_param; 270 nvbct_lib_set_bl_param setbl_param;
153 271
154 nvbct_lib_get_dev_param getdev_param; 272 nvbct_lib_get_dev_param getdev_param;
155 nvbct_lib_set_dev_param setdev_param; 273 nvbct_lib_set_dev_param setdev_param;
274
275 nvbct_lib_get_sdram_param get_sdram_params;
276 nvbct_lib_set_sdram_param set_sdram_params;
156 } nvbct_lib_fns; 277 } nvbct_lib_fns;
157 278
158 void nvbct_lib_get_fns(nvbct_lib_fns *fns); 279 void nvbct_lib_get_fns(nvbct_lib_fns *fns);
159 280
160 #endif /* #ifndef INCLUDED_NVBCTLIB_H */ 281 #endif /* #ifndef INCLUDED_NVBCTLIB_H */
OLDNEW
« no previous file with comments | « no previous file | nvbctlib_ap20.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698