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

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

2012-06-26 Thread Robert Lee
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 system upon crossing a critical temperature trip point. Only the

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

2012-06-26 Thread Robert Lee
Based on v3.5-rc4 This patch add basic thermal driver support for the imx6q platform. This was implemented by hooking into the linux thermal framework which provides sysfs temperature readings and other data and a method to shutdown the system if it gets too hot. A major change in this revision