aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung/include
diff options
context:
space:
mode:
authorChanghwan Youn <chaos.youn@samsung.com>2010-12-03 17:14:57 +0900
committerKukjin Kim <kgene.kim@samsung.com>2010-12-30 09:36:52 +0900
commitd930596a3c093bf3f4fbf24f10ad0d8372d6ac21 (patch)
tree85fa69c63b9bf31c405fc54d8df83f49e9d3ef8c /arch/arm/plat-samsung/include
parentdf3d02962bc39155c8b4214ce6f0e84750c7921f (diff)
downloadkernel_samsung_smdk4412-d930596a3c093bf3f4fbf24f10ad0d8372d6ac21.zip
kernel_samsung_smdk4412-d930596a3c093bf3f4fbf24f10ad0d8372d6ac21.tar.gz
kernel_samsung_smdk4412-d930596a3c093bf3f4fbf24f10ad0d8372d6ac21.tar.bz2
ARM: SAMSUNG: Add support for Power Domain control
This patch implements Power Domain control based on Runtime PM framework. Each Power Domain is represented by a Power Domain device and the devices belong to these Power Domains should be set as a child device of the Power Domain devices. The corresponding drivers of the devices should implement Runtime PM to control the Power Domains. Signed-off-by: Changhwan Youn <chaos.youn at samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-samsung/include')
-rw-r--r--arch/arm/plat-samsung/include/plat/pd.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/include/plat/pd.h b/arch/arm/plat-samsung/include/plat/pd.h
new file mode 100644
index 0000000..5f0ad85
--- /dev/null
+++ b/arch/arm/plat-samsung/include/plat/pd.h
@@ -0,0 +1,30 @@
+/* linux/arch/arm/plat-samsung/include/plat/pd.h
+ *
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd.
+ * http://www.samsung.com
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+*/
+
+#ifndef __ASM_PLAT_SAMSUNG_PD_H
+#define __ASM_PLAT_SAMSUNG_PD_H __FILE__
+
+struct samsung_pd_info {
+ int (*enable)(struct device *dev);
+ int (*disable)(struct device *dev);
+ void __iomem *base;
+};
+
+enum s5pv310_pd_block {
+ PD_MFC,
+ PD_G3D,
+ PD_LCD0,
+ PD_LCD1,
+ PD_TV,
+ PD_CAM,
+ PD_GPS
+};
+
+#endif /* __ASM_PLAT_SAMSUNG_PD_H */