x86/platform/intel/pmc_atom: Add Cherrytrail PMC interface
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 6 Jul 2015 14:29:03 +0000 (17:29 +0300)
committerIngo Molnar <mingo@kernel.org>
Mon, 6 Jul 2015 16:39:38 +0000 (18:39 +0200)
commit2b8f8eddaf05c02bb4a21db5be1691e36e242c65
treeca01924c7c784766fa8866b69472b56eb9381951
parent940406d1cfb5b35cb9716d186fe3e6308f2700c5
x86/platform/intel/pmc_atom: Add Cherrytrail PMC interface

The patch adds CHT PMC interface. This exposes all the South IP
device power states and S0ix states for CHT. The bit map of
FUNC_DIS and D3_STS_0 registers for SoCs are consistent. The
D3_STS_1 and FUNC_DIS_2 registers, however, are not aligned.
This is fixed by splitting a common mapping on per register basis.

(Originally based on code from Kumar P Mahesh.)

Originally-from: Kumar P Mahesh <mahesh.kumar.p@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Aubrey Li <aubrey.li@linux.intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rafael J . Wysocki <rafael.j.wysocki@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1436192944-56496-5-git-send-email-andriy.shevchenko@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/pmc_atom.h
arch/x86/kernel/pmc_atom.c