[PATCH v5 1/4] Documentation: common clk API

2012-03-03 Thread Mike Turquette
Provide documentation for the common clk structures and APIs. This code can be found in drivers/clk/ and include/linux/clk*.h. Signed-off-by: Mike Turquette mturque...@linaro.org Signed-off-by: Mike Turquette mturque...@ti.com Cc: Jeremy Kerr jeremy.k...@canonical.com Cc: Thomas Gleixner

[PATCH v5 2/4] clk: Kconfig: add entry for HAVE_CLK_PREPARE

2012-03-03 Thread Mike Turquette
The common clk framework provides clk_prepare and clk_unprepare implementations. Create an entry for HAVE_CLK_PREPARE so that COMMON_CLK can select it. Signed-off-by: Mike Turquette mturque...@linaro.org Signed-off-by: Mike Turquette mturque...@ti.com Acked-by: Shawn Guo shawn@linaro.org Cc:

[PATCH v5 0/4] common clk framework

2012-03-03 Thread Mike Turquette
From: Mike Turquette mturque...@ti.com The common clock framework defines a common struct clk as well as an implementation of the clk api that unifies clock operations on various platforms and devices. The net result is consolidation of many different struct clk definitions and platform-specific

[PATCH v5 3/4] clk: introduce the common clock framework

2012-03-03 Thread Mike Turquette
The common clock framework defines a common struct clk useful across most platforms as well as an implementation of the clk api that drivers can use safely for managing clocks. The net result is consolidation of many different struct clk definitions and platform-specific clock framework

[PATCH v5 4/4] clk: basic clock hardware types

2012-03-03 Thread Mike Turquette
Many platforms support simple gateable clocks, fixed-rate clocks, adjustable divider clocks and multi-parent multiplexer clocks. This patch introduces basic clock types for the above-mentioned hardware which share some common characteristics. Based on original work by Jeremy Kerr and

[PATCH 3/4] thermal: exynos4: Register the tmu sensor with the thermal interface layer

2012-03-03 Thread Amit Daniel Kachhap
Export and register information from the tmu temperature sensor to the samsung exynos kernel thermal framework where different cooling devices and thermal zone are binded. The exported information is based according to the data structure thermal_sensor_conf present in exynos_thermal.h. HWMON sysfs

[PATCH 4/4] ARM: exynos4: Add thermal sensor driver platform device support

2012-03-03 Thread Amit Daniel Kachhap
This patch adds necessary source definations needed for TMU driver and the platform device support. Signed-off-by: Amit Daniel Kachhap amit.kach...@linaro.org --- arch/arm/mach-exynos/Kconfig | 11 + arch/arm/mach-exynos/Makefile |1 +

[PATCH 0/4] thermal: exynos: Add kernel thermal support for exynos platform

2012-03-03 Thread Amit Daniel Kachhap
Changes since RFC: *Moved the Temperature sensor driver from driver/hwmon/ to driver/mfd as discussed with Guenter Roeck guenter.ro...@ericsson.com and Donggeun Kim dg77@samsung.com (https://lkml.org/lkml/2012/1/5/7) *Some changes according to the changes in common cpu cooling APIs All the

[PATCH 1/4] thermal: exynos: Add thermal interface support for linux thermal layer

2012-03-03 Thread Amit Daniel Kachhap
This codes uses the generic linux thermal layer and creates a bridge between temperature sensors, linux thermal framework and cooling devices for samsung exynos platform. This layer recieves or monitor the temperature from the sensor and informs the generic thermal layer to take the necessary

[PATCH 2/4] hwmon: exynos4: Move thermal sensor driver to driver/mfd directory

2012-03-03 Thread Amit Daniel Kachhap
This movement is needed because the hwmon entries and corresponding sysfs interface is a duplicate of utilities already provided by driver/thermal/thermal_sys.c. The goal is to place it in mfd folder and add necessary calls to get the temperature information. Signed-off-by: Amit Daniel Kachhap

Re: [PATCH v5 3/4] clk: introduce the common clock framework

2012-03-03 Thread Sascha Hauer
On Sat, Mar 03, 2012 at 12:29:00AM -0800, Mike Turquette wrote: The common clock framework defines a common struct clk useful across most platforms as well as an implementation of the clk api that drivers can use safely for managing clocks. The net result is consolidation of many different

Re: [linux-pm] [PATCH 2/4] hwmon: exynos4: Move thermal sensor driver to driver/mfd directory

2012-03-03 Thread Mark Brown
On Sat, Mar 03, 2012 at 04:36:05PM +0530, Amit Daniel Kachhap wrote: This movement is needed because the hwmon entries and corresponding sysfs interface is a duplicate of utilities already provided by driver/thermal/thermal_sys.c. The goal is to place it in mfd folder and add necessary calls

Re: [PATCH v5 3/4] clk: introduce the common clock framework

2012-03-03 Thread Turquette, Mike
On Sat, Mar 3, 2012 at 5:31 AM, Sascha Hauer s.ha...@pengutronix.de wrote: On Sat, Mar 03, 2012 at 12:29:00AM -0800, Mike Turquette wrote: The common clock framework defines a common struct clk useful across most platforms as well as an implementation of the clk api that drivers can use safely

[PATCH v7 1/2] mfd: Add anatop mfd driver

2012-03-03 Thread Ying-Chun Liu (PaulLiu)
From: Ying-Chun Liu (PaulLiu) paul@linaro.org Anatop is a mfd chip embedded in Freescale i.MX6Q SoC. Anatop provides regulators and thermal. This driver handles the address space and the operation of the mfd device. Signed-off-by: Ying-Chun Liu (PaulLiu) paul@linaro.org Cc: Samuel Ortiz

Re: [PATCH v7 1/2] mfd: Add anatop mfd driver

2012-03-03 Thread Mark Brown
On Sun, Mar 04, 2012 at 01:39:12AM +0800, Ying-Chun Liu (PaulLiu) wrote: From: Ying-Chun Liu (PaulLiu) paul@linaro.org Anatop is a mfd chip embedded in Freescale i.MX6Q SoC. Anatop provides regulators and thermal. This driver handles the address space and the operation of the mfd device.

Re: [lm-sensors] [PATCH 2/4] hwmon: exynos4: Move thermal sensor driver to driver/mfd directory

2012-03-03 Thread Guenter Roeck
On Sat, Mar 03, 2012 at 06:06:05AM -0500, Amit Daniel Kachhap wrote: This movement is needed because the hwmon entries and corresponding sysfs interface is a duplicate of utilities already provided by driver/thermal/thermal_sys.c. The goal is to place it in mfd folder and add necessary calls

Re: [lm-sensors] [PATCH 3/4] thermal: exynos4: Register the tmu sensor with the thermal interface layer

2012-03-03 Thread Guenter Roeck
On Sat, Mar 03, 2012 at 06:06:06AM -0500, Amit Daniel Kachhap wrote: Export and register information from the tmu temperature sensor to the samsung exynos kernel thermal framework where different cooling devices and thermal zone are binded. The exported information is based according to the

Re: [PATCH v7 1/2] mfd: Add anatop mfd driver

2012-03-03 Thread Shawn Guo
On Sun, Mar 04, 2012 at 01:39:12AM +0800, Ying-Chun Liu (PaulLiu) wrote: From: Ying-Chun Liu (PaulLiu) paul@linaro.org Anatop is a mfd chip embedded in Freescale i.MX6Q SoC. Anatop provides regulators and thermal. This driver handles the address space and the operation of the mfd device.

Re: [PATCH v7 1/2] mfd: Add anatop mfd driver

2012-03-03 Thread Shawn Guo
On Sun, Mar 04, 2012 at 01:39:12AM +0800, Ying-Chun Liu (PaulLiu) wrote: ... +static int of_anatop_probe(struct platform_device *pdev) __devinit +{ + struct device *dev = pdev-dev; + struct device_node *np = dev-of_node; + void *ioreg; + struct anatop *drvdata; + +

Re: [PATCH v7 1/2] mfd: Add anatop mfd driver

2012-03-03 Thread Shawn Guo
Sorry, one more missing ... On Sun, Mar 04, 2012 at 01:39:12AM +0800, Ying-Chun Liu (PaulLiu) wrote: ... +static int of_anatop_probe(struct platform_device *pdev) +{ + struct device *dev = pdev-dev; + struct device_node *np = dev-of_node; + void *ioreg; + struct anatop