Skip to contentSkip to conversation

ARM: EXYNOS: Remove unused DMC offset and its mapping

PATCH Superseded Pankaj Dubey 2 participants 3 messages Aug 23, 2016 – Aug 24, 2016

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: EXYNOS: Remove unused DMC offset and its mapping

Currently there is no user of DMC SFR offsets, so we can safely remove mapping of its SFR address space and cleanup related offset macros from mach-exynos.

---
 arch/arm/mach-exynos/exynos.c                | 10 ----------
 arch/arm/mach-exynos/include/mach/map.h      |  3 ---
 arch/arm/plat-samsung/include/plat/map-s5p.h |  3 ---
 3 files changed, 16 deletions(-)
arch/arm/mach-exynos/exynos.c +0 -10
index acabf0b..139d1ef 100644
@@ -39,16 +39,6 @@ static struct map_desc exynos4_iodesc[] __initdata = {
 		.pfn		= __phys_to_pfn(EXYNOS4_PA_COREPERI),
 		.length		= SZ_8K,
 		.type		= MT_DEVICE,
-	}, {
-		.virtual	= (unsigned long)S5P_VA_DMC0,
-		.pfn		= __phys_to_pfn(EXYNOS4_PA_DMC0),
-		.length		= SZ_64K,
-		.type		= MT_DEVICE,
-	}, {
-		.virtual	= (unsigned long)S5P_VA_DMC1,
-		.pfn		= __phys_to_pfn(EXYNOS4_PA_DMC1),
-		.length		= SZ_64K,
-		.type		= MT_DEVICE,
 	},
 };
 
arch/arm/mach-exynos/include/mach/map.h +0 -3
index c48ba4f..85d610d 100644
@@ -20,9 +20,6 @@
 
 #define EXYNOS4_PA_CMU			0x10030000
 
-#define EXYNOS4_PA_DMC0			0x10400000
-#define EXYNOS4_PA_DMC1			0x10410000
-
 #define EXYNOS4_PA_COREPERI		0x10500000
 
 #endif /* __ASM_ARCH_MAP_H */
arch/arm/plat-samsung/include/plat/map-s5p.h +0 -3
index b63aeeb..9a80bf6 100644
@@ -16,9 +16,6 @@
 #define S5P_VA_CHIPID		S3C_ADDR(0x02000000)
 #define S5P_VA_CMU		S3C_ADDR(0x02100000)
 
-#define S5P_VA_DMC0		S3C_ADDR(0x02440000)
-#define S5P_VA_DMC1		S3C_ADDR(0x02480000)
-
 #define S5P_VA_COREPERI_BASE	S3C_ADDR(0x02800000)
 #define S5P_VA_COREPERI(x)	(S5P_VA_COREPERI_BASE + (x))
 #define S5P_VA_SCU		S5P_VA_COREPERI(0x0)
Signature · 1 line
2.4.5
maintainer Applied
#1 lore raw

PATCH 1/1 ARM: EXYNOS: Remove unused DMC offset and its mapping

Quoted 11 lines · Pankaj Dubey

Currently there is no user of DMC SFR offsets, so we can safely remove mapping of its SFR address space and cleanup related offset macros from mach-exynos.

---
 arch/arm/mach-exynos/exynos.c                | 10 ----------
 arch/arm/mach-exynos/include/mach/map.h      |  3 ---
 arch/arm/plat-samsung/include/plat/map-s5p.h |  3 ---
 3 files changed, 16 deletions(-)

Thanks, applied.

Best regards,
Krzysztof

#2 lore raw

PATCH 1/1 ARM: EXYNOS: Remove unused DMC offset and its mapping

Quoted 13 lines · Krzysztof Kozlowski
Quoted 11 lines · Pankaj Dubey

Currently there is no user of DMC SFR offsets, so we can safely remove mapping of its SFR address space and cleanup related offset macros from mach-exynos.

---
 arch/arm/mach-exynos/exynos.c                | 10 ----------
 arch/arm/mach-exynos/include/mach/map.h      |  3 ---
 arch/arm/plat-samsung/include/plat/map-s5p.h |  3 ---
 3 files changed, 16 deletions(-)
Quoted 1 line

Thanks, applied.

I mean, v2, applied.

BR,
Krzysztof