mfd: Calibrate ab8500 gpadc using OTP values
authorJohan Palsson <johan.palsson@stericsson.com>
Sat, 5 Mar 2011 10:46:37 +0000 (11:46 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 23 Mar 2011 09:42:04 +0000 (10:42 +0100)
commit586f3318adceee4857e82cafc3610070368754e3
treebf770232e1c16fb865eb8b230603b55c0a77634c
parent633e0fa59072f5d78227191b212cb12ad3d21902
mfd: Calibrate ab8500 gpadc using OTP values

The GPADC found in the AB8500 needs to be calibrated to work
properly. This is done by writing a number of special OTP
(one-time-programmable) registers at production. This patch
makes sure that these values are used to calibrate the returned
value from the GPADC so that it is correct.

Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/ab8500-gpadc.c