1 /* SPDX-License-Identifier: GPL-2.0-only */
6 #include "../board_id.h"
9 void mainboard_fill_dq_map_data(void *dq_map_ch0
, void *dq_map_ch1
)
12 const u8 dq_map
[2][12] = {
13 { 0x0F, 0xF0, 0x00, 0xF0, 0x0F, 0xF0,
14 0x0F, 0x00, 0xFF, 0x00, 0xFF, 0x00 },
15 { 0x33, 0xCC, 0x00, 0xCC, 0x33, 0xCC,
16 0x33, 0x00, 0xFF, 0x00, 0xFF, 0x00 } };
17 memcpy(dq_map_ch0
, dq_map
[0], sizeof(dq_map
[0]));
18 memcpy(dq_map_ch1
, dq_map
[1], sizeof(dq_map
[1]));
21 void mainboard_fill_dqs_map_data(void *dqs_map_ch0
, void *dqs_map_ch1
)
23 /* DQS CPU<>DRAM map */
24 const u8 dqs_map
[2][8] = {
25 { 0, 1, 3, 2, 4, 5, 6, 7 },
26 { 1, 0, 4, 5, 2, 3, 6, 7 } };
27 memcpy(dqs_map_ch0
, dqs_map
[0], sizeof(dqs_map
[0]));
28 memcpy(dqs_map_ch1
, dqs_map
[1], sizeof(dqs_map
[1]));
31 void mainboard_fill_rcomp_res_data(void *rcomp_ptr
)
34 const u16 RcompResistor
[3] = { 200, 81, 162 };
35 memcpy(rcomp_ptr
, RcompResistor
,
36 sizeof(RcompResistor
));
39 void mainboard_fill_rcomp_strength_data(void *rcomp_strength_ptr
)
42 static const u16 RcompTarget
[5] = { 100, 40, 40, 23, 40 };
44 memcpy(rcomp_strength_ptr
, RcompTarget
, sizeof(RcompTarget
));