drivers: mfd: refactor the vexpress config bridge API
authorPawel Moll <pawel.moll@arm.com>
Thu, 6 Jun 2013 09:59:22 +0000 (10:59 +0100)
committerJon Medhurst <tixy@linaro.org>
Mon, 1 Jul 2013 10:04:57 +0000 (11:04 +0100)
commit854f623384031939e66b1b838e7c332a9da2aac5
treed9f10f9fd5d0b488eeace7880dac7c40c9b5729c
parent8bb495e3f02401ee6f76d1b1d77f3ac9f079e376
drivers: mfd: refactor the vexpress config bridge API

The introduction of Serial Power Controller (SPC) requires the vexpress
config interface to change slightly since the SPC memory mapped interface
can be used as configuration bus but also for operating points
programming and retrieval. The helper that allocates the bridge functions
requires an additional parameter allowing to request component specific
functions that need not be initialized through device tree bindings but
just using simple look-up and statically defined constants.

This patch introduces the necessary changes to the vexpress config layer
to cater for the new vexpress bridge interface requirements.

Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Achin Gupta <achin.gupta@arm.com>
Cc: Sudeep KarkadaNagesha <Sudeep.KarkadaNagesha@arm.com>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Nicolas Pitre <nicolas.pitre@linaro.org>
Cc: Amit Kucheria <amit.kucheria@linaro.org>
Cc: Jon Medhurst <tixy@linaro.org>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
drivers/mfd/vexpress-config.c
drivers/mfd/vexpress-sysreg.c
include/linux/vexpress.h