]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: SAMSUNG: Remove unused register offset definition
authorPankaj Dubey <pankaj.dubey@samsung.com>
Thu, 25 Feb 2016 04:10:00 +0000 (09:40 +0530)
committerKrzysztof Kozlowski <k.kozlowski@samsung.com>
Thu, 25 Feb 2016 04:24:27 +0000 (13:24 +0900)
This patch cleans up various map.h under mach-exynos, mach-s3c24xx and
plat-samsung by removing unused register offset. This patch also does a
minor nitpick of changing EXYNOS4 to EXYNOS from comment section of
header file "mach-exynos/include/mach/map.h".

Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
arch/arm/mach-exynos/include/mach/map.h
arch/arm/mach-s3c24xx/include/mach/map.h
arch/arm/plat-samsung/include/plat/map-s3c.h
arch/arm/plat-samsung/include/plat/map-s5p.h

index 86d8085c44bfcf1af606f2e1dc134eaad97ceed9..c88325d56743e1be509fdf9c1ce72298f6e94762 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
  *             http://www.samsung.com/
  *
- * EXYNOS4 - Memory map definitions
+ * EXYNOS - Memory map definitions
  *
  * 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
 
 #include <plat/map-base.h>
 
-/*
- * EXYNOS4 UART offset is 0x10000 but the older S5P SoCs are 0x400.
- * So need to define it, and here is to avoid redefinition warning.
- */
-#define S3C_UART_OFFSET                        (0x10000)
-
 #include <plat/map-s5p.h>
 
 #define EXYNOS_PA_CHIPID               0x10000000
@@ -30,7 +24,6 @@
 #define EXYNOS4_PA_DMC1                        0x10410000
 
 #define EXYNOS4_PA_COREPERI            0x10500000
-#define EXYNOS4_PA_L2CC                        0x10502000
 
 #define EXYNOS4_PA_SROMC               0x12570000
 #define EXYNOS5_PA_SROMC               0x12250000
index 444793f0f5f1bb8eef5a0edab795e01eac057b78..adc39043aa218f1ddcff4496c0775a22033cabdf 100644 (file)
 #define __ASM_ARCH_MAP_H
 
 #include <plat/map-base.h>
-
-/*
- * S3C2410 UART offset is 0x4000 but the other SoCs are 0x400.
- * So need to define it, and here is to avoid redefinition warning.
- */
-#define S3C_UART_OFFSET                (0x4000)
-
 #include <plat/map-s3c.h>
 
 /*
@@ -34,9 +27,6 @@
 #define S3C2410_PA_MEMCTRL     (0x48000000)
 #define S3C24XX_SZ_MEMCTRL     SZ_1M
 
-/* UARTs */
-#define S3C_VA_UARTx(uart)     (S3C_VA_UART + ((uart * S3C_UART_OFFSET)))
-
 /* Timers */
 #define S3C2410_PA_TIMER       (0x51000000)
 #define S3C24XX_SZ_TIMER       SZ_1M
 
 #define S3C_PA_FB          S3C2443_PA_FB
 #define S3C_PA_IIC          S3C2410_PA_IIC
-#define S3C_PA_UART        S3C24XX_PA_UART
 #define S3C_PA_USBHOST S3C2410_PA_USBHOST
 #define S3C_PA_HSMMC0      S3C2416_PA_HSMMC0
 #define S3C_PA_HSMMC1      S3C2443_PA_HSMMC
index c0c70a895ca832e865f8c0b820e0fd9c85012cf2..6feedd47d87543d8cc802f9e8d8679cc9df07b55 100644 (file)
 #define S3C2410_PA_UART                (0x50000000)
 #define S3C24XX_PA_UART                S3C2410_PA_UART
 
-#ifndef S3C_UART_OFFSET
-#define S3C_UART_OFFSET                (0x400)
-#endif
-
 /*
  * GPIO ports
  *
index f5cf2bd208e0c1b21179c68d0ff2bab1b39eb531..4ec9a7050185f4a69fcd506c72a898d43a2be30a 100644 (file)
@@ -23,7 +23,6 @@
 #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)
-#define S5P_VA_TWD             S5P_VA_COREPERI(0x600)
 
 #define VA_VIC(x)              (S3C_VA_IRQ + ((x) * 0x10000))
 #define VA_VIC0                        VA_VIC(0)
 #define VA_VIC2                        VA_VIC(2)
 #define VA_VIC3                        VA_VIC(3)
 
-#ifndef S3C_UART_OFFSET
-#define S3C_UART_OFFSET                (0x400)
-#endif
-
 #include <plat/map-s3c.h>
 
 #endif /* __ASM_PLAT_MAP_S5P_H */