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

2012-03-18 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 --- arch/arm/mach-exynos/Kconfig | 11 +++ arch/arm/mach-exynos/Makefile |1 + arch/arm/mach-exynos/clock.c

[PATCH V2 4/6] hwmon: exynos4: Move thermal sensor driver to driver/thermal directory

2012-03-18 Thread Amit Daniel Kachhap
EXYNOS4" + depends on ARCH_EXYNOS4 && THERMAL + help + If you say yes here you get support for TMU (Thermal Managment + Unit) on SAMSUNG EXYNOS4 series of SoC. + + This driver can also be built as a module. If so, the module + will be called ex

[PATCH V2 5/6] thermal: exynos4: Register the tmu sensor with the kernel thermal layer

2012-03-18 Thread Amit Daniel Kachhap
This code added creates a link between temperature sensors, linux thermal framework and cooling devices for samsung exynos platform. This layer monitors the temperature from the sensor and informs the generic thermal layer to take the necessary cooling action. Signed-off-by: Amit Daniel Kachhap

[PATCH V2 3/6] thermal: Add generic cpuhotplug cooling implementation

2012-03-18 Thread Amit Daniel Kachhap
easily done as the registration APIs return the cooling device pointer. The user of these APIs are responsible for passing the cpumask. Signed-off-by: Amit Daniel Kachhap --- Documentation/thermal/cpu-cooling-api.txt | 16 +++ drivers/thermal/Kconfig |2 +- drivers/thermal

[PATCH V2 2/6] thermal: Add generic cpufreq cooling implementation

2012-03-18 Thread Amit Daniel Kachhap
default data such as freq_clip_max if needed. Signed-off-by: Amit Daniel Kachhap --- Documentation/thermal/cpu-cooling-api.txt | 60 + drivers/thermal/Kconfig | 11 + drivers/thermal/Makefile |1 + drivers/thermal/cpu_cooling.c | 359

[PATCH V2 1/6] thermal: Add a new trip type to use cooling device instance number

2012-03-18 Thread Amit Daniel Kachhap
back function. Also since the trip temperature's are in ascending order so some logic is put in place to skip the un-necessary checks. Signed-off-by: Amit Daniel Kachhap --- Documentation/thermal/sysfs-api.txt |4 +- drivers/thermal/thermal_sys.c |

[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 --- arch/arm/mach-exynos/Kconfig | 11 + arch/arm/mach-exynos/Makefile |1 + arch/arm/mach-exynos/clock.c |4

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

2012-03-03 Thread Amit Daniel Kachhap
functions are removed as all of them are present in generic linux thermal layer. Also the platform data structure is modified to pass frequency cooling in percentages for each thermal level. Signed-off-by: Amit Daniel Kachhap --- Documentation/mfd/exynos4_tmu | 35

[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

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

2012-03-03 Thread Amit Daniel Kachhap
cooling action. Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/Kconfig |8 + drivers/thermal/Makefile |1 + drivers/thermal/exynos_thermal.c | 272 ++ include/linux/exynos_thermal.h | 72 ++ 4 files changed, 353

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

2012-03-03 Thread Amit Daniel Kachhap
hermal < Temperature Sensor | | \|/| Cpufreq cooling device <- Amit Daniel Kachhap (4): thermal: exynos: Add thermal interface support for linux thermal layer hwmon: exynos4: Move thermal sens

[PATCH V6 4/5] ARM: exynos: remove useless code to save/restore L2

2012-02-20 Thread Amit Daniel Kachhap
: Lorenzo Pieralisi Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/pm.c | 15 --- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-exynos/pm.c b/arch/arm/mach-exynos/pm.c index e190130..4816827 100644 --- a/arch/arm/mach-exynos/pm.c +++ b/arch

[PATCH V6 5/5] ARM: exynos: Enable l2 configuration through device tree

2012-02-20 Thread Amit Daniel Kachhap
This patch enables calling generic l2 setup functions if device tree is used. Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/common.c | 13 +++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c

[PATCH V6 3/5] ARM: exynos: save L2 settings during bootup

2012-02-20 Thread Amit Daniel Kachhap
This patch adds code to save L2 register configuration at boot, and later used to resume L2 before MMU is enabled in suspend and cpuidle resume paths. Signed-off-by: Lorenzo Pieralisi Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/common.c | 42

[PATCH V6 2/5] ARM: s5p: add L2 early resume code

2012-02-20 Thread Amit Daniel Kachhap
This patch adds code to resume L2 before MMU is enabled in suspend and cpuidle resume paths. s3c_cpu_resume is moved to the data section with appropriate comments. Signed-off-by: Lorenzo Pieralisi Signed-off-by: Amit Daniel Kachhap --- arch/arm/plat-s5p/sleep.S | 44

[PATCH V6 1/5] ARM: exynos: Add support AFTR mode on EXYNOS4210

2012-02-20 Thread Amit Daniel Kachhap
-by: Lorenzo Pieralisi Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/cpuidle.c | 147 ++- arch/arm/mach-exynos/include/mach/pmu.h |2 + 2 files changed, 146 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm

[PATCH V6 0/5] ARM: exynos4210: Add l2 retention mode cpuidle state

2012-02-20 Thread Amit Daniel Kachhap
://www.spinics.net/lists/arm-kernel/msg132243.html) earlier submitted by Jaecheol Lee . This patch uses CPU PM notifiers , common l2 save/restore and new cpu_suspend/resume interfaces and is based on the tip of master branch of kernel.org tree(v3.3-rc4) Amit Daniel Kachhap (5): ARM: exynos: Add support AFTR

[PATCH V5 5/5] ARM: exynos: Enable l2 configuration through device tree

2012-01-04 Thread Amit Daniel Kachhap
This patch enables calling generic l2 setup functions if device tree is used. Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/common.c | 14 -- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c

[PATCH V5 4/5] ARM: exynos: remove useless code to save/restore L2

2012-01-04 Thread Amit Daniel Kachhap
: Lorenzo Pieralisi Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/pm.c | 15 --- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-exynos/pm.c b/arch/arm/mach-exynos/pm.c index a4f61a4..2dd55a1 100644 --- a/arch/arm/mach-exynos/pm.c +++ b/arch

[PATCH V5 3/5] ARM: exynos: save L2 settings during bootup

2012-01-04 Thread Amit Daniel Kachhap
This patch adds code to save L2 register configuration at boot, and later used to resume L2 before MMU is enabled in suspend and cpuidle resume paths. Signed-off-by: Lorenzo Pieralisi Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/common.c | 42

[PATCH V5 2/5] ARM: s5p: add L2 early resume code

2012-01-04 Thread Amit Daniel Kachhap
This patch adds code to resume L2 before MMU is enabled in suspend and cpuidle resume paths. s3c_cpu_resume is moved to the data section with appropriate comments. Signed-off-by: Lorenzo Pieralisi Signed-off-by: Amit Daniel Kachhap --- arch/arm/plat-s5p/sleep.S | 44

[PATCH V5 1/5] ARM: exynos: Add support AFTR mode on EXYNOS4210

2012-01-04 Thread Amit Daniel Kachhap
-by: Lorenzo Pieralisi Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/cpuidle.c | 149 ++- arch/arm/mach-exynos/include/mach/pmu.h |2 + 2 files changed, 148 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm

[PATCH V5 0/5] ARM: exynos: Add l2 retention mode cpuidle state

2012-01-04 Thread Amit Daniel Kachhap
of for-next branch of samsung tree (git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git for-next) since commit id 44ceab1ea847daa03d1d58a20c43a83e8b99a2f9. Amit Daniel Kachhap (5): ARM: exynos: Add support AFTR mode on EXYNOS4210 ARM: s5p: add L2 early resume code ARM

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

2011-12-21 Thread Amit Daniel Kachhap
functions are currently left although all of them are present in generic linux thermal layer. Also the platform data structure is modified to pass frequency cooling in percentages for each thermal level. Signed-off-by: Amit Daniel Kachhap --- drivers/hwmon/exynos4_tmu.c | 34

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

2011-12-21 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 --- arch/arm/mach-exynos/Kconfig | 12 + arch/arm/mach-exynos/Makefile |1 + arch/arm/mach-exynos/clock.c |4

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

2011-12-21 Thread Amit Daniel Kachhap
cooling action. Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/Kconfig |8 ++ drivers/thermal/Makefile |1 + drivers/thermal/exynos_thermal.c | 255 ++ include/linux/exynos_thermal.h | 59 + 4 files changed, 323

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

2011-12-21 Thread Amit Daniel Kachhap
ermal <---> Exynos thermal < Temperature Sensor | | \|/| Cpufreq cooling device <----- Amit Daniel Kachhap (3): thermal: exynos: Add thermal interface support for linux thermal layer thermal: exynos4:

[PATCH V4 5/5] ARM: exynos: Enable l2 configuration through device tree

2011-12-05 Thread Amit Daniel Kachhap
This patch enables calling generic l2 setup functions if device tree is used. Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/cpu.c | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos/cpu.c b/arch/arm/mach-exynos/cpu.c index

[PATCH V4 4/5] ARM: exynos: remove useless code to save/restore L2

2011-12-05 Thread Amit Daniel Kachhap
: Lorenzo Pieralisi Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/pm.c | 15 --- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-exynos/pm.c b/arch/arm/mach-exynos/pm.c index 4093fea..1883cc9 100644 --- a/arch/arm/mach-exynos/pm.c +++ b/arch

[PATCH V4 3/5] ARM: s5p: add L2 early resume code

2011-12-05 Thread Amit Daniel Kachhap
This patch adds code to resume L2 before MMU is enabled in suspend and cpuidle resume paths. s3c_cpu_resume is moved to the data section with appropriate comments. Signed-off-by: Lorenzo Pieralisi Signed-off-by: Amit Daniel Kachhap --- arch/arm/plat-s5p/sleep.S | 44

[PATCH V4 2/5] ARM: exynos: save L2 settings during bootup

2011-12-05 Thread Amit Daniel Kachhap
This patch adds code to save L2 register configuration at boot, and later used to resume L2 before MMU is enabled in suspend and cpuidle resume paths. Signed-off-by: Lorenzo Pieralisi Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/cpu.c | 42

[PATCH V4 1/5] ARM: exynos: Add support AFTR mode on EXYNOS4210

2011-12-05 Thread Amit Daniel Kachhap
-by: Lorenzo Pieralisi Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/cpuidle.c | 152 ++- arch/arm/mach-exynos/include/mach/pmu.h |2 + 2 files changed, 151 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm

[PATCH V4 0/5] ARM: exynos: Add l2 retention mode cpuidle state

2011-12-05 Thread Amit Daniel Kachhap
/restore and new cpu_suspend/resume interfaces and is based on the tip of for-next branch of samsung tree. (git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git for-next). Amit Daniel Kachhap (5): ARM: exynos: Add support AFTR mode on EXYNOS4210 ARM: exynos: save L2 settings

[PATCH V3 6/6] ARM: exynos: Enable l2 configuration through device tree

2011-11-22 Thread Amit Daniel Kachhap
This patch enables calling generic l2 setup functions if device tree is used. Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/cpu.c | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos/cpu.c b/arch/arm/mach-exynos/cpu.c index

[PATCH V3 5/6] ARM: exynos: remove useless code to save/restore L2

2011-11-22 Thread Amit Daniel Kachhap
: Lorenzo Pieralisi Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/pm.c | 15 --- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-exynos/pm.c b/arch/arm/mach-exynos/pm.c index 4093fea..1883cc9 100644 --- a/arch/arm/mach-exynos/pm.c +++ b/arch

[PATCH V3 4/6] ARM: s5p: add L2 early resume code

2011-11-22 Thread Amit Daniel Kachhap
This patch adds code to resume L2 before MMU is enabled in suspend and cpuidle resume paths. Signed-off-by: Lorenzo Pieralisi Signed-off-by: Amit Daniel Kachhap --- arch/arm/plat-s5p/sleep.S | 28 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a

[PATCH V3 3/6] ARM: exynos: save L2 settings during bootup

2011-11-22 Thread Amit Daniel Kachhap
This patch adds code to save L2 register configuration at boot, and later used to resume L2 before MMU is enabled in suspend and cpuidle resume paths. Signed-off-by: Lorenzo Pieralisi Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/cpu.c | 42

[PATCH V3 2/6] ARM: s5p: remove useless churn in sleep.S

2011-11-22 Thread Amit Daniel Kachhap
This patch cleans up sleep code in preparation for L2 resume code and hotplug functions Signed-off-by: Lorenzo Pieralisi Signed-off-by: Amit Daniel Kachhap --- arch/arm/plat-s5p/sleep.S |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/arm/plat-s5p/sleep.S b/arch

[PATCH V3 1/6] ARM: exynos: Add AFTR mode cpuidle state on EXYNOS4210

2011-11-22 Thread Amit Daniel Kachhap
-by: Lorenzo Pieralisi Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/cpuidle.c | 152 ++- arch/arm/mach-exynos/include/mach/pmu.h |2 + 2 files changed, 151 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm

[PATCH V3 0/6] ARM: exynos: Add l2 retention mode cpuidle state

2011-11-22 Thread Amit Daniel Kachhap
://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git for-next). Amit Daniel Kachhap (6): ARM: exynos: Add support AFTR mode on EXYNOS4210 ARM: s5p: remove useless churn in sleep.S ARM: exynos: save L2 settings during bootup ARM: s5p: add L2 early resume code ARM: exynos: remove useless

[PATCH] ARM: exynos4: Fix for stall in case of cpu hotplug or sleep

2011-11-18 Thread Amit Daniel Kachhap
This patch adds remove_irq in place of disable_irq which is correct equivalent function for setup_irq used in exynos4_mct_tick_init. Signed-off-by: Amit Daniel Kachhap Tested-by: Inderpal Singh --- arch/arm/mach-exynos/mct.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff

[PATCH V2 3/5] ARM: exynos4: add L2 early resume code

2011-11-10 Thread Amit Daniel Kachhap
This patch adds code to save L2 register configuration at boot, and to resume L2 before MMU is enabled in suspend and cpuidle resume paths. Signed-off-by: Lorenzo Pieralisi Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/cpu.c | 42 +++--- arch

[PATCH V2 5/5] ARM: exynos4: Enable l2 configuration through device tree

2011-11-10 Thread Amit Daniel Kachhap
This patch enables calling generic l2 setup functions if device tree is used. Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/cpu.c | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos/cpu.c b/arch/arm/mach-exynos/cpu.c index

[PATCH V2 4/5] ARM: exynos4: remove useless code to save/restore L2

2011-11-10 Thread Amit Daniel Kachhap
: Lorenzo Pieralisi Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/pm.c | 15 --- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-exynos/pm.c b/arch/arm/mach-exynos/pm.c index 509a435..0c264e1 100644 --- a/arch/arm/mach-exynos/pm.c +++ b/arch

[PATCH V2 2/5] ARM: exynos4: remove useless churn in sleep.S

2011-11-10 Thread Amit Daniel Kachhap
This patch cleans up sleep code in preparation for L2 resume code and hotplug functions Signed-off-by: Lorenzo Pieralisi Signed-off-by: Amit Daniel Kachhap --- arch/arm/plat-s5p/sleep.S |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/arm/plat-s5p/sleep.S b/arch

[PATCH V2 1/5] ARM: exynos4: Add support for AFTR mode cpuidle state

2011-11-10 Thread Amit Daniel Kachhap
Lee Signed-off-by: Lorenzo Pieralisi Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/cpuidle.c | 148 ++- arch/arm/mach-exynos/include/mach/pmu.h |2 + 2 files changed, 146 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-exynos

[PATCH V2 0/5] ARM: exynos4: Add l2 retention mode cpuidle state

2011-11-10 Thread Amit Daniel Kachhap
/linux/kernel/git/kgene/linux-samsung.git for-next). Amit Daniel Kachhap (5): ARM: exynos4: Add support for AFTR mode cpuidle state ARM: exynos4: remove useless churn in sleep.S ARM: exynos4: add L2 early resume code ARM: exynos4: remove useless code to save/restore L2 ARM: exynos4

[RFC PATCH 4/4] ARM: EXYNOS4: Modify cpuidle code to adapt to save/restore common code

2011-08-19 Thread Amit Daniel Kachhap
The L2 retention cpuidle state is modified to use the interfaces exposed by the lorenzo's cpuidle consolidation code. As can be seen lot of code is reduced in the machine directory. Signed-off-by: Amit Daniel Kachhap --- arch/arm/Kconfig |1 + arch/arm/mach-ex

[RFC PATCH 3/4] ARM: EXYNOS4: Add support AFTR mode cpuidle state on EXYNOS4210

2011-08-19 Thread Amit Daniel Kachhap
This patch adds support AFTR(ARM OFF TOP RUNNING) mode in cpuidle driver. L2 cache keeps their data in this mode. Signed-off-by: Jaecheol Lee Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos4/Makefile |2 +- arch/arm/mach-exynos4/cpuidle.c | 131

[RFC PATCH 2/4] ARM: EXYNOS4: Fix to work with origen boards.

2011-08-19 Thread Amit Daniel Kachhap
This adds a function to get the revision id. Signed-off-by: Jaecheol Lee Signed-off-by: Changhwan Youn --- arch/arm/mach-exynos4/cpu.c | 10 ++ arch/arm/plat-s5p/include/plat/exynos4.h |1 + 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach

[RFC PATCH 1/4] ARM: kernel: Small fixes in save/restore common code.

2011-08-19 Thread Amit Daniel Kachhap
These changes are necessary to make the retention cpuidle state work. This adds support for saving more L2 registers. Signed-off-by: Amit Daniel Kachhap --- arch/arm/common/gic.c|1 - arch/arm/kernel/sr_helpers.h |2 +- arch/arm/mm/cache-l2x0.c | 10 +- 3 files

[RFC PATCH 0/4] ARM: EXYNOS4: Use cpuidle common save/restore framework code

2011-08-19 Thread Amit Daniel Kachhap
infrastructure to enter and exit from the retention idle state. All these codes have been tested on Samsung ORIGEN board against the tree git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git for-next. Amit Daniel Kachhap (4): ARM: kernel: Some fixes in save/restore common code

[PATCH] I2C: Samsung: Add support for PM_runtime in the I2C driver.

2011-03-27 Thread Amit Daniel Kachhap
This patch adds PM runtime management support in the I2C driver. The functionality of the driver is not modified much but some extra I2C states are added for PM runtime. The runtime suspend keeps the interrupt for the I2C interface disabled. Signed-off-by: Amit Daniel Kachhap --- drivers/i2c

<    1   2   3   4   5   6