Re: [PATCH 1/2] thermal: tsens: Add support for SDM845 platform

2018-06-12 Thread Amit Kucheria
On Mon, Jun 4, 2018 at 6:03 PM, Bjorn Andersson wrote: > On Sat 02 Jun 04:11 PDT 2018, Amit Kucheria wrote: >> diff --git a/drivers/thermal/qcom/tsens-sdm845.c >> b/drivers/thermal/qcom/tsens-sdm845.c > [..] >> +#define TRDY_OFFSET 0xe4 >> +#define TRDY_READY_BIT BIT(1) > > This is bit 0.

Re: [PATCH 1/2] thermal: tsens: Add support for SDM845 platform

2018-06-12 Thread Amit Kucheria
On Mon, Jun 4, 2018 at 6:03 PM, Bjorn Andersson wrote: > On Sat 02 Jun 04:11 PDT 2018, Amit Kucheria wrote: >> diff --git a/drivers/thermal/qcom/tsens-sdm845.c >> b/drivers/thermal/qcom/tsens-sdm845.c > [..] >> +#define TRDY_OFFSET 0xe4 >> +#define TRDY_READY_BIT BIT(1) > > This is bit 0.

Re: [PATCH 1/2] thermal: tsens: Add support for SDM845 platform

2018-06-04 Thread Bjorn Andersson
On Sat 02 Jun 04:11 PDT 2018, Amit Kucheria wrote: > diff --git a/drivers/thermal/qcom/tsens-sdm845.c > b/drivers/thermal/qcom/tsens-sdm845.c [..] > +#define TRDY_OFFSET 0xe4 > +#define TRDY_READY_BIT BIT(1) This is bit 0. > + > +#define STATUS_OFFSET0xa0 > +#define LAST_TEMP_MASK

Re: [PATCH 1/2] thermal: tsens: Add support for SDM845 platform

2018-06-04 Thread Bjorn Andersson
On Sat 02 Jun 04:11 PDT 2018, Amit Kucheria wrote: > diff --git a/drivers/thermal/qcom/tsens-sdm845.c > b/drivers/thermal/qcom/tsens-sdm845.c [..] > +#define TRDY_OFFSET 0xe4 > +#define TRDY_READY_BIT BIT(1) This is bit 0. > + > +#define STATUS_OFFSET0xa0 > +#define LAST_TEMP_MASK

Re: [PATCH 1/2] thermal: tsens: Add support for SDM845 platform

2018-06-03 Thread Rajendra Nayak
On 06/02/2018 04:41 PM, Amit Kucheria wrote: > There are two tsens blocks on the SDM845. These will be configured through > the devicetree. > > Signed-off-by: Amit Kucheria > --- > .../devicetree/bindings/thermal/qcom-tsens.txt | 1 + > drivers/thermal/qcom/Makefile

Re: [PATCH 1/2] thermal: tsens: Add support for SDM845 platform

2018-06-03 Thread Rajendra Nayak
On 06/02/2018 04:41 PM, Amit Kucheria wrote: > There are two tsens blocks on the SDM845. These will be configured through > the devicetree. > > Signed-off-by: Amit Kucheria > --- > .../devicetree/bindings/thermal/qcom-tsens.txt | 1 + > drivers/thermal/qcom/Makefile

[PATCH 1/2] thermal: tsens: Add support for SDM845 platform

2018-06-02 Thread Amit Kucheria
There are two tsens blocks on the SDM845. These will be configured through the devicetree. Signed-off-by: Amit Kucheria --- .../devicetree/bindings/thermal/qcom-tsens.txt | 1 + drivers/thermal/qcom/Makefile | 2 +- drivers/thermal/qcom/tsens-sdm845.c|

[PATCH 1/2] thermal: tsens: Add support for SDM845 platform

2018-06-02 Thread Amit Kucheria
There are two tsens blocks on the SDM845. These will be configured through the devicetree. Signed-off-by: Amit Kucheria --- .../devicetree/bindings/thermal/qcom-tsens.txt | 1 + drivers/thermal/qcom/Makefile | 2 +- drivers/thermal/qcom/tsens-sdm845.c|