Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276411
b: refs/heads/master
c: 35d4769
h: refs/heads/master
i:
  276409: 4ecc0df
  276407: 88956fc
v: v3
  • Loading branch information
Mathias Nyman authored and Ingo Molnar committed Dec 5, 2011
1 parent ea7c7aa commit e4fe061
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a7a280493fb63f8e9fbfc8feec5810bf50e1e54f
refs/heads/master: 35d476996288af6a4aaa8b172bcd31decd233de7
9 changes: 9 additions & 0 deletions trunk/arch/x86/include/asm/mrst.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,20 @@ enum mrst_cpu_type {
};

extern enum mrst_cpu_type __mrst_cpu_chip;

#ifdef CONFIG_X86_INTEL_MID

static inline enum mrst_cpu_type mrst_identify_cpu(void)
{
return __mrst_cpu_chip;
}

#else /* !CONFIG_X86_INTEL_MID */

#define mrst_identify_cpu() (0)

#endif /* !CONFIG_X86_INTEL_MID */

enum mrst_timer_options {
MRST_TIMER_DEFAULT,
MRST_TIMER_APBT_ONLY,
Expand Down
5 changes: 5 additions & 0 deletions trunk/arch/x86/kernel/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
/*
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit e4fe061

Please sign in to comment.