|
@@ -12,6 +12,7 @@
|
|
|
#include <asm/vsyscall.h>
|
|
|
#include <asm/x86_init.h>
|
|
|
#include <asm/time.h>
|
|
|
+#include <asm/mrst.h>
|
|
|
|
|
|
#ifdef CONFIG_X86_32
|
|
|
/*
|
|
@@ -242,6 +243,10 @@ static __init int add_rtc_cmos(void)
|
|
|
if (of_have_populated_dt())
|
|
|
return 0;
|
|
|
|
|
|
+ /* Intel MID platforms don't have ioport rtc */
|
|
|
+ if (mrst_identify_cpu())
|
|
|
+ return -ENODEV;
|
|
|
+
|
|
|
platform_device_register(&rtc_device);
|
|
|
dev_info(&rtc_device.dev,
|
|
|
"registered platform RTC device (no PNP device found)\n");
|