1. 08 1月, 2011 19 次提交
  2. 23 12月, 2010 1 次提交
  3. 07 12月, 2010 1 次提交
  4. 25 11月, 2010 10 次提交
  5. 09 11月, 2010 1 次提交
    • F
      x86/mrst: Add SFI platform device parsing code · 1da4b1c6
      Feng Tang 提交于
      SFI provides a series of tables. These describe the platform devices present
      including SPI and I²C devices, as well as various sensors, keypads and other
      glue as well as interfaces provided via the SCU IPC mechanism (intel_scu_ipc.c)
      
      This patch is a merge of the core elements and relevant fixes from the
      Intel development code by Feng, Alek, myself into a single coherent patch
      for upstream submission.
      
      It provides the needed infrastructure to register I2C, SPI and platform devices
      described by the tables, as well as handlers for some of the hardware already
      supported in kernel. The 0.8 firmware also provides GPIO tables.
      
      Devices are created at boot time or if they are SCU dependant at the point an
      SCU is discovered. The existing Linux device mechanisms will then handle the
      device binding. At an abstract level this is an SFI to Linux device translator.
      
      Device/platform specific setup/glue is in this file. This is done so that the
      drivers for the generic I²C and SPI bus devices remain cross platform as they
      should.
      
      (Updated from RFC version to correct the emc1403 name used by the firmware
       and a wrongly used #define)
      Signed-off-by: NAlek Du <alek.du@linux.intel.com>
      LKML-Reference: <20101109112158.20013.6158.stgit@localhost.localdomain>
      [Clean ups, removal of 0.7 support]
      Signed-off-by: NFeng Tang <feng.tang@linux.intel.com>
      [Clean ups]
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      1da4b1c6
  6. 28 10月, 2010 1 次提交
  7. 21 10月, 2010 7 次提交
    • C
      eeepc-wmi: Add cpufv sysfs interface · 7f80d734
      Chris Bagwell 提交于
      eeepc-laptop provides a sysfs interface to read and control what it
      calls cpufv.  When WMI is enabled, the ACPI interface changes slightly
      and becames a write-only control with 3 valid values.
      
      Expose cpufv again to allow for user space utils that can extended battery
      life noticably and come a little closer to parity with eeepc-laptop.
      
      Write-only is OK for most user space apps because read status was
      mostly used to prevent unneeded mode changes.  Since this same check
      to ignore changes to same mode also exists in the DSDT then it was
      wasted ACPI call.
      
      acpi_osi="!Windows 2009" can be used for get back eeepc-laptop's
      read support of cpufv for debugging things such as behaviour
      during resume.
      
      This patch was tested with EEE PC 1005PE by monitoring powertop output while
      writing values of "0", "1", and "2" and by reviewing the decompiled DSDT of
      an 1201NL and comparing it to 1005PE's DSDT.
      Signed-off-by: NChris Bagwell <chris@cnpbagwell.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      7f80d734
    • C
      eeepc-wmi: add additional hotkeys · eda17484
      Chris Bagwell 提交于
      Added 4 hotkeys using same keymap values as eeepc-latop.
      These are mousepad toggle, resolution change, screen off,
      and task manager.  These were tested on 1005PE and are the
      Fn-F3, F4, F7, and F9, respectively.
      
      Also, added a new hot key for power toggles (Fn-Space on 1005PE)
      and is meant to drive cpufv interface from userspace.
      Signed-off-by: NChris Bagwell <chris@cnpbagwell.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      eda17484
    • J
      panasonic-laptop: Simplify calls to acpi_pcc_retrieve_biosdata · e253fb94
      Jean Delvare 提交于
      Function acpi_pcc_retrieve_biosdata is always called with parameters
      (pcc, pcc->sinf), so we can drop the second parameter. It was
      dangerous to pass the sinf array separately anyway, as its length is
      checked as pcc->num_sifr, which pretty much assumed it was pcc->sinf
      (or at least had the same size.)
      
      This change makes the code slightly more compact and thus marginally
      faster.
      Signed-off-by: NJean Delvare <jdelvare@suse.de>
      Cc: Harald Welte <laforge@gnumonks.org>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      e253fb94
    • J
      panasonic-laptop: Handle errors properly if they happen · aa13857f
      Jean Delvare 提交于
      acpi_pcc_retrieve_biosdata() returns success instead of error if
      HKEY.SINF is invalid. Fix this.
      
      Furthermore, if acpi_pcc_retrieve_biosdata() returns an error
      during device addition, initialization is properly reverted but value
      0 is returned, which means success. This would cause a crash when
      later using or removing the device, so fix this too.
      Signed-off-by: NJean Delvare <jdelvare@suse.de>
      Cc: Harald Welte <laforge@gnumonks.org>
      Cc: Bruno Premont <bonbons@linux-vserver.org>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      aa13857f
    • A
      intel_pmic_gpio: fix off-by-one value range checking · 41196179
      Axel Lin 提交于
      In pmic_irq_type(), we use gpio as array index for trigger,
      thus the valid value range for gpio should be 0 .. NUM_GPIO - 1.
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      41196179
    • V
      IBM Real-Time "SMI Free" mode driver -v7 · 35f0ce03
      Vernon Mauery 提交于
      After a period of RFC for this driver, I think it is ready
      for inclusion in the platform-driver-x86 tree, hopefully to
      be staged in the next merge window into Linus's tree.
      
      --Vernon
      
      ------------------------------------------------------------
      
      IBM Real-Time "SMI Free" mode driver
      
      This driver supports the Real-Time Linux (RTL) BIOS feature.
      The RTL feature allows non-fatal System Management Interrupts
      (SMIs) to be disabled on supported IBM platforms and is
      intended to be coupled with a user-space daemon to monitor
      the hardware in a way that can be prioritized and scheduled
      to better suit the requirements for the system.
      
      The Device is presented as a special "_RTL_" table to the OS
      in the Extended BIOS Data Area.  There is a simple protocol
      for entering and exiting the mode at runtime.  This driver
      creates a simple sysfs interface to allow a simple entry and
      exit from RTL mode in the UFI/BIOS.
      
      Since the driver is specific to IBM SystemX hardware (x86-
      based servers) it only builds on x86 builds.  To reduce the
      risk of loading on the wrong hardware, the module uses DMI
      information and checks a list of servers that are known to
      work.
      Signed-off-by: NVernon Mauery <vernux@us.ibm.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      35f0ce03
    • D
      Add OLPC XO-1 rfkill driver · 260586d2
      Daniel Drake 提交于
      Add a software rfkill switch for the WLAN interface in the OLPC XO-1
      laptop. It uses the OLPC embedded controller to cut/restore power to
      the Marvell WLAN chip on the motherboard.
      Signed-off-by: NDaniel Drake <dsd@laptop.org>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      260586d2