]> git.karo-electronics.de Git - karo-tx-linux.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>
Mon, 9 Dec 2013 08:54:23 +0000 (08:54 +0000)
commit1ba3e27bd57e292721b2d0eab7647ca36cfec930
tree066003d66e1d85e097360166270f42e71c2d40b0
parentf7ddcba09150072dec2103a88a60cd289a4beb5c
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