Commit | Line | Data |
---|---|---|
9b6bbcdb MK |
1 | /************************************************************************\r |
2 | *\r | |
3 | * Copyright (c) 2013-2015 Intel Corporation.\r | |
4 | *\r | |
5 | * This program and the accompanying materials\r | |
6 | * are licensed and made available under the terms and conditions of the BSD License\r | |
7 | * which accompanies this distribution. The full text of the license may be found at\r | |
8 | * http://opensource.org/licenses/bsd-license.php\r | |
9 | *\r | |
10 | * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | *\r | |
13 | ************************************************************************/\r | |
14 | #include "mrc.h"\r | |
15 | #include "memory_options.h"\r | |
16 | \r | |
17 | #include "meminit.h"\r | |
18 | #include "meminit_utils.h"\r | |
19 | #include "prememinit.h"\r | |
20 | #include "io.h"\r | |
21 | \r | |
22 | // Base address for UART registers\r | |
23 | extern uint32_t UartMmioBase;\r | |
24 | \r | |
25 | //\r | |
26 | // Memory Reference Code entry point when executing from BIOS\r | |
27 | //\r | |
28 | void Mrc( MRCParams_t *mrc_params)\r | |
29 | {\r | |
30 | // configure uart base address assuming code relocated to eSRAM\r | |
31 | UartMmioBase = mrc_params->uart_mmio_base;\r | |
32 | \r | |
33 | ENTERFN();\r | |
34 | \r | |
35 | DPF(D_INFO, "MRC Version %04X %s %s\n", MRC_VERSION, __DATE__, __TIME__);\r | |
36 | \r | |
37 | // this will set up the data structures used by MemInit()\r | |
38 | PreMemInit(mrc_params);\r | |
39 | \r | |
40 | // this will initialize system memory\r | |
41 | MemInit(mrc_params);\r | |
42 | \r | |
43 | LEAVEFN();\r | |
44 | return;\r | |
45 | }\r | |
46 | \r |