coreboot-kgpe-d16/src
Gaggery Tsai 85801f670d mb/google/hatch/vr/puff: Add psys_pmax calculation
This patch adds psys_pmax calculation. There are two types of power
sources. One is barrel jack and the other is USB TYPE-C. The voltage
level is fixed for a barrel jack while TYPE-C may vary depending
on power ratings. We need to get voltage information from
EC and calculate correct psys_pmax value. The psys_pmax needs to be
set before FSP-S since FSP-S will handle the setting passing to pcode,
so move the routine ahead to variant_ramstage_init.

BUG=b:151972149
TEST=emerge-puff coreboot chromeos-bootimage
     check firmware log and ensure psys_pmax is passed to FSP
     check the data from dump_intel_rapl_consumption in the OS and
     ensure the power data is close to an external power meter.

Signed-off-by: Gaggery Tsai <gaggery.tsai@intel.com>
Change-Id: I8ea01f856411e05a533489280fc2b4a46a1440c5
Reviewed-on: https://review.coreboot.org/c/coreboot/+/39850
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
2020-04-20 06:57:51 +00:00
..
acpi src/acpi: Update license headers to SPDX 2020-01-02 14:49:00 +00:00
arch drivers/pc80/rtc: Reorganize prototypes 2020-04-20 06:16:54 +00:00
commonlib src/commonlib: Use SPDX for GPL-2.0-only files 2020-04-04 01:14:24 +00:00
console drivers/pc80/rtc: Drop CMOS_POST_EXTRA option 2020-04-20 06:13:39 +00:00
cpu src/cpu: Use SPDX for GPL-2.0-only files 2020-04-04 14:59:17 +00:00
device drivers/pc80/rtc: Reorganize prototypes 2020-04-20 06:16:54 +00:00
drivers drivers/pc80/rtc: Reorganize prototypes 2020-04-20 06:16:54 +00:00
ec google/chromeec: Revise parameters of EC USB PD API call 2020-04-20 06:47:16 +00:00
include mmio: Fix failure in bit field macro when accessing >30 bits 2020-04-20 06:20:50 +00:00
lib drivers/pc80/rtc: Reorganize prototypes 2020-04-20 06:16:54 +00:00
mainboard mb/google/hatch/vr/puff: Add psys_pmax calculation 2020-04-20 06:57:51 +00:00
northbridge nb/intel/sandybridge: Refactor get_mem_min_tck 2020-04-19 09:46:42 +00:00
security vboot/secdata: remove retries, readback, and CRC check 2020-04-20 06:06:25 +00:00
soc soc/intel/tigerlake: Update iDisp Link UPD settings 2020-04-20 06:45:53 +00:00
southbridge i82371eb: Drop KB/Mouse/FDC declarations 2020-04-18 18:52:34 +00:00
superio Drop unnecessary DEVICE_NOOP entries 2020-04-10 11:25:04 +00:00
vendorcode vc/amd/agesa/f15tn,f16kb: Fix array types 2020-04-18 19:07:19 +00:00
Kconfig src/Kconfig: enable USE_BLOBS by default 2020-04-14 10:03:55 +00:00