coreboot/src/drivers
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
..
amd/agesa src/[arch-lib]: change "unsigned" to "unsigned int" 2019-10-27 21:08:39 +00:00
ams AUTHORS: Move src/drivers/[a*-i*] copyrights into AUTHORS file 2019-10-22 12:55:10 +00:00
asmedia AUTHORS: Move src/drivers/[a*-i*] copyrights into AUTHORS file 2019-10-22 12:55:10 +00:00
aspeed AUTHORS: Move src/drivers/[a*-i*] copyrights into AUTHORS file 2019-10-22 12:55:10 +00:00
crb AUTHORS: Move src/drivers/[a*-i*] copyrights into AUTHORS file 2019-10-22 12:55:10 +00:00
dec/21143 AUTHORS: Move src/drivers/[a*-i*] copyrights into AUTHORS file 2019-10-22 12:55:10 +00:00
elog AUTHORS: Move src/drivers/[a*-i*] copyrights into AUTHORS file 2019-10-22 12:55:10 +00:00
emulation/qemu src/[arch-lib]: change "unsigned" to "unsigned int" 2019-10-27 21:08:39 +00:00
generic src/[arch-lib]: change "unsigned" to "unsigned int" 2019-10-27 21:08:39 +00:00
gic AUTHORS: Move src/drivers/[a*-i*] copyrights into AUTHORS file 2019-10-22 12:55:10 +00:00
i2c src/[arch-lib]: change "unsigned" to "unsigned int" 2019-10-27 21:08:39 +00:00
intel src: Remove unused '#include <cpu/cpu.h>' 2019-10-28 11:56:38 +00:00
ipmi drivers/ipmi: Add IPMI BMC FRB2 watchdog timer support 2019-10-24 15:47:40 +00:00
lenovo AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
maxim AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
mrc_cache AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
net src/[arch-lib]: change "unsigned" to "unsigned int" 2019-10-27 21:08:39 +00:00
parade src/[arch-lib]: change "unsigned" to "unsigned int" 2019-10-27 21:08:39 +00:00
pc80 cpu/x86/tsc: Flip and rename TSC_CONSTANT_RATE to UNKNOWN_TSC_RATE 2019-11-03 06:15:35 +00:00
ricoh/rce822 AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
siemens/nc_fpga AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
sil/3114 AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
smmstore src/{device,drivers}: Use 'include <stdlib.h>' when appropriate 2019-10-27 17:52:05 +00:00
spi src/[arch-lib]: change "unsigned" to "unsigned int" 2019-10-27 21:08:39 +00:00
ti AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
tpm AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
uart src/[arch-lib]: change "unsigned" to "unsigned int" 2019-10-27 21:08:39 +00:00
usb src/[arch-lib]: change "unsigned" to "unsigned int" 2019-10-27 21:08:39 +00:00
vpd AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
wifi AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
xgi src/[arch-lib]: change "unsigned" to "unsigned int" 2019-10-27 21:08:39 +00:00