Skip to content
Snippets Groups Projects
Commit 71b9114d authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Krzysztof Kozlowski
Browse files

ARM: s3c: move into a common directory


s3c24xx and s3c64xx have a lot in common, but are split across three
separate directories, which makes the interaction of the header files
more complicated than necessary.

Move all three directories into a new mach-s3c, with a minimal
set of changes to each file.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
[krzk: Rebase, add s3c24xx and s3c64xx suffix to several files, add SPDX
       headers to new files, remove plat-samsung from MAINTAINERS]
Co-developed-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
https://lore.kernel.org/r/20200806182059.2431-39-krzk@kernel.org
parent a3814e55
No related branches found
No related tags found
No related merge requests found
Showing
with 28 additions and 10 deletions
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include <linux/soc/samsung/s3c-cpufreq-core.h> #include <linux/soc/samsung/s3c-cpufreq-core.h>
#include "regs-mem.h" #include "regs-mem-s3c24xx.h"
/** /**
* s3c2410_cpufreq_setrefresh - set SDRAM refresh value * s3c2410_cpufreq_setrefresh - set SDRAM refresh value
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
#include <plat/cpu.h> #include <plat/cpu.h>
#include <mach/map.h> #include <mach/map.h>
#include "regs-sys.h" #include "regs-sys-s3c64xx.h"
#include "regs-syscon-power.h" #include "regs-syscon-power-s3c64xx.h"
static int s3c64xx_enter_idle(struct cpuidle_device *dev, static int s3c64xx_enter_idle(struct cpuidle_device *dev,
struct cpuidle_driver *drv, struct cpuidle_driver *drv,
......
File moved
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <plat/devs.h> #include <plat/devs.h>
#include <plat/gpio-cfg.h> #include <plat/gpio-cfg.h>
#include "backlight.h" #include "backlight-s3c64xx.h"
struct samsung_bl_drvdata { struct samsung_bl_drvdata {
struct platform_pwm_backlight_data plat_data; struct platform_pwm_backlight_data plat_data;
......
File moved
File moved
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
* *
* Samsung framebuffer driver core functions * Samsung framebuffer driver core functions
*/ */
#ifndef __ASM_PLAT_FB_CORE_H #ifndef __ASM_PLAT_FB_CORE_S3C24XX_H
#define __ASM_PLAT_FB_CORE_H __FILE__ #define __ASM_PLAT_FB_CORE_S3C24XX_H __FILE__
/* /*
* These functions are only for use with the core support code, such as * These functions are only for use with the core support code, such as
...@@ -21,4 +21,4 @@ static inline void s3c_fb_setname(char *name) ...@@ -21,4 +21,4 @@ static inline void s3c_fb_setname(char *name)
#endif #endif
} }
#endif /* __ASM_PLAT_FB_CORE_H */ #endif /* __ASM_PLAT_FB_CORE_S3C24XX_H */
File moved
File moved
/* SPDX-License-Identifier: GPL-2.0 */
#ifdef CONFIG_ARCH_S3C24XX
#include "dma-s3c24xx.h"
#endif
#ifdef CONFIG_ARCH_S3C64XX
#include "dma-s3c64xx.h"
#endif
/* SPDX-License-Identifier: GPL-2.0 */
#ifdef CONFIG_ARCH_S3C24XX
#include "gpio-samsung-s3c24xx.h"
#endif
#ifdef CONFIG_ARCH_S3C64XX
#include "gpio-samsung-s3c64xx.h"
#endif
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
* S3C2410 - hardware * S3C2410 - hardware
*/ */
#ifndef __ASM_ARCH_HARDWARE_H #ifndef __ASM_ARCH_HARDWARE_S3C24XX_H
#define __ASM_ARCH_HARDWARE_H #define __ASM_ARCH_HARDWARE_S3C24XX_H
extern unsigned int s3c2410_modify_misccr(unsigned int clr, unsigned int chg); extern unsigned int s3c2410_modify_misccr(unsigned int clr, unsigned int chg);
#endif /* __ASM_ARCH_HARDWARE_H */ #endif /* __ASM_ARCH_HARDWARE_S3C24XX_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment