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:
committed by
Patrick Georgi
parent
e73a85c5a5
commit
5e2ac2c079
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Reference in New Issue
Block a user