]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
pmtmr: allow command line override of ioport
authorThomas Gleixner <tglx@linutronix.de>
Wed, 21 May 2008 19:14:58 +0000 (21:14 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 10 Jul 2008 05:10:00 +0000 (07:10 +0200)
Stupid BIOSes do not tell us about the PMTimer,
but we might know where it is.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/clocksource/acpi_pm.c

index 7b46faf22318c31f57072e73ae711d86afc7ba45..3baee020afc29802a648fa45af5284b0aa75b7ce 100644 (file)
@@ -215,3 +215,22 @@ pm_good:
  * but we still need to load before device_initcall
  */
 fs_initcall(init_acpi_pm_clocksource);
+
+/*
+ * Allow an override of the IOPort. Stupid BIOSes do not tell us about
+ * the PMTimer, but we might know where it is.
+ */
+static int __init parse_pmtmr(char *arg)
+{
+       unsigned long base;
+
+       if (strict_strtoul(arg, 16, &base))
+               return -EINVAL;
+
+       printk(KERN_INFO "PMTMR IOPort override: 0x%04lx -> 0x%04lx\n",
+              pmtmr_ioport, base);
+       pmtmr_ioport = base;
+
+       return 1;
+}
+__setup("pmtmr=", parse_pmtmr);