ARM: EXYNOS4: Delete the power-domain code depend on Samsung SoC
Subsystems (3)
PATCH 3/4 ARM: EXYNOS4: Delete the power-domain code depend on Samsung SoC
This patch delete the power domain code depend on Samsung SoC to use the generic Power domain framework for EXYNOS4210.
Signed-off-by Chanwoo Choi <[email protected]>
Signed-off-by Kyungmin Park <[email protected]>
--- arch/arm/mach-exynos4/Kconfig | 9 -- arch/arm/mach-exynos4/Makefile | 1 - arch/arm/mach-exynos4/dev-pd.c | 139 --------------------------- arch/arm/mach-exynos4/mach-nuri.c | 3 - arch/arm/mach-exynos4/mach-smdkc210.c | 8 -- arch/arm/mach-exynos4/mach-smdkv310.c | 8 -- arch/arm/mach-exynos4/mach-universal_c210.c | 3 - arch/arm/plat-samsung/Kconfig | 8 -- arch/arm/plat-samsung/Makefile | 4 - arch/arm/plat-samsung/include/plat/pd.h | 30 ------ arch/arm/plat-samsung/pd.c | 95 ------------------ 11 files changed, 0 insertions(+), 308 deletions(-) delete mode 100644 arch/arm/mach-exynos4/dev-pd.c delete mode 100644 arch/arm/plat-samsung/include/plat/pd.h delete mode 100644 arch/arm/plat-samsung/pd.c
arch/arm/mach-exynos4/Kconfig +0 -9
@@ -32,11 +32,6 @@ config EXYNOS4_SETUP_FIMD0 help Common setup code for FIMD0. -config EXYNOS4_DEV_PD - bool - help - Compile in platform device definitions for Power Domain - config EXYNOS4_DEV_SYSMMU bool help
@@ -125,7 +120,6 @@ config MACH_SMDKC210 select S3C_DEV_HSMMC3 select SAMSUNG_DEV_PWM select SAMSUNG_DEV_BACKLIGHT - select EXYNOS4_DEV_PD select EXYNOS4_DEV_SYSMMU select EXYNOS4_SETUP_FIMD0 select EXYNOS4_SETUP_I2C1
@@ -147,7 +141,6 @@ config MACH_SMDKV310 select SAMSUNG_DEV_BACKLIGHT select EXYNOS4_DEV_AHCI select SAMSUNG_DEV_KEYPAD - select EXYNOS4_DEV_PD select SAMSUNG_DEV_PWM select EXYNOS4_DEV_SYSMMU select EXYNOS4_SETUP_FIMD0
@@ -190,7 +183,6 @@ config MACH_UNIVERSAL_C210 select S3C_DEV_I2C5 select S5P_DEV_MFC select S5P_DEV_ONENAND - select EXYNOS4_DEV_PD select EXYNOS4_SETUP_I2C1 select EXYNOS4_SETUP_I2C3 select EXYNOS4_SETUP_I2C5
@@ -211,7 +203,6 @@ config MACH_NURI select S3C_DEV_I2C5 select S5P_DEV_MFC select S5P_DEV_USB_EHCI - select EXYNOS4_DEV_PD select EXYNOS4_SETUP_I2C1 select EXYNOS4_SETUP_I2C3 select EXYNOS4_SETUP_I2C5
arch/arm/mach-exynos4/Makefile +0 -1
@@ -36,7 +36,6 @@ obj-$(CONFIG_MACH_NURI) += mach-nuri.o obj-y += dev-audio.o obj-$(CONFIG_EXYNOS4_DEV_AHCI) += dev-ahci.o -obj-$(CONFIG_EXYNOS4_DEV_PD) += dev-pd.o obj-$(CONFIG_EXYNOS4_DEV_SYSMMU) += dev-sysmmu.o obj-$(CONFIG_EXYNOS4_DEV_DWMCI) += dev-dwmci.o
arch/arm/mach-exynos4/dev-pd.c deleted +0 -139
139 lines not on this page · raw message
arch/arm/mach-exynos4/mach-nuri.c +0 -3
@@ -42,7 +42,6 @@#include <plat/gpio-cfg.h> #include <plat/iic.h> #include <plat/mfc.h> -#include <plat/pd.h> #include <mach/map.h>
@@ -1105,7 +1104,6 @@ static struct platform_device *nuri_devices[] __initdata = { &s5p_device_mfc, &s5p_device_mfc_l, &s5p_device_mfc_r, - &exynos4_device_pd[PD_MFC ],/* NURI Devices */ &nuri_gpio_keys,
@@ -1147,7 +1145,6 @@ static void __init nuri_machine_init(void)/* Last */ platform_add_devices (nuri_devices,ARRAY_SIZE (nuri_devices)); - s5p_device_mfc.dev.parent = &exynos4_device_pd[PD_MFC ].dev; }MACHINE_START (NURI ,"NURI" )
arch/arm/mach-exynos4/mach-smdkc210.c +0 -8
@@ -33,7 +33,6 @@#include <plat/fb.h> #include <plat/sdhci.h> #include <plat/iic.h> -#include <plat/pd.h> #include <plat/gpio-cfg.h> #include <plat/backlight.h>
@@ -226,13 +225,6 @@ static struct platform_device *smdkc210_devices[] __initdata = { &s3c_device_wdt, &exynos4_device_ac97, &exynos4_device_i2s0, - &exynos4_device_pd[PD_MFC ], - &exynos4_device_pd[PD_G3D ], - &exynos4_device_pd[PD_LCD0 ], - &exynos4_device_pd[PD_LCD1 ], - &exynos4_device_pd[PD_CAM ], - &exynos4_device_pd[PD_TV ], - &exynos4_device_pd[PD_GPS ], &exynos4_device_sysmmu, &samsung_asoc_dma, &s5p_device_fimd0,
arch/arm/mach-exynos4/mach-smdkv310.c +0 -8
@@ -29,7 +29,6 @@#include <plat/keypad.h> #include <plat/sdhci.h> #include <plat/iic.h> -#include <plat/pd.h> #include <plat/gpio-cfg.h> #include <plat/backlight.h>
@@ -177,13 +176,6 @@ static struct platform_device *smdkv310_devices[] __initdata = { &exynos4_device_ac97, &exynos4_device_i2s0, &samsung_device_keypad, - &exynos4_device_pd[PD_MFC ], - &exynos4_device_pd[PD_G3D ], - &exynos4_device_pd[PD_LCD0 ], - &exynos4_device_pd[PD_LCD1 ], - &exynos4_device_pd[PD_CAM ], - &exynos4_device_pd[PD_TV ], - &exynos4_device_pd[PD_GPS ], &exynos4_device_spdif, &exynos4_device_sysmmu, &samsung_asoc_dma,
arch/arm/mach-exynos4/mach-universal_c210.c +0 -3
@@ -33,7 +33,6 @@#include <plat/gpio-cfg.h> #include <plat/mfc.h> #include <plat/sdhci.h> -#include <plat/pd.h> #include <plat/s5p-time.h> #include <mach/map.h>
@@ -723,7 +722,6 @@ static struct platform_device *universal_devices[] __initdata = { &s5p_device_mfc, &s5p_device_mfc_l, &s5p_device_mfc_r, - &exynos4_device_pd[PD_MFC], };static void __init universal_map_io (void )
@@ -759,7 +757,6 @@ static void __init universal_machine_init(void)/* Last */ platform_add_devices (universal_devices,ARRAY_SIZE (universal_devices)); - s5p_device_mfc.dev.parent = &exynos4_device_pd[PD_MFC ].dev; }MACHINE_START (UNIVERSAL_C210 ,"UNIVERSAL_C210" )
arch/arm/plat-samsung/Kconfig +0 -8
@@ -359,12 +359,4 @@ config SAMSUNG_WAKEMASK and above. This code allows a set of interrupt to wakeup-mask mappings. See <plat/wakeup-mask.h> -comment "Power Domain" - -config SAMSUNG_PD - bool "Samsung Power Domain" - depends on PM_RUNTIME - help - Say Y here if you want to control Power Domain by Runtime PM. - endif
arch/arm/plat-samsung/Makefile +0 -4
@@ -75,10 +75,6 @@ obj-$(CONFIG_SAMSUNG_PM_CHECK) += pm-check.o obj-$(CONFIG_SAMSUNG_WAKEMASK) += wakeup-mask.o -# PD support - -obj-$(CONFIG_SAMSUNG_PD) += pd.o - # PWM support obj-$(CONFIG_HAVE_PWM) += pwm.o
arch/arm/plat-samsung/include/plat/pd.h deleted +0 -30
@@ -1,30 +0,0 @@ -/* linux/arch/arm/plat-samsung/include/plat/pd.h -* -* Copyright (c) 2010-2011 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 exynos4_pd_block { -PD_MFC , -PD_G3D , -PD_LCD0 , -PD_LCD1 , -PD_TV , -PD_CAM , -PD_GPS -}; - -#endif /* __ASM_PLAT_SAMSUNG_PD_H */
arch/arm/plat-samsung/pd.c deleted +0 -95
95 lines not on this page · raw message
Signature · 1 line
1.7.0.4