Mika Westerberg
1b7ccabcc3
x86/mid/thermal: Turn off thermistor
...
Instead of complaining that the voltage is on, we can just ask
the MSIC to turn the voltage off. This should save some power.
Voltage for thermistors is turned on when ADC conversion is
initiated.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com >
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com >
Signed-off-by: Alan Cox <alan@linux.intel.com >
Acked-by: Durgadoss R <durgadoss.r@intel.com >
Acked-by: H. Peter Anvin <hpa@zytor.com >
Cc: Matthew Garrett <mjg@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Link: http://lkml.kernel.org/n/tip-85zdo06yve1o27jpwc74gzng@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu >
2012-03-06 09:01:26 +01:00
Mika Westerberg
634830704d
x86/mid/thermal: Add msic_thermal alias
...
This device is called "msic_thermal" instead of "msic_sensor" on
actual boards so rename it.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com >
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com >
[ Updated to rename rather than add an entry as er discussion with Mika & Durgadoss R]
Signed-off-by: Alan Cox <alan@linux.intel.com >
Acked-by: H. Peter Anvin <hpa@zytor.com >
Cc: Matthew Garrett <mjg@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Link: http://lkml.kernel.org/n/tip-gyrbptvkozsbp2yk3ssu084o@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu >
2012-03-06 09:01:25 +01:00
Mika Westerberg
0f48d34ec6
x86/mid/thermal: Convert to use Intel MSIC API
...
Intel MSIC MFD driver provides common register access interface
to the devices in the MSIC die so we use that instead of SCU
IPC.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com >
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com >
Signed-off-by: Alan Cox <alan@linux.intel.com >
Acked-by: Durgadoss R <durgadoss.r@intel.com >
Acked-by: H. Peter Anvin <hpa@zytor.com >
Cc: Matthew Garrett <mjg@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Link: http://lkml.kernel.org/n/tip-6so0ep0lj0zann68ad5983xh@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu >
2012-03-06 09:01:25 +01:00
Axel Lin
03f8952cf6
platform-drivers-x86: intel_mid_thermal: fix memory leak
...
The memory for td_info which is allocated in initialize_sensor()
should be properly kfreed in mid_thermal_probe() error patch and
mid_thermal_remove().
Signed-off-by: Axel Lin <axel.lin@gmail.com >
Signed-off-by: Matthew Garrett <mjg@redhat.com >
2011-08-05 14:46:11 -04:00
Ameya Palande
239dca9e9a
platform-x86: intel_mid_thermal: Fix memory leak
...
Signed-off-by: Ameya Palande <2ameya@gmail.com >
Signed-off-by: Matthew Garrett <mjg@redhat.com >
2011-05-27 12:37:20 -04:00
Ameya Palande
253a0069d7
platform-x86: intel_mid_thermal: Fix coding style
...
Before fixing checkpatch.pl reported 74 errors and 234 warnings
Signed-off-by: Ameya Palande <ameya.palande@nokia.com >
Signed-off-by: Matthew Garrett <mjg@redhat.com >
2011-05-27 12:35:53 -04:00
Lucas De Marchi
25985edced
Fix common misspellings
...
Fixes generated by 'codespell' and manually reviewed.
Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi >
2011-03-31 11:26:23 -03:00
Axel Lin
47ae4352be
platform-driver-x86: intel_mid_thermal: fix unterminated platform_device_id table
...
The platform_device_id table is supposed to be zero-terminated.
Signed-off-by: Axel Lin <axel.lin@gmail.com >
Signed-off-by: Matthew Garrett <mjg@redhat.com >
2011-03-28 06:07:26 -04:00
Durgadoss R
f017fbe799
medfield: Add Thermal Driver
...
This is the basic thermal sensor driver for Intel MID platform using the
Medfield chipset. It plugs in via the thermal drivers and provides sensor
readings for the device sensors.
Signed-off-by: Durgadoss R <durgadoss.r@intel.com >
Signed-off-by: Alan Cox <alan@linux.intel.com >
Signed-off-by: Matthew Garrett <mjg@redhat.com >
2011-03-28 06:07:19 -04:00