[PATCH 00/12] soc: samsung: Modify and enhance power domain driver

2014-11-02 Thread Amit Daniel Kachhap
This patch series[3 - 12] performs several implementations as described below, 1) Converts power domain driver to platform driver. 2) Registers this driver as MFD client driver. 3) Moves them into driver/soc/samsung folder. 4) Add new power domain notifier feature. 5) Uses those notfier from

[PATCH 01/12] ARM: EXYNOS: Move pmu specific header files under linux/mfd/samsung

2014-11-02 Thread Amit Daniel Kachhap
From: Pankaj Dubey pankaj.du...@samsung.com Moving Exynos PMU specific header file into include/linux/mfd/samsung thus updated affected files under mach-exynos to use new location of these header files. CC: Sangbeom Kim sbki...@samsung.com CC: Samuel Ortiz sa...@linux.intel.com CC: Lee Jones

[PATCH 02/12] drivers: mfd: Add support for Exynos PMU driver

2014-11-02 Thread Amit Daniel Kachhap
From: Pankaj Dubey pankaj.du...@samsung.com This patch moves Exynos PMU driver implementation from arm/mach-exynos to drivers/mfd. This driver is mainly used for setting misc bits of register from PMU IP of Exynos SoC which will be required to configure before Suspend/Resume. Currently all these

[PATCH 03/12] PM / Domains: Add notifier support for power domain transitions

2014-11-02 Thread Amit Daniel Kachhap
These power domain transition notifiers will assist in carrying out some activity associated with domain power on/off such as some registers which may lose its contents and need save/restore across domain power off/on. 4 type of notifications are added, GPD_OFF_PRE - GPD state before power

[PATCH 04/12] mfd: exynos-pmu: Register exynos-pmu driver as a mfd driver

2014-11-02 Thread Amit Daniel Kachhap
This can be used later to probe and configure PMU client drivers like pm_domain etc. A global structure pmu_dev_client_data is created to pass exynos-pmu platform data to all the clients. Currently the data passed is register base addresses. Although the exynos-pmu driver also provides the sysreg

[PATCH 05/12] arm: exynos: Add platform driver support for power domain driver

2014-11-02 Thread Amit Daniel Kachhap
This patch modifies Exynos Power Domain driver initialization implementation in following way: - Added platform driver support and probe function where Exynos PM Domain driver will register itself as MFD PMU client driver. - This driver will now use the PMU base address with

[PATCH 06/12] soc: exynos: Move exynos power domain file to driver/soc/samsung folder

2014-11-02 Thread Amit Daniel Kachhap
This patch moves arch/arm/mach-exynos/pm_domains.c to driver/soc/samsung folder. This will be useful to use it for both arm and arm64 platforms. This file is moved in this directory as this driver is soc specific and only used by exynos platforms. Cc: Kukjin Kim kgene@samsung.com Reviewed-by:

[PATCH 08/12] soc: samsung: pm_domain: Add a new parameter for power configuration

2014-11-02 Thread Amit Daniel Kachhap
This patch adds a new optional parameter pd-power-conf to fetch the correct power configuration value. In exynos7 soc, this field is different from previous exynos soc's. Cc: Kukjin Kim kgene@samsung.com Reviewed-by: Pankaj Dubey pankaj.du...@samsung.com Signed-off-by: Amit Daniel Kachhap

[PATCH 07/12] soc: samsung: pm_domain: Use compatible name for power domain name

2014-11-02 Thread Amit Daniel Kachhap
This patch adds support for second optional compatible complate name. If this compatible name is present then this name will be used to create the Power Domain and not the DT node name. The benefit of this approach is to hook the notifier to the correct Power Domain. Cc: Kukjin Kim

[PATCH 09/12] soc: samsung: pm_domain: Add support for parent power domain

2014-11-02 Thread Amit Daniel Kachhap
This patch adds supports for parent power domain. This will ensure invoking of parent/child power domain on/off in a correct sequence. In exynos7 SOC's, power domain controllers have parent and child hierarchy. Cc: Kukjin Kim kgene@samsung.com Reviewed-by: Pankaj Dubey

[PATCH 11/12] clk: samsung: save and restore clock registers for power domain

2014-11-02 Thread Amit Daniel Kachhap
This patch adds support for save and restore for clock registers which loses register contents across power domain off/on sequence. Cc: Sylwester Nawrocki s.nawro...@samsung.com Cc: Mike Turquette mturque...@linaro.org Reviewed-by: Pankaj Dubey pankaj.du...@samsung.com Signed-off-by: Amit Daniel

[PATCH 10/12] soc: samsung: pm_domain: Use the recently added PM Domain notifiers

2014-11-02 Thread Amit Daniel Kachhap
Invoke the GPD_OFF_PRE/GPD_ON_POST power Domain notifiers. This will allow some clocks to be saved and restored. These notifiers can also be invoked from the core power domain files but is not done as exynos is the only user of these notifiers as of now. In exynos7 SOC's only

[PATCH 12/12] arm64: Kconfig: Enable PM_GENERIC_DOMAINS for exynos7

2014-11-02 Thread Amit Daniel Kachhap
Use power domain driver for Exynos7 SOC's Cc: Catalin Marinas catalin.mari...@arm.com Reviewed-by: Pankaj Dubey pankaj.du...@samsung.com Signed-off-by: Amit Daniel Kachhap amit.dan...@samsung.com --- arch/arm64/Kconfig |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig