u-boot-brain/drivers/timer
Bin Meng d92e9c8d31 x86: tsc: Read all ratio bits from MSR_PLATFORM_INFO
Currently we read the tsc radio like this:

	ratio = (MSR_PLATFORM_INFO >> 8) & 0x1f;

Thus we get bit 8-12 of MSR_PLATFORM_INFO, however according to the
Intel manual, the ratio bits are bit 8-15.

Fix this problem by masking 0xff instead.

This keeps in sync with Linux kernel commit:
  886123f: x86/tsc: Read all ratio bits from MSR_PLATFORM_INFO

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-08-01 20:17:02 +08:00
..
ae3xx_timer.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
ag101p_timer.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
altera_timer.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
arc_timer.c dm: core: Replace of_offset with accessor (part 2) 2017-06-01 07:03:04 -06:00
ast_timer.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
Kconfig nds32: Support AE3XX platform. 2017-05-22 14:05:46 +08:00
Makefile nds32: Support AE3XX platform. 2017-05-22 14:05:46 +08:00
omap-timer.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
sandbox_timer.c sandbox: timer: Support the early timer 2016-02-26 08:53:10 -07:00
sti-timer.c STiH410: Add STi timer driver 2017-03-14 20:40:18 -04:00
timer-uclass.c dm: core: Update lists_bind_fdt() to use ofnode 2017-06-01 07:03:08 -06:00
tsc_timer.c x86: tsc: Read all ratio bits from MSR_PLATFORM_INFO 2017-08-01 20:17:02 +08:00