]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: tps6586x: Add version detection
authorStefan Agner <stefan@agner.ch>
Fri, 6 Dec 2013 12:51:45 +0000 (13:51 +0100)
committerLee Jones <lee.jones@linaro.org>
Tue, 21 Jan 2014 08:28:01 +0000 (08:28 +0000)
commit3179705c80af6a7b29b82d1cc2f732cee9a0d6e6
tree433fe00ea3f9f7f7ad0887ba13067bc92620b052
parent7f509d74f436b1ff1dfb93f90974ca616e2a5f1a
mfd: tps6586x: Add version detection

Use the VERSIONCRC to determine the exact device version. According to
the datasheet this register can be used as device identifier. The
identification is needed since some tps6586x regulators use a different
voltage table.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/tps6586x.c
include/linux/mfd/tps6586x.h