]> git.proxmox.com Git - mirror_edk2.git/blob - QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei/mrc.c
QuarkSocPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / QuarkSocPkg / QuarkNorthCluster / MemoryInit / Pei / mrc.c
1 /************************************************************************
2 *
3 * Copyright (c) 2013-2015 Intel Corporation.
4 *
5 * SPDX-License-Identifier: BSD-2-Clause-Patent
6 *
7 ************************************************************************/
8 #include "mrc.h"
9 #include "memory_options.h"
10
11 #include "meminit.h"
12 #include "meminit_utils.h"
13 #include "prememinit.h"
14 #include "io.h"
15
16 // Base address for UART registers
17 extern uint32_t UartMmioBase;
18
19 //
20 // Memory Reference Code entry point when executing from BIOS
21 //
22 void Mrc( MRCParams_t *mrc_params)
23 {
24 // configure uart base address assuming code relocated to eSRAM
25 UartMmioBase = mrc_params->uart_mmio_base;
26
27 ENTERFN();
28
29 DPF(D_INFO, "MRC Version %04X %s %s\n", MRC_VERSION, __DATE__, __TIME__);
30
31 // this will set up the data structures used by MemInit()
32 PreMemInit(mrc_params);
33
34 // this will initialize system memory
35 MemInit(mrc_params);
36
37 LEAVEFN();
38 return;
39 }
40