Re: [PATCH v6] ARM: imx: Add basic imx6q thermal driver

2012-06-27 Thread Rob Lee
On Wed, Jun 27, 2012 at 8:48 AM, Sascha Hauer wrote: > On Tue, Jun 26, 2012 at 11:51:55PM -0500, Robert Lee wrote: >> +static inline int anatop_get_temp(int *temp, struct thermal_zone_device >> *tzdev) >> +{ >> + unsigned int n_meas; >> + unsigned int reg; >> + struct imx_anatop_tsdat

Re: [PATCH v6] ARM: imx: Add basic imx6q thermal driver

2012-06-27 Thread Sascha Hauer
On Tue, Jun 26, 2012 at 11:51:55PM -0500, Robert Lee wrote: > +static inline int anatop_get_temp(int *temp, struct thermal_zone_device > *tzdev) > +{ > + unsigned int n_meas; > + unsigned int reg; > + struct imx_anatop_tsdata *sd; > + > + sd = &((struct imx_anatop_thdata *)tzdev->d

Re: [PATCH v6] ARM: imx: Add basic imx6q thermal driver

2012-06-27 Thread Rob Lee
On Tue, Jun 26, 2012 at 11:51 PM, Robert Lee wrote: > Add imx anatop peripheral thermal driver and use it for imx6q builds. > This driver hooks into the linux thermal framework which provides a > sysfs interface for temperature readings and other information and > a mechanism to shutdown the syste