coreboot-kgpe-d16/src/soc/amd/picasso
Kyösti Mälkki 0d6ddf8da7 cpu/x86/tsc: Flip and rename TSC_CONSTANT_RATE to UNKNOWN_TSC_RATE
The x86 timers are a bit of a mess. Cases where different stages use
different counters and timestamps use different counters from udelays.

The original intention was to only flip TSC_CONSTANT_RATE Kconfig
to NOT_CONSTANT_TSC_RATE. The name would be incorrect though, those
counters do run with a constant rate but we just lack tsc_freq_mhz()
implementation for three platforms.

Note that for boards with UNKNOWN_TSC_RATE=y, each stage will have a
slow run of calibrate_tsc_with_pit(). This is easy enough to fix with
followup implementation of tsc_freq_mhz() for the platforms.

Implementations with LAPIC_MONOTONIC_TIMER typically will not have
tsc_freq_mhz() implemented and default to UNKNOWN_TSC_RATE. However,
as they don't use TSC for udelay() the slow calibrate_tsc_with_pit()
is avoided.

Because x86/tsc_delay.tsc was using two different guards and nb/via/vx900
claimed UDELAY_TSC, but pulled UDELAY_IO implementation, we also switch
that romstage to use UDELAY_TSC.

Change-Id: I1690cb80295d6b006b75ed69edea28899b674b68
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33928
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2019-11-03 06:15:35 +00:00
..
acpi soc/amd/picasso: Adjust I2C ASL 2019-10-20 16:45:22 +00:00
include/soc soc/amd/picasso: Add audio processor 2019-10-21 21:28:48 +00:00
acp.c soc/amd/picasso: Add audio processor 2019-10-21 21:28:48 +00:00
acpi.c soc/amd/picasso: Update southbridge 2019-10-20 16:31:54 +00:00
chip.c src/{device,drivers,mb,nb,soc,sb}: Remove unused 'include <console/console.h>' 2019-10-21 14:21:09 +00:00
chip.h soc/amd/picasso: Add audio processor 2019-10-21 21:28:48 +00:00
cpu.c soc/amd/picasso: Add cpuid for older device 2019-10-20 18:09:55 +00:00
finalize.c soc/*: mp_run_on_all_cpus: Remove configurable timeout 2019-08-15 06:45:34 +00:00
gpio.c src/soc/amd/picasso: Update GPIO configuration 2019-08-09 20:19:05 +00:00
i2c.c soc/amd/picasso: Adjust I2C ASL 2019-10-20 16:45:22 +00:00
Kconfig cpu/x86/tsc: Flip and rename TSC_CONSTANT_RATE to UNKNOWN_TSC_RATE 2019-11-03 06:15:35 +00:00
Makefile.inc soc/amd/picasso: Add audio processor 2019-10-21 21:28:48 +00:00
mca.c soc/amd/picasso: Update machine check support 2019-08-09 20:21:16 +00:00
memmap.c lib/cbmem_top: Add a common cbmem_top implementation 2019-11-01 11:44:51 +00:00
northbridge.c soc/amd/picasso: Add display identification and vbios name 2019-10-20 16:41:21 +00:00
pmutil.c
reset.c src/amd/picasso: Update reset code 2019-08-09 20:20:31 +00:00
romstage.c drivers/elog: Add elog_boot_notify() 2019-09-13 09:58:33 +00:00
sata.c src: Remove unused include '<device/pci_ids.h>' 2019-10-18 18:41:09 +00:00
sm.c
smbus.c
smi.c cpu/x86: Move some SMM function declarations 2019-08-13 13:59:34 +00:00
smi_util.c
smihandler.c soc/amd/picasso: Update southbridge 2019-10-20 16:31:54 +00:00
southbridge.c soc/amd/picasso: Update UARTs 2019-10-20 16:42:09 +00:00
tsc_freq.c soc/amd/picasso: Update TSC and monotonic timer 2019-09-09 22:20:08 +00:00
uart.c soc/amd/picasso: Update UARTs 2019-10-20 16:42:09 +00:00
usb.c soc/amd/picasso: Update for USB3.1 2019-10-20 16:28:34 +00:00