nb/intel/fsp_rangeley: Use MSR_PLATFORM_INFO instead of 0xce

Change-Id: Ifb8aa43b6545482bc7fc136a90c4bbaa18d46089
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/22957
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Elyes HAOUAS
2017-12-20 21:25:12 +01:00
committed by Patrick Georgi
parent e73a85c5a5
commit 5e2ac2c079
2 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,8 @@
#define TSC_SYNC #define TSC_SYNC
#endif #endif
#define MSR_PLATFORM_INFO 0xce
struct tsc_struct { struct tsc_struct {
unsigned int lo; unsigned int lo;
unsigned int hi; unsigned int hi;

View File

@ -43,7 +43,7 @@ void udelay(u32 us)
u32 fsb = 100, divisor; u32 fsb = 100, divisor;
u32 d; /* ticks per us */ u32 d; /* ticks per us */
msr = rdmsr(0xce); msr = rdmsr(MSR_PLATFORM_INFO);
divisor = (msr.lo >> 8) & 0xff; divisor = (msr.lo >> 8) & 0xff;
d = fsb * divisor; d = fsb * divisor;