Re: [PATCH v5 2/2] thermal: uniphier: add UniPhier thermal driver

2017-07-25 Thread Kunihiko Hayashi
On Fri, 21 Jul 2017 22:21:05 +0900 wrote: > 2017-07-21 20:21 GMT+09:00 Kunihiko Hayashi : > > > +static int uniphier_tm_initialize_sensor(struct uniphier_tm_dev *tdev) > > +{ > > + struct regmap *map = tdev->regmap; > > + u32 val; > > + int ret; > > + > > + /* stop PVT */

Re: [PATCH v5 2/2] thermal: uniphier: add UniPhier thermal driver

2017-07-21 Thread Masahiro Yamada
2017-07-21 20:21 GMT+09:00 Kunihiko Hayashi : > +static int uniphier_tm_initialize_sensor(struct uniphier_tm_dev *tdev) > +{ > + struct regmap *map = tdev->regmap; > + u32 val; > + int ret; > + > + /* stop PVT */ > + regmap_write_bits(map, tdev->data->block_base + PVT

Re: [PATCH v5 2/2] thermal: uniphier: add UniPhier thermal driver

2017-07-21 Thread Masahiro Yamada
2017-07-21 20:21 GMT+09:00 Kunihiko Hayashi : > +static int uniphier_tm_initialize_sensor(struct uniphier_tm_dev *tdev) > +{ > + struct regmap *map = tdev->regmap; > + u32 val; > + int ret; > + > + /* stop PVT */ > + regmap_write_bits(map, tdev->data->block_base + PVT

[PATCH v5 2/2] thermal: uniphier: add UniPhier thermal driver

2017-07-21 Thread Kunihiko Hayashi
Add a thermal driver for on-chip PVT (Process, Voltage and Temperature) monitoring unit implemented on UniPhier SoCs. This driver supports temperature monitoring and alert function. Signed-off-by: Kunihiko Hayashi --- drivers/thermal/Kconfig| 8 + drivers/thermal/Makefile