saradc: saradc register initialization is incomplete [1/1]
authorXingyu Chen <xingyu.chen@amlogic.com>
Tue, 26 Feb 2019 09:45:31 +0000 (17:45 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 7 Mar 2019 02:12:11 +0000 (18:12 -0800)
commitd737edb3b914dc3f27a00f6241452bfaecbdfbe7
tree0bf37f6073e339e89010b9e66b052f41dea03eb4
parent6b4f4ac8993dcda9aa12220a2cd77a27ebe48a9c
saradc: saradc register initialization is incomplete [1/1]

PD#SWPL-4975

Problem:
some basic saradc registers are only initialized at bl2 stage, the ADC
value is abnormal when bl2 disable saradc init.

Solution:
to re-initialize the basic saradc registers in kernel.

Verify:
test pass on w400 and p212

Change-Id: Ie98e8789fd47cc43cafcb49d9862ccccbe1d9b66
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
drivers/amlogic/iio/adc/meson_saradc.c