blob: e82d26b1e168975a9246e82fd0a3317b42d0719e (
plain)
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
|
/* SPDX-License-Identifier: GPL-2.0-only */
#include <arch/mmio.h>
#include <soc/romstage.h>
void mainboard_memory_init_params(FSPM_UPD *mupd)
{
FSP_M_CONFIG *m_cfg = &mupd->FspmConfig;
void *start = (void *) m_cfg;
// BoardId
write8(start + 140, 0x1d);
// BoardTypeBitmask
write32(start + 104, 0x11111111);
// DebugPrintLevel
write8(start + 45, 8);
// KtiLinkSpeedMode
write8(start + 64, 0);
// KtiPrefetchEn
write8(start + 53, 2);
}
|