mfd: lpc_ich: Add support for iTCO v3
authorPeter Tyser <ptyser@xes-inc.com>
Wed, 5 Nov 2014 01:39:12 +0000 (09:39 +0800)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:25:28 +0000 (09:25 +0900)
commit760bc4c49f09093730a4ea47beba520755e3b7b6
treee09c8bb9cbd03663303670a4d91d7498063cb0ce
parentf39f47f4a1387dc6d7f6756f9a342317f0befc52
mfd: lpc_ich: Add support for iTCO v3

Some newer Atom CPUs, eg Avoton and Bay Trail, use slightly different
register layouts for the iTCO than the current v1 and v2 iTCO.
Differences from previous iTCO versions include:
- The ACPI space is enabled in the "ACPI base address" register instead
  of the "ACPI control register"

- The "no reboot" functionality is set in the "Power Management
  Configuration" register instead of the "General Control and Status"
  (GCS) register or PCI configuration space.

- The "ACPI Control Register" is not present on v3.  The "Power
  Management Configuration Base Address" register resides at the same
  address is Avoton/Bay Trail.

To differentiate these newer chipsets create a new v3 iTCO version and
update the MFD driver to support them.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Tested-by: Rajat Jain <rajatjain@juniper.net>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
(cherry picked from commit eb71d4dec4a5e010e34b9d7afdb5af41884c388e)

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
drivers/mfd/lpc_ich.c
include/linux/mfd/lpc_ich.h