1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #ifndef PINEVIEW_RAMINIT_H
4 #define PINEVIEW_RAMINIT_H
6 #define SYSINFO_DIMM_NOT_POPULATED 0x00
7 #define SYSINFO_DIMM_X16SS 0x01
8 #define SYSINFO_DIMM_X16DS 0x02
9 #define SYSINFO_DIMM_X8DS 0x05
10 #define SYSINFO_DIMM_X8DDS 0x06
27 enum chip_width
{ /* as in DDR3 spd */
34 enum chip_cap
{ /* as in DDR3 spd */
46 enum fsb_clk fsb_clock
;
47 enum mem_clk mem_clock
;
59 unsigned int card_type
; /* 0x0: unpopulated,
60 0xa - 0xf: raw card type A - F */
62 enum chip_width width
;
63 enum chip_cap chip_capacity
;
64 unsigned int page_size
; /* of whole DIMM in Bytes (4096 or 8192) */
70 unsigned int cas_latencies
;
77 unsigned int rank_capacity_mb
; /* per rank in Megabytes */
103 int channel_capacity
[2];
104 struct timings selected_timings
;
105 struct dimminfo dimms
[4];
113 void sdram_initialize(int boot_path
, const u8
*sdram_addresses
);
115 #endif /* PINEVIEW_RAMINIT_H */