coreboot-kgpe-d16/src/soc
Subrata Banik 809b7513a2 soc/intel/common/timer: Make TSC frequency calculation dynamically
tsc_freq_mhz() had a static table of Intel CPU families and crystal
clock, but it is possible to calculate the crystal clock speed dynamically,
and this is preferred over hardcoded table.

On SKL/KBL/CML CPUID.15h.ecx = nominal core crystal clock = 0 Hz
hence we had to use static table to calculate crystal clock.

Recommendation is to make use of CPUID.16h where crystal clock frequency
was not reported by CPUID.15h to calculate the crystal clock.

BUG=b:139798422, b:129839774
TEST=Able to build and boot KBL/CML/ICL.

Change-Id: If660a4b8d12e54b39252bce62bcc0ffcc967f5da
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/35148
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: V Sowmya <v.sowmya@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2019-09-02 20:08:20 +00:00
..
amd lib/bootblock: Add simplified entry with basetime 2019-08-26 21:11:31 +00:00
cavium arm64: Rename arm_tf.c/h to bl31.c/h 2019-08-30 10:37:17 +00:00
imgtec arch/non-x86: Remove use of __PRE_RAM__ 2019-08-20 01:12:28 +00:00
intel soc/intel/common/timer: Make TSC frequency calculation dynamically 2019-09-02 20:08:20 +00:00
mediatek mediatek/mt8183: Remove unnecessary parentheses 2019-09-02 06:42:08 +00:00
nvidia arm64: Rename arm_tf.c/h to bl31.c/h 2019-08-30 10:37:17 +00:00
qualcomm ipq40xx: Increase CBFS and RAMSTAGE size 2019-08-30 10:43:42 +00:00
rockchip arm64: Rename arm_tf.c/h to bl31.c/h 2019-08-30 10:37:17 +00:00
samsung arch/non-x86: Use ENV_ROMSTAGE_OR_BEFORE 2019-08-26 21:04:42 +00:00
sifive soc/sifive/fu540: add code for spi and map flash to memory spaces 2019-08-12 08:35:17 +00:00
ucb lib: Rewrite qemu-armv7 ramdetect 2019-07-28 11:31:42 +00:00