Angel Pons | 230e4f9d | 2020-04-05 15:47:14 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Lee Leahy | f26fc0f | 2016-07-25 10:14:07 -0700 | [diff] [blame] | 2 | |
| 3 | #include <console/console.h> |
| 4 | #include <fsp/util.h> |
| 5 | |
Lee Leahy | 44ec92a | 2016-09-28 17:16:44 -0700 | [diff] [blame] | 6 | void soc_display_fspm_upd_params(const FSPM_UPD *fspm_old_upd, |
| 7 | const FSPM_UPD *fspm_new_upd) |
Lee Leahy | f26fc0f | 2016-07-25 10:14:07 -0700 | [diff] [blame] | 8 | { |
Lee Leahy | 44ec92a | 2016-09-28 17:16:44 -0700 | [diff] [blame] | 9 | const FSP_M_CONFIG *new; |
| 10 | const FSP_M_CONFIG *old; |
Lee Leahy | f26fc0f | 2016-07-25 10:14:07 -0700 | [diff] [blame] | 11 | |
| 12 | old = &fspm_old_upd->FspmConfig; |
| 13 | new = &fspm_new_upd->FspmConfig; |
| 14 | |
| 15 | /* Display the parameters for MemoryInit */ |
Julius Werner | 540a980 | 2019-12-09 13:03:29 -0800 | [diff] [blame] | 16 | printk(BIOS_SPEW, "UPD values for MemoryInit at: %p\n", new); |
Lee Leahy | f26fc0f | 2016-07-25 10:14:07 -0700 | [diff] [blame] | 17 | fsp_display_upd_value("AddrMode", sizeof(old->AddrMode), |
| 18 | old->AddrMode, new->AddrMode); |
| 19 | fsp_display_upd_value("ChanMask", sizeof(old->ChanMask), |
| 20 | old->ChanMask, new->ChanMask); |
| 21 | fsp_display_upd_value("ChanWidth", sizeof(old->ChanWidth), |
| 22 | old->ChanWidth, new->ChanWidth); |
| 23 | fsp_display_upd_value("DramDensity", sizeof(old->DramDensity), |
| 24 | old->DramDensity, new->DramDensity); |
| 25 | fsp_display_upd_value("DramRonVal", sizeof(old->DramRonVal), |
| 26 | old->DramRonVal, new->DramRonVal); |
| 27 | fsp_display_upd_value("DramRttNomVal", sizeof(old->DramRttNomVal), |
| 28 | old->DramRttNomVal, new->DramRttNomVal); |
| 29 | fsp_display_upd_value("DramRttWrVal", sizeof(old->DramRttWrVal), |
| 30 | old->DramRttWrVal, new->DramRttWrVal); |
| 31 | fsp_display_upd_value("DramSpeed", sizeof(old->DramSpeed), |
| 32 | old->DramSpeed, new->DramSpeed); |
| 33 | fsp_display_upd_value("DramType", sizeof(old->DramType), |
| 34 | old->DramType, new->DramType); |
| 35 | fsp_display_upd_value("DramWidth", sizeof(old->DramWidth), |
| 36 | old->DramWidth, new->DramWidth); |
| 37 | fsp_display_upd_value("EccScrubBlkSize", sizeof(old->EccScrubBlkSize), |
| 38 | old->EccScrubBlkSize, new->EccScrubBlkSize); |
| 39 | fsp_display_upd_value("EccScrubInterval", sizeof(old->EccScrubInterval), |
| 40 | old->EccScrubInterval, new->EccScrubInterval); |
| 41 | fsp_display_upd_value("Flags", sizeof(old->Flags), old->Flags, |
| 42 | new->Flags); |
| 43 | fsp_display_upd_value("FspReservedMemoryLength", |
| 44 | sizeof(old->FspReservedMemoryLength), |
| 45 | old->FspReservedMemoryLength, new->FspReservedMemoryLength); |
| 46 | fsp_display_upd_value("RankMask", sizeof(old->RankMask), old->RankMask, |
| 47 | new->RankMask); |
| 48 | fsp_display_upd_value("RmuBaseAddress", sizeof(old->RmuBaseAddress), |
| 49 | old->RmuBaseAddress, new->RmuBaseAddress); |
| 50 | fsp_display_upd_value("RmuLength", sizeof(old->RmuLength), |
| 51 | old->RmuLength, new->RmuLength); |
Lee Leahy | 44ec92a | 2016-09-28 17:16:44 -0700 | [diff] [blame] | 52 | fsp_display_upd_value("SerialPortPollForChar", |
| 53 | sizeof(old->SerialPortPollForChar), |
| 54 | old->SerialPortPollForChar, new->SerialPortPollForChar); |
| 55 | fsp_display_upd_value("SerialPortReadChar", |
| 56 | sizeof(old->SerialPortReadChar), |
| 57 | old->SerialPortReadChar, new->SerialPortReadChar); |
| 58 | fsp_display_upd_value("SerialPortWriteChar", |
| 59 | sizeof(old->SerialPortWriteChar), |
| 60 | old->SerialPortWriteChar, new->SerialPortWriteChar); |
Lee Leahy | f26fc0f | 2016-07-25 10:14:07 -0700 | [diff] [blame] | 61 | fsp_display_upd_value("SmmTsegSize", sizeof(old->SmmTsegSize), |
| 62 | old->SmmTsegSize, new->SmmTsegSize); |
| 63 | fsp_display_upd_value("SocRdOdtVal", sizeof(old->SocRdOdtVal), |
| 64 | old->SocRdOdtVal, new->SocRdOdtVal); |
| 65 | fsp_display_upd_value("SocWrRonVal", sizeof(old->SocWrRonVal), |
| 66 | old->SocWrRonVal, new->SocWrRonVal); |
| 67 | fsp_display_upd_value("SocWrSlewRate", sizeof(old->SocWrSlewRate), |
| 68 | old->SocWrSlewRate, new->SocWrSlewRate); |
| 69 | fsp_display_upd_value("SrInt", sizeof(old->SrInt), old->SrInt, |
| 70 | new->SrInt); |
| 71 | fsp_display_upd_value("SrTemp", sizeof(old->SrTemp), old->SrTemp, |
| 72 | new->SrTemp); |
| 73 | fsp_display_upd_value("tCL", sizeof(old->tCL), old->tCL, new->tCL); |
| 74 | fsp_display_upd_value("tFAW", sizeof(old->tFAW), old->tFAW, new->tFAW); |
| 75 | fsp_display_upd_value("tRAS", sizeof(old->tRAS), old->tRAS, new->tRAS); |
| 76 | fsp_display_upd_value("tRRD", sizeof(old->tRRD), old->tRRD, new->tRRD); |
| 77 | fsp_display_upd_value("tWTR", sizeof(old->tWTR), old->tWTR, new->tWTR); |
| 78 | } |