[U-Boot] [RESEND PATCH v4 02/12] x86: Allow a hardcoded TSC frequency provided by Kconfig

Simon Glass sjg at chromium.org
Wed Jan 7 03:40:54 CET 2015


On 6 January 2015 at 07:14, Bin Meng <bmeng.cn at gmail.com> wrote:
> By default U-Boot automatically calibrates TSC running frequency via
> MSR and PIT. The calibration may not work on every x86 processor, so
> a new Kconfig option CONFIG_TSC_CALIBRATION_BYPASS is introduced to
> allow bypassing the calibration and assign a hardcoded TSC frequency
> CONFIG_TSC_FREQ_IN_MHZ.
>
> Normally the bypass should be turned on in a simulation environment
> like qemu.
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> Acked-by: Simon Glass <sjg at chromium.org>
>
> ---
>
> Changes in v4: None
> Changes in v3: None
> Changes in v2:
> - Spell out TSC, MSR and PIT in the Kconfig help
>
>  arch/x86/Kconfig         | 20 ++++++++++++++++++++
>  arch/x86/lib/tsc_timer.c |  8 ++++++--
>  2 files changed, 26 insertions(+), 2 deletions(-)

Applied to u-boot-x86/next, thanks!


More information about the U-Boot mailing list