regulator: ti-abb: Add support for interleaved LDO registers
authorNishanth Menon <nm@ti.com>
Thu, 23 Jan 2014 17:57:27 +0000 (11:57 -0600)
committerMark Brown <broonie@linaro.org>
Mon, 3 Feb 2014 12:33:17 +0000 (12:33 +0000)
commit6127daa85094e20b42d306dde800e0d745847990
treee8f3bf33c4be4889a0798e4dea4af399629d1904
parent38dbfb59d1175ef458d006556061adeaa8751b72
regulator: ti-abb: Add support for interleaved LDO registers

Certain platforms such as DRA7 have quirky memory maps such as:
PRM_ABBLDO_DSPEVE_CTRL 0x4ae07e20
PRM_ABBLDO_IVA_CTRL 0x4ae07e24
other-registers
PRM_ABBLDO_DSPEVE_SETUP 0x4ae07e30
PRM_ABBLDO_IVA_SETUP 0x4ae07e34

These need the address range allocation to be either not reserved OR
unique allocation per register instance or use something like syscon
based solution.

By going with unique allocation per register, we are able to now have
a single compatible driver for all instances on all platforms which
use the IP block.

So, introduce a new "ti,abb-v3" compatible to allow for definitions
where explicit register definitions are provided, while maintaining
backward compatibility of older predefined register offsets provided
by "ti-abb-v1" and "ti-abb-v2".

As part of this change, we rename a few variables to indicate the
appropriate meaning.

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Documentation/devicetree/bindings/regulator/ti-abb-regulator.txt
drivers/regulator/ti-abb-regulator.c