Hi, On Thu, Jul 12, 2018 at 1:39 AM, Amit Kucheria <[email protected]> wrote: > There are two banks of registers for v2 TSENS IPs: SROT and TM. On older > SoCs these were contiguous, leading to DTs mapping them as one register > address space of size 0x2000. In newer SoCs, these two banks are not > contiguous anymore. > > Add logic to init_common() to differentiate between old and new DTs and > adjust associated offsets for the TM register bank so that the old DTs will > continue to function correctly. > > Signed-off-by: Amit Kucheria <[email protected]> > Reviewed-by: Bjorn Andersson <[email protected]> > Tested-by: Matthias Kaehlcke <[email protected]> > --- > drivers/thermal/qcom/tsens-8996.c | 4 ++-- > drivers/thermal/qcom/tsens-common.c | 12 ++++++++++++ > drivers/thermal/qcom/tsens.h | 1 + > 3 files changed, 15 insertions(+), 2 deletions(-)
Reviewed-by: Douglas Anderson <[email protected]>

