ARM: SAMSUNG: remove the rest of local uncompress.h files
Subsystems (3)
v2 cover ARM: SAMSUNG: remove the rest of local uncompress.h files
Two patches from Sachin Kamat already removed the Exynos-uncompress.h . But in fact all Samsung platforms can use the generic uncompress code without needing local implementation.
Therefore this two-part series removes the rest of the uncompress.h files from all Samsung platforms.
Tested on a s3c2416 and s3c2442 based machine.
The patches should be applied on top of the patches from Sachin Kamat in the v3.15-next/cleanup-samsung branch in the linux-samsung.git
Heiko Stuebner (2):
ARM: SAMSUNG: use generic uncompress.h
ARM: SAMSUNG: remove all custom uncompress.h
arch/arm/Kconfig.debug | 4 +- arch/arm/mach-s3c24xx/include/mach/uncompress.h | 57 -------- arch/arm/mach-s3c64xx/include/mach/uncompress.h | 31 ----- arch/arm/mach-s5p64x0/include/mach/uncompress.h | 34 ----- arch/arm/mach-s5pc100/include/mach/uncompress.h | 30 ---- arch/arm/mach-s5pv210/include/mach/uncompress.h | 28 ---- arch/arm/plat-samsung/include/plat/uncompress.h | 175 ------------------------ 7 files changed, 2 insertions(+), 357 deletions(-) delete mode 100644 arch/arm/mach-s3c24xx/include/mach/uncompress.h delete mode 100644 arch/arm/mach-s3c64xx/include/mach/uncompress.h delete mode 100644 arch/arm/mach-s5p64x0/include/mach/uncompress.h delete mode 100644 arch/arm/mach-s5pc100/include/mach/uncompress.h delete mode 100644 arch/arm/mach-s5pv210/include/mach/uncompress.h delete mode 100644 arch/arm/plat-samsung/include/plat/uncompress.h
Signature · 1 line
1.8.5.3
PATCH v2 1/2 ARM: SAMSUNG: use generic uncompress.h
All Samsung platforms, not only Exynos, use the custom uncompress.h simply to setup the uart for the initial debug output. This can also be done using the generic uncompress.h.
--- arch/arm/Kconfig.debug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/Kconfig.debug +2 -2
@@ -1145,7 +1145,7 @@ config DEBUG_UART_8250_FLOW_CONTROL config DEBUG_UNCOMPRESS bool - depends on ARCH_MULTIPLATFORM || ARCH_MSM || ARCH_EXYNOS + depends on ARCH_MULTIPLATFORM || ARCH_MSM || PLAT_SAMSUNG default y if DEBUG_LL && !DEBUG_OMAP2PLUS_UART && \ (!DEBUG_TEGRA_UART || !ZBOOT_ROM) help
@@ -1162,7 +1162,7 @@ config DEBUG_UNCOMPRESS config UNCOMPRESS_INCLUDE string default "debug/uncompress.h" if ARCH_MULTIPLATFORM || ARCH_MSM || \ - ARCH_EXYNOS + PLAT_SAMSUNG default "mach/uncompress.h" config EARLY_PRINTK
Signature · 1 line
1.8.5.3
PATCH v2 2/2 ARM: SAMSUNG: remove all custom uncompress.h
In reply to Heiko StübnerAll Samsung platforms now use the generic uncompress.h so all the custom ones can be removed.
--- arch/arm/mach-s3c24xx/include/mach/uncompress.h | 57 -------- arch/arm/mach-s3c64xx/include/mach/uncompress.h | 31 ----- arch/arm/mach-s5p64x0/include/mach/uncompress.h | 34 ----- arch/arm/mach-s5pc100/include/mach/uncompress.h | 30 ---- arch/arm/mach-s5pv210/include/mach/uncompress.h | 28 ---- arch/arm/plat-samsung/include/plat/uncompress.h | 175 ------------------------ 6 files changed, 355 deletions(-) delete mode 100644 arch/arm/mach-s3c24xx/include/mach/uncompress.h delete mode 100644 arch/arm/mach-s3c64xx/include/mach/uncompress.h delete mode 100644 arch/arm/mach-s5p64x0/include/mach/uncompress.h delete mode 100644 arch/arm/mach-s5pc100/include/mach/uncompress.h delete mode 100644 arch/arm/mach-s5pv210/include/mach/uncompress.h delete mode 100644 arch/arm/plat-samsung/include/plat/uncompress.h
arch/arm/mach-s3c24xx/include/mach/uncompress.h deleted +0 -57
@@ -1,57 +0,0 @@ -/* arch/arm/mach-s3c2410/include/mach/uncompress.h -* -* Copyright (c) 2003-2007 Simtec Electronics -* http://armlinux.simtec.co.uk/ -* Ben Dooks <[email protected]> -* -* S3C2410 - uncompress code -* -* 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_ARCH_UNCOMPRESS_H -#define __ASM_ARCH_UNCOMPRESS_H - -#include <mach/regs-gpio.h> -#include <mach/map.h> - -/* working in physical space... */ -#undef S3C2410_GPIOREG -#define S3C2410_GPIOREG (x) ((S3C24XX_PA_GPIO + (x))) - -#include <plat/uncompress.h> - -static inline int is_arm926 (void ) -{ -unsigned int cpuid; - - asmvolatile ("mrc p15, 0, %0, c1, c0, 0" :"=r" (cpuid)); - -return ((cpuid &0xff0 ) ==0x260 ); -} - -static void arch_detect_cpu (void ) -{ -unsigned int cpuid; - - cpuid = *((volatile unsigned int *)S3C2410_GSTATUS1 ); - cpuid &=S3C2410_GSTATUS1_IDMASK ; - -if (is_arm926 () || cpuid ==S3C2410_GSTATUS1_2440 || - cpuid ==S3C2410_GSTATUS1_2442 || - cpuid ==S3C2410_GSTATUS1_2416 || - cpuid ==S3C2410_GSTATUS1_2450 ) { - fifo_mask =S3C2440_UFSTAT_TXMASK ; - fifo_max =63 <<S3C2440_UFSTAT_TXSHIFT ; - }else { - fifo_mask =S3C2410_UFSTAT_TXMASK ; - fifo_max =15 <<S3C2410_UFSTAT_TXSHIFT ; - } - - uart_base = (volatile u8 *)S3C_PA_UART + - (S3C_UART_OFFSET *CONFIG_S3C_LOWLEVEL_UART_PORT ); -} - -#endif /* __ASM_ARCH_UNCOMPRESS_H */
arch/arm/mach-s3c64xx/include/mach/uncompress.h deleted +0 -31
@@ -1,31 +0,0 @@ -/* arch/arm/mach-s3c6400/include/mach/uncompress.h -* -* Copyright 2008 Openmoko, Inc. -* Copyright 2008 Simtec Electronics -* http://armlinux.simtec.co.uk/ -* Ben Dooks <[email protected]> -* -* S3C6400 - uncompress code -* -* 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_ARCH_UNCOMPRESS_H -#define __ASM_ARCH_UNCOMPRESS_H - -#include <mach/map.h> -#include <plat/uncompress.h> - -static void arch_detect_cpu (void ) -{ -/* we do not need to do any cpu detection here at the moment. */ - fifo_mask =S3C2440_UFSTAT_TXMASK ; - fifo_max =63 <<S3C2440_UFSTAT_TXSHIFT ; - - uart_base = (volatile u8 *)S3C_PA_UART + - (S3C_UART_OFFSET *CONFIG_S3C_LOWLEVEL_UART_PORT ); -} - -#endif /* __ASM_ARCH_UNCOMPRESS_H */
arch/arm/mach-s5p64x0/include/mach/uncompress.h deleted +0 -34
@@ -1,34 +0,0 @@ -/* linux/arch/arm/mach-s5p64x0/include/mach/uncompress.h -* -* Copyright (c) 2009-2010 Samsung Electronics Co., Ltd. -* http://www.samsung.com -* -* S5P64X0 - uncompress code -* -* 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_ARCH_UNCOMPRESS_H -#define __ASM_ARCH_UNCOMPRESS_H - -#include <mach/map.h> -#include <plat/uncompress.h> - -static void arch_detect_cpu (void ) -{ -unsigned int chipid; - - chipid = *(const volatile unsigned int __force *)0xE0100118 ; - -if ((chipid &0xff000 ) ==0x50000 ) - uart_base = (volatile u8 *)S5P6450_PA_UART (CONFIG_S3C_LOWLEVEL_UART_PORT ); -else - uart_base = (volatile u8 *)S5P6440_PA_UART (CONFIG_S3C_LOWLEVEL_UART_PORT ); - - fifo_mask =S3C2440_UFSTAT_TXMASK ; - fifo_max =63 <<S3C2440_UFSTAT_TXSHIFT ; -} - -#endif /* __ASM_ARCH_UNCOMPRESS_H */
arch/arm/mach-s5pc100/include/mach/uncompress.h deleted +0 -30
@@ -1,30 +0,0 @@ -/* arch/arm/mach-s5pc100/include/mach/uncompress.h -* -* Copyright 2009 Samsung Electronics Co. -* Byungho Min <[email protected]> -* -* S5PC100 - uncompress code -* -* Based on mach-s3c6400/include/mach/uncompress.h -* -* 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_ARCH_UNCOMPRESS_H -#define __ASM_ARCH_UNCOMPRESS_H - -#include <mach/map.h> -#include <plat/uncompress.h> - -static void arch_detect_cpu (void ) -{ -/* we do not need to do any cpu detection here at the moment. */ - fifo_mask =S3C2440_UFSTAT_TXMASK ; - fifo_max =63 <<S3C2440_UFSTAT_TXSHIFT ; - - uart_base = (volatile u8 *)S5P_PA_UART (CONFIG_S3C_LOWLEVEL_UART_PORT ); -} - -#endif /* __ASM_ARCH_UNCOMPRESS_H */
arch/arm/mach-s5pv210/include/mach/uncompress.h deleted +0 -28
@@ -1,28 +0,0 @@ -/* linux/arch/arm/mach-s5pv210/include/mach/uncompress.h -* -* Copyright (c) 2010 Samsung Electronics Co., Ltd. -* http://www.samsung.com/ -* -* S5PV210 - uncompress code -* -* 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_ARCH_UNCOMPRESS_H -#define __ASM_ARCH_UNCOMPRESS_H - -#include <mach/map.h> -#include <plat/uncompress.h> - -static void arch_detect_cpu (void ) -{ -/* we do not need to do any cpu detection here at the moment. */ - fifo_mask =S5PV210_UFSTAT_TXMASK ; - fifo_max =63 <<S5PV210_UFSTAT_TXSHIFT ; - - uart_base = (volatile u8 *)S5P_PA_UART (CONFIG_S3C_LOWLEVEL_UART_PORT ); -} - -#endif /* __ASM_ARCH_UNCOMPRESS_H */
arch/arm/plat-samsung/include/plat/uncompress.h deleted +0 -175
175 lines not on this page · raw message
Signature · 1 line
1.8.5.3
v2 cover ARM: SAMSUNG: remove the rest of local uncompress.h files
In reply to Heiko StübnerQuoted 34 lines · Heiko St?bner
Two patches from Sachin Kamat already removed the
Exynos-uncompress.h. But in fact all Samsung platforms can use the generic uncompress code without needing local implementation.Therefore this two-part series removes the rest of the
uncompress.hfiles from all Samsung platforms.Tested on a s3c2416 and s3c2442 based machine.
The patches should be applied on top of the patches from Sachin Kamat in the v3.15-next/cleanup-samsung branch in the linux-samsung.git
Heiko Stuebner (2):
ARM: SAMSUNG: use genericuncompress.h
ARM: SAMSUNG: remove all customuncompress.harch/arm/Kconfig.debug | 4 +- arch/arm/mach-s3c24xx/include/mach/uncompress.h | 57 -------- arch/arm/mach-s3c64xx/include/mach/uncompress.h | 31 ----- arch/arm/mach-s5p64x0/include/mach/uncompress.h | 34 ----- arch/arm/mach-s5pc100/include/mach/uncompress.h | 30 ---- arch/arm/mach-s5pv210/include/mach/uncompress.h | 28 ---- arch/arm/plat-samsung/include/plat/uncompress.h | 175 ------------------- ----- 7 files changed, 2 insertions(+), 357 deletions(-) delete mode 100644 arch/arm/mach-s3c24xx/include/mach/uncompress.h delete mode 100644 arch/arm/mach-s3c64xx/include/mach/uncompress.h delete mode 100644 arch/arm/mach-s5p64x0/include/mach/uncompress.h delete mode 100644 arch/arm/mach-s5pc100/include/mach/uncompress.h delete mode 100644 arch/arm/mach-s5pv210/include/mach/uncompress.h delete mode 100644 arch/arm/plat-samsung/include/plat/uncompress.h
Quoted 2 lines
--
1.8.5.3
Looks good to me, will apply.
Thanks,
Kukjin