Commit 71b9114d authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Krzysztof Kozlowski

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
......@@ -2220,8 +2220,8 @@ ARM/OPENMOKO NEO FREERUNNER (GTA02) MACHINE SUPPORT
L: openmoko-kernel@lists.openmoko.org (subscribers-only)
S: Orphan
W: http://wiki.openmoko.org/wiki/Neo_FreeRunner
F: arch/arm/mach-s3c24xx/gta02.h
F: arch/arm/mach-s3c24xx/mach-gta02.c
F: arch/arm/mach-s3c/gta02.h
F: arch/arm/mach-s3c/mach-gta02.c
ARM/Orion SoC/Technologic Systems TS-78xx platform support
M: Alexander Clouter <alex@digriz.org.uk>
......@@ -2410,10 +2410,8 @@ F: arch/arm/boot/dts/exynos*
F: arch/arm/boot/dts/s3c*
F: arch/arm/boot/dts/s5p*
F: arch/arm/mach-exynos*/
F: arch/arm/mach-s3c24*/
F: arch/arm/mach-s3c64xx/
F: arch/arm/mach-s3c/
F: arch/arm/mach-s5p*/
F: arch/arm/plat-samsung/
F: arch/arm64/boot/dts/exynos/
F: drivers/*/*/*s3c24*
F: drivers/*/*s3c24*
......@@ -15839,9 +15837,9 @@ SIMTEC EB2410ITX (BAST)
M: Simtec Linux Team <linux@simtec.co.uk>
S: Supported
W: http://www.simtec.co.uk/products/EB2410ITX/
F: arch/arm/mach-s3c24xx/bast-ide.c
F: arch/arm/mach-s3c24xx/bast-irq.c
F: arch/arm/mach-s3c24xx/mach-bast.c
F: arch/arm/mach-s3c/bast-ide.c
F: arch/arm/mach-s3c/bast-irq.c
F: arch/arm/mach-s3c/mach-bast.c
SIOX
M: Thorsten Scherer <t.scherer@eckelmann.de>
......@@ -18760,7 +18758,7 @@ F: Documentation/devicetree/bindings/mfd/wm831x.txt
F: Documentation/devicetree/bindings/regulator/wlf,arizona.yaml
F: Documentation/devicetree/bindings/sound/wlf,arizona.yaml
F: Documentation/hwmon/wm83??.rst
F: arch/arm/mach-s3c64xx/mach-crag6410*
F: arch/arm/mach-s3c/mach-crag6410*
F: drivers/clk/clk-wm83*.c
F: drivers/extcon/extcon-arizona.c
F: drivers/gpio/gpio-*wm*.c
......
......@@ -637,7 +637,6 @@ source "arch/arm/mach-dove/Kconfig"
source "arch/arm/mach-ep93xx/Kconfig"
source "arch/arm/mach-exynos/Kconfig"
source "arch/arm/plat-samsung/Kconfig"
source "arch/arm/mach-footbridge/Kconfig"
......@@ -710,9 +709,7 @@ source "arch/arm/mach-realview/Kconfig"
source "arch/arm/mach-rockchip/Kconfig"
source "arch/arm/mach-s3c24xx/Kconfig"
source "arch/arm/mach-s3c64xx/Kconfig"
source "arch/arm/mach-s3c/Kconfig"
source "arch/arm/mach-s5pv210/Kconfig"
......
......@@ -209,8 +209,7 @@ machine-$(CONFIG_ARCH_REALTEK) += realtek
machine-$(CONFIG_ARCH_REALVIEW) += realview
machine-$(CONFIG_ARCH_ROCKCHIP) += rockchip
machine-$(CONFIG_ARCH_RPC) += rpc
machine-$(CONFIG_ARCH_S3C24XX) += s3c24xx
machine-$(CONFIG_ARCH_S3C64XX) += s3c64xx
machine-$(CONFIG_PLAT_SAMSUNG) += s3c
machine-$(CONFIG_ARCH_S5PV210) += s5pv210
machine-$(CONFIG_ARCH_SA1100) += sa1100
machine-$(CONFIG_ARCH_RENESAS) += shmobile
......@@ -233,10 +232,8 @@ machine-$(CONFIG_PLAT_SPEAR) += spear
# Platform directory name. This list is sorted alphanumerically
# by CONFIG_* macro name.
plat-$(CONFIG_ARCH_OMAP) += omap
plat-$(CONFIG_ARCH_S3C64XX) += samsung
plat-$(CONFIG_PLAT_ORION) += orion
plat-$(CONFIG_PLAT_PXA) += pxa
plat-$(CONFIG_PLAT_S3C24XX) += samsung
plat-$(CONFIG_PLAT_VERSATILE) += versatile
ifeq ($(CONFIG_ARCH_EBSA110),y)
......
......@@ -2,6 +2,9 @@
#
# Copyright 2009 Simtec Electronics
source "arch/arm/mach-s3c/Kconfig.s3c24xx"
source "arch/arm/mach-s3c/Kconfig.s3c64xx"
config PLAT_SAMSUNG
bool
depends on PLAT_S3C24XX || ARCH_S3C64XX
......
......@@ -2,9 +2,16 @@
#
# Copyright 2009 Simtec Electronics
ccflags-$(CONFIG_ARCH_S3C64XX) := -I$(srctree)/arch/arm/mach-s3c64xx/include
ccflags-$(CONFIG_ARCH_MULTIPLATFORM) += -I$(srctree)/$(src)/include
ifdef CONFIG_ARCH_S3C24XX
include $(src)/Makefile.s3c24xx
endif
ifdef CONFIG_ARCH_S3C64XX
include $(src)/Makefile.s3c64xx
endif
# Objects we always build independent of SoC choice
obj-y += init.o cpu.o
......
......@@ -7,7 +7,7 @@
# core
obj-y += common.o
obj-y += s3c24xx.o
obj-y += irq-s3c24xx.o
obj-$(CONFIG_SPI_S3C24XX_FIQ) += irq-s3c24xx-fiq.o
obj-$(CONFIG_SPI_S3C24XX_FIQ) += irq-s3c24xx-fiq-exports.o
......@@ -33,12 +33,12 @@ obj-$(CONFIG_CPU_S3C2443) += s3c2443.o
# PM
obj-$(CONFIG_PM) += pm.o
obj-$(CONFIG_PM_SLEEP) += irq-pm.o sleep.o
obj-$(CONFIG_PM) += pm-s3c24xx.o
obj-$(CONFIG_PM_SLEEP) += irq-pm-s3c24xx.o sleep-s3c24xx.o
# common code
obj-$(CONFIG_ARM_S3C24XX_CPUFREQ) += cpufreq-utils.o
obj-$(CONFIG_ARM_S3C24XX_CPUFREQ) += cpufreq-utils-s3c24xx.o
obj-$(CONFIG_S3C2410_IOTIMING) += iotiming-s3c2410.o
obj-$(CONFIG_S3C2412_IOTIMING) += iotiming-s3c2412.o
......@@ -83,7 +83,7 @@ obj-$(CONFIG_MACH_SMDK2443) += mach-smdk2443.o
# common bits of machine support
obj-$(CONFIG_S3C24XX_SMDK) += common-smdk.o
obj-$(CONFIG_S3C24XX_SMDK) += common-smdk-s3c24xx.o
obj-$(CONFIG_S3C24XX_SIMTEC_AUDIO) += simtec-audio.o
obj-$(CONFIG_S3C24XX_SIMTEC_NOR) += simtec-nor.o
obj-$(CONFIG_S3C24XX_SIMTEC_PM) += simtec-pm.o
......@@ -96,7 +96,7 @@ obj-$(CONFIG_MACH_OSIRIS_DVS) += mach-osiris-dvs.o
# device setup
obj-$(CONFIG_S3C2416_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o
obj-$(CONFIG_S3C2443_SETUP_SPI) += setup-spi.o
obj-$(CONFIG_ARCH_S3C24XX) += setup-i2c.o
obj-$(CONFIG_S3C24XX_SETUP_TS) += setup-ts.o
obj-$(CONFIG_S3C2416_SETUP_SDHCI_GPIO) += setup-sdhci-gpio-s3c24xx.o
obj-$(CONFIG_S3C2443_SETUP_SPI) += setup-spi-s3c24xx.o
obj-$(CONFIG_ARCH_S3C24XX) += setup-i2c-s3c24xx.o
obj-$(CONFIG_S3C24XX_SETUP_TS) += setup-ts-s3c24xx.o
......@@ -8,17 +8,17 @@ asflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include -I$(srctree)
# PM
obj-$(CONFIG_PM) += pm.o
obj-$(CONFIG_PM_SLEEP) += sleep.o
obj-$(CONFIG_CPU_IDLE) += cpuidle.o
obj-$(CONFIG_PM) += pm-s3c64xx.o
obj-$(CONFIG_PM_SLEEP) += sleep-s3c64xx.o
obj-$(CONFIG_CPU_IDLE) += cpuidle-s3c64xx.o
ifdef CONFIG_SAMSUNG_ATAGS
obj-$(CONFIG_PM_SLEEP) += irq-pm.o
obj-$(CONFIG_PM_SLEEP) += irq-pm-s3c64xx.o
# Core
obj-y += common.o
obj-y += s3c64xx.o
obj-$(CONFIG_CPU_S3C6400) += s3c6400.o
obj-$(CONFIG_CPU_S3C6410) += s3c6410.o
......@@ -28,21 +28,21 @@ obj-$(CONFIG_S3C64XX_PL080) += pl080.o
# Device support
obj-y += dev-uart.o
obj-y += dev-audio.o
obj-y += dev-uart-s3c64xx.o
obj-y += dev-audio-s3c64xx.o
# Device setup
obj-$(CONFIG_S3C64XX_SETUP_FB_24BPP) += setup-fb-24bpp.o
obj-$(CONFIG_S3C64XX_SETUP_I2C0) += setup-i2c0.o
obj-$(CONFIG_S3C64XX_SETUP_I2C1) += setup-i2c1.o
obj-$(CONFIG_S3C64XX_SETUP_IDE) += setup-ide.o
obj-$(CONFIG_S3C64XX_SETUP_KEYPAD) += setup-keypad.o
obj-$(CONFIG_S3C64XX_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o
obj-$(CONFIG_S3C64XX_SETUP_SPI) += setup-spi.o
obj-$(CONFIG_S3C64XX_SETUP_USB_PHY) += setup-usb-phy.o
obj-$(CONFIG_S3C64XX_SETUP_FB_24BPP) += setup-fb-24bpp-s3c64xx.o
obj-$(CONFIG_S3C64XX_SETUP_I2C0) += setup-i2c0-s3c64xx.o
obj-$(CONFIG_S3C64XX_SETUP_I2C1) += setup-i2c1-s3c64xx.o
obj-$(CONFIG_S3C64XX_SETUP_IDE) += setup-ide-s3c64xx.o
obj-$(CONFIG_S3C64XX_SETUP_KEYPAD) += setup-keypad-s3c64xx.o
obj-$(CONFIG_S3C64XX_SETUP_SDHCI_GPIO) += setup-sdhci-gpio-s3c64xx.o
obj-$(CONFIG_S3C64XX_SETUP_SPI) += setup-spi-s3c64xx.o
obj-$(CONFIG_S3C64XX_SETUP_USB_PHY) += setup-usb-phy-s3c64xx.o
obj-$(CONFIG_SAMSUNG_DEV_BACKLIGHT) += dev-backlight.o
obj-$(CONFIG_SAMSUNG_DEV_BACKLIGHT) += dev-backlight-s3c64xx.o
# Machine support
......
......@@ -6,8 +6,8 @@
* Samsung CF-ATA Controller core functions
*/
#ifndef __ASM_PLAT_ATA_CORE_H
#define __ASM_PLAT_ATA_CORE_H __FILE__
#ifndef __ASM_PLAT_ATA_CORE_S3C64XX_H
#define __ASM_PLAT_ATA_CORE_S3C64XX_H __FILE__
/* These functions are only for use with the core support code, such as
* the cpu specific initialisation code
......@@ -21,4 +21,4 @@ static inline void s3c_cfcon_setname(char *name)
#endif
}
#endif /* __ASM_PLAT_ATA_CORE_H */
#endif /* __ASM_PLAT_ATA_CORE_S3C64XX_H */
......@@ -4,8 +4,8 @@
* http://www.samsung.com
*/
#ifndef __ASM_PLAT_BACKLIGHT_H
#define __ASM_PLAT_BACKLIGHT_H __FILE__
#ifndef __ASM_PLAT_BACKLIGHT_S3C64XX_H
#define __ASM_PLAT_BACKLIGHT_S3C64XX_H __FILE__
/* samsung_bl_gpio_info - GPIO info for PWM Backlight control
* @no: GPIO number for PWM timer out
......@@ -19,4 +19,4 @@ struct samsung_bl_gpio_info {
extern void __init samsung_bl_set(struct samsung_bl_gpio_info *gpio_info,
struct platform_pwm_backlight_data *bl_data);
#endif /* __ASM_PLAT_BACKLIGHT_H */
#endif /* __ASM_PLAT_BACKLIGHT_S3C64XX_H */
......@@ -40,7 +40,7 @@
#include <plat/devs.h>
#include <plat/pm.h>
#include "common-smdk.h"
#include "common-smdk-s3c24xx.h"
/* LED devices */
......
......@@ -17,7 +17,7 @@
#include <linux/soc/samsung/s3c-cpufreq-core.h>
#include "regs-mem.h"
#include "regs-mem-s3c24xx.h"
/**
* s3c2410_cpufreq_setrefresh - set SDRAM refresh value
......
......@@ -16,8 +16,8 @@
#include <plat/cpu.h>
#include <mach/map.h>
#include "regs-sys.h"
#include "regs-syscon-power.h"
#include "regs-sys-s3c64xx.h"
#include "regs-syscon-power-s3c64xx.h"
static int s3c64xx_enter_idle(struct cpuidle_device *dev,
struct cpuidle_driver *drv,
......
......@@ -14,7 +14,7 @@
#include <plat/devs.h>
#include <plat/gpio-cfg.h>
#include "backlight.h"
#include "backlight-s3c64xx.h"
struct samsung_bl_drvdata {
struct platform_pwm_backlight_data plat_data;
......
......@@ -5,8 +5,8 @@
*
* Samsung framebuffer driver core functions
*/
#ifndef __ASM_PLAT_FB_CORE_H
#define __ASM_PLAT_FB_CORE_H __FILE__
#ifndef __ASM_PLAT_FB_CORE_S3C24XX_H
#define __ASM_PLAT_FB_CORE_S3C24XX_H __FILE__
/*
* 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)
#endif
}
#endif /* __ASM_PLAT_FB_CORE_H */
#endif /* __ASM_PLAT_FB_CORE_S3C24XX_H */
/* 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 @@
* S3C2410 - hardware
*/
#ifndef __ASM_ARCH_HARDWARE_H
#define __ASM_ARCH_HARDWARE_H
#ifndef __ASM_ARCH_HARDWARE_S3C24XX_H
#define __ASM_ARCH_HARDWARE_S3C24XX_H
extern unsigned int s3c2410_modify_misccr(unsigned int clr, unsigned int chg);
#endif /* __ASM_ARCH_HARDWARE_H */
#endif /* __ASM_ARCH_HARDWARE_S3C24XX_H */
......@@ -7,8 +7,8 @@
* (C) 2003 Simtec Electronics
*/
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H
#ifndef __ASM_ARM_ARCH_IO_S3C24XX_H
#define __ASM_ARM_ARCH_IO_S3C24XX_H
#include <plat/map-base.h>
......
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2020 Krzysztof Kozlowski <krzk@kernel.org>
*/
#ifdef CONFIG_ARCH_S3C24XX
#include "io-s3c24xx.h"
#endif
/* SPDX-License-Identifier: GPL-2.0 */
#ifdef CONFIG_ARCH_S3C24XX
#include "irqs-s3c24xx.h"
#endif
#ifdef CONFIG_ARCH_S3C64XX
#include "irqs-s3c64xx.h"
#endif
/* SPDX-License-Identifier: GPL-2.0 */
#ifdef CONFIG_ARCH_S3C24XX
#include "map-s3c24xx.h"
#endif
#ifdef CONFIG_ARCH_S3C64XX
#include "map-s3c64xx.h"
#endif
......@@ -11,7 +11,7 @@
#include <linux/io.h>
#include "regs-clock.h"
#include "regs-irq.h"
#include "regs-irq-s3c24xx.h"
#include <mach/irqs.h>
static inline void s3c_pm_debug_init_uart(void)
......
/* SPDX-License-Identifier: GPL-2.0 */
#ifdef CONFIG_ARCH_S3C24XX
#include "pm-core-s3c24xx.h"
#endif
#ifdef CONFIG_ARCH_S3C64XX
#include "pm-core-s3c64xx.h"
#endif
/* SPDX-License-Identifier: GPL-2.0 */
#ifdef CONFIG_ARCH_S3C24XX
#include "regs-clock-s3c24xx.h"
#endif
#ifdef CONFIG_ARCH_S3C64XX
#include "regs-clock-s3c64xx.h"
#endif
/* SPDX-License-Identifier: GPL-2.0 */
#ifdef CONFIG_ARCH_S3C24XX
#include "regs-gpio-s3c24xx.h"
#endif
#ifdef CONFIG_ARCH_S3C64XX
#include "regs-gpio-s3c64xx.h"
#endif
/* SPDX-License-Identifier: GPL-2.0 */
#ifdef CONFIG_ARCH_S3C24XX
#include "regs-irq-s3c24xx.h"
#endif
#ifdef CONFIG_ARCH_S3C64XX
#include "regs-irq-s3c64xx.h"
#endif
......@@ -5,8 +5,8 @@
* Samsung RTC Controller core functions
*/
#ifndef __RTC_CORE_H
#define __RTC_CORE_H __FILE__
#ifndef __RTC_CORE_S3C24XX_H
#define __RTC_CORE_S3C24XX_H __FILE__
/* These functions are only for use with the core support code, such as
* the cpu specific initialisation code
......@@ -20,4 +20,4 @@ static inline void s3c_rtc_setname(char *name)
s3c_device_rtc.name = name;
}
#endif /* __RTC_CORE_H */
#endif /* __RTC_CORE_S3C24XX_H */
......@@ -19,7 +19,7 @@
#include <linux/soc/samsung/s3c-cpufreq-core.h>
#include "regs-mem.h"
#include "regs-mem-s3c24xx.h"
#define print_ns(x) ((x) / 10), ((x) % 10)
......
......@@ -44,7 +44,7 @@
#include <linux/mtd/map.h>
#include <linux/mtd/physmap.h>
#include "common.h"
#include "s3c24xx.h"
static struct resource amlm5900_nor_resource =
DEFINE_RES_MEM(0x00000000, SZ_16M);
......
......@@ -44,7 +44,7 @@
#include <linux/platform_data/asoc-s3c24xx_simtec.h>
#include "anubis.h"
#include "common.h"
#include "s3c24xx.h"
#include "simtec.h"
#define COPYRIGHT ", Copyright 2005-2009 Simtec Electronics"
......
......@@ -44,8 +44,8 @@
#include <mach/regs-gpio.h>
#include <mach/gpio-samsung.h>
#include "common.h"
#include "regs-modem.h"
#include "s3c64xx.h"
#include "regs-modem-s3c64xx.h"
/* DM9000 */
#define ANW6410_PA_DM9000 (0x18000000)
......
......@@ -42,7 +42,7 @@
#include <plat/cpu.h>
#include <linux/platform_data/mmc-s3cmci.h>
#include "common.h"
#include "s3c24xx.h"
static struct map_desc at2440evb_iodesc[] __initdata = {
/* Nothing here */
......
......@@ -50,7 +50,7 @@
#include <plat/gpio-cfg.h>
#include "bast.h"
#include "common.h"
#include "s3c24xx.h"
#include "simtec.h"
#define COPYRIGHT ", Copyright 2004-2008 Simtec Electronics"
......
......@@ -61,11 +61,11 @@
#include <linux/platform_data/i2c-s3c2410.h>
#include <plat/pm.h>
#include "common.h"
#include "s3c64xx.h"
#include "crag6410.h"
#include "regs-gpio-memport.h"
#include "regs-modem.h"
#include "regs-sys.h"
#include "regs-gpio-memport-s3c64xx.h"
#include "regs-modem-s3c64xx.h"
#include "regs-sys-s3c64xx.h"
/* serial port setup */
......
......@@ -68,7 +68,7 @@
#include <plat/gpio-cfg.h>
#include <plat/pm.h>
#include "common.h"
#include "s3c24xx.h"
#include "gta02.h"
static struct pcf50633 *gta02_pcf;
......
......@@ -49,7 +49,7 @@
#include <linux/platform_data/fb-s3c2410.h>
#include <mach/map.h>
#include <mach/hardware.h>
#include <mach/hardware-s3c24xx.h>
#include <mach/regs-clock.h>
#include <mach/regs-gpio.h>
#include <mach/gpio-samsung.h>
......@@ -59,7 +59,7 @@
#include <plat/gpio-cfg.h>
#include <plat/pm.h>
#include "common.h"
#include "s3c24xx.h"
#include "h1940.h"
#define H1940_LATCH ((void __force __iomem *)0xF8000000)
......
......@@ -39,7 +39,7 @@
#include <plat/devs.h>
#include <plat/cpu.h>
#include "common.h"
#include "s3c64xx.h"
#define UCON S3C2410_UCON_DEFAULT
#define ULCON (S3C2410_LCON_CS8 | S3C2410_LCON_PNONE)
......
......@@ -31,7 +31,7 @@
#include <linux/platform_data/mtd-nand-s3c2410.h>
#include <linux/platform_data/i2c-s3c2410.h>
#include <mach/hardware.h>
#include <mach/hardware-s3c24xx.h>
#include <mach/regs-gpio.h>
#include <linux/platform_data/fb-s3c2410.h>
#include <mach/gpio-samsung.h>
......@@ -49,7 +49,7 @@
#include <plat/pm.h>
#include <linux/platform_data/usb-s3c2410_udc.h>
#include "common.h"
#include "s3c24xx.h"
#include "s3c2412-power.h"
static struct map_desc jive_iodesc[] __initdata = {
......
......@@ -53,7 +53,7 @@
#include <sound/s3c24xx_uda134x.h>
#include "common.h"
#include "s3c24xx.h"
#define MACH_MINI2440_DM9K_BASE (S3C2410_CS4 + 0x300)
......
......@@ -40,9 +40,9 @@
#include <video/platform_lcd.h>
#include <video/samsung_fimd.h>
#include "common.h"
#include "regs-modem.h"
#include "regs-srom.h"
#include "s3c64xx.h"
#include "regs-modem-s3c64xx.h"
#include "regs-srom-s3c64xx.h"
#define UCON S3C2410_UCON_DEFAULT
#define ULCON (S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB)
......
......@@ -27,7 +27,7 @@
#include <linux/io.h>
#include <linux/mmc/host.h>
#include <mach/hardware.h>
#include <mach/hardware-s3c24xx.h>
#include <asm/irq.h>
#include <asm/mach-types.h>
......@@ -49,7 +49,7 @@
#include <linux/platform_data/mmc-s3cmci.h>
#include <linux/platform_data/usb-s3c2410_udc.h>
#include "common.h"
#include "s3c24xx.h"
static struct map_desc n30_iodesc[] __initdata = {
/* nothing here yet */
......
......@@ -36,7 +36,7 @@
#include <plat/devs.h>
#include <plat/cpu.h>
#include "common.h"
#include "s3c64xx.h"
#define UCON S3C2410_UCON_DEFAULT
#define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE
......
......@@ -40,7 +40,7 @@
#include <plat/devs.h>
#include <plat/cpu.h>
#include "common.h"
#include "s3c24xx.h"
static struct map_desc nexcoder_iodesc[] __initdata = {
/* nothing here yet */
......
......@@ -44,9 +44,9 @@
#include <mach/regs-gpio.h>
#include <mach/gpio-samsung.h>
#include "common.h"
#include "s3c24xx.h"
#include "osiris.h"
#include "regs-mem.h"
#include "regs-mem-s3c24xx.h"
/* onboard perihperal map */
......
......@@ -29,7 +29,7 @@
#include <plat/cpu.h>
#include <plat/devs.h>
#include "common.h"
#include "s3c24xx.h"
#include "otom.h"
static struct map_desc otom11_iodesc[] __initdata = {
......
......@@ -43,8 +43,8 @@
#include <plat/cpu.h>
#include <plat/pm.h>
#include "common.h"
#include "common-smdk.h"
#include "s3c24xx.h"
#include "common-smdk-s3c24xx.h"
static struct map_desc qt2410_iodesc[] __initdata = {
{ 0xe0000000, __phys_to_pfn(S3C2410_CS3+0x01000000), SZ_1M, MT_DEVICE }
......
......@@ -39,9 +39,9 @@
#include <video/platform_lcd.h>
#include <video/samsung_fimd.h>
#include "common.h"
#include "regs-modem.h"
#include "regs-srom.h"
#include "s3c64xx.h"
#include "regs-modem-s3c64xx.h"
#include "regs-srom-s3c64xx.h"
#define UCON S3C2410_UCON_DEFAULT
#define ULCON (S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB)
......
......@@ -46,7 +46,7 @@
#include <sound/uda1380.h>
#include <mach/hardware.h>
#include <mach/hardware-s3c24xx.h>
#include <mach/regs-gpio.h>
#include <mach/gpio-samsung.h>
......@@ -55,7 +55,7 @@
#include <plat/pm.h>
#include <plat/gpio-cfg.h>
#include "common.h"
#include "s3c24xx.h"
#include "h1940.h"
#define LCD_PWM_PERIOD 192960
......
......@@ -43,7 +43,7 @@
#include <plat/devs.h>
#include <plat/pm.h>
#include "common.h"
#include "s3c24xx.h"
#include "h1940.h"
static struct map_desc rx3715_iodesc[] __initdata = {
......
......@@ -21,7 +21,7 @@
#include <plat/cpu.h>
#include <plat/pm.h>
#include "common.h"
#include "s3c24xx.h"
static void __init s3c2416_dt_map_io(void)
{
......
......@@ -11,7 +11,7 @@
#include <plat/cpu.h>
#include <mach/map.h>
#include "common.h"
#include "s3c64xx.h"
/*
* IO mapping for shared system controller IP.
......
......@@ -33,9 +33,9 @@
#include <video/platform_lcd.h>
#include "common.h"
#include "s3c64xx.h"
#include "mach-smartq.h"
#include "regs-modem.h"
#include "regs-modem-s3c64xx.h"
#define UCON S3C2410_UCON_DEFAULT
#define ULCON (S3C2410_LCON_CS8 | S3C2410_LCON_PNONE)
......
......@@ -24,7 +24,7 @@
#include <plat/fb.h>
#include <plat/gpio-cfg.h>
#include "common.h"
#include "s3c64xx.h"
#include "mach-smartq.h"
static struct gpio_led smartq5_leds[] = {
......
......@@ -24,7 +24,7 @@
#include <plat/fb.h>
#include <plat/gpio-cfg.h>
#include "common.h"
#include "s3c64xx.h"
#include "mach-smartq.h"
static struct gpio_led smartq7_leds[] = {
......
......@@ -34,8 +34,8 @@
#include <plat/devs.h>
#include <plat/cpu.h>
#include "common.h"
#include "common-smdk.h"
#include "s3c24xx.h"
#include "common-smdk-s3c24xx.h"
static struct map_desc smdk2410_iodesc[] __initdata = {
/* nothing here yet */
......
......@@ -23,7 +23,7 @@
#include <asm/mach/map.h>
#include <asm/mach/irq.h>
#include <mach/hardware.h>
#include <mach/hardware-s3c24xx.h>
#include <asm/hardware/iomd.h>
#include <asm/setup.h>
#include <asm/irq.h>
......@@ -41,8 +41,8 @@
#include <plat/devs.h>
#include <plat/cpu.h>
#include "common.h"
#include "common-smdk.h"
#include "s3c24xx.h"
#include "common-smdk-s3c24xx.h"
static struct map_desc smdk2413_iodesc[] __initdata = {
};
......
......@@ -25,7 +25,7 @@
#include <asm/mach/irq.h>
#include <video/samsung_fimd.h>
#include <mach/hardware.h>
#include <mach/hardware-s3c24xx.h>
#include <asm/irq.h>
#include <asm/mach-types.h>
......@@ -46,8 +46,8 @@
#include <plat/fb.h>
#include "common.h"
#include "common-smdk.h"
#include "s3c24xx.h"
#include "common-smdk-s3c24xx.h"
static struct map_desc smdk2416_iodesc[] __initdata = {
/* ISA IO Space map (memory space selected by A24) */
......
......@@ -36,8 +36,8 @@
#include <plat/devs.h>
#include <plat/cpu.h>
#include "common.h"
#include "common-smdk.h"
#include "s3c24xx.h"
#include "common-smdk-s3c24xx.h"
static struct map_desc smdk2440_iodesc[] __initdata = {
/* ISA IO Space map (memory space selected by A24) */
......
......@@ -33,8 +33,8 @@
#include <plat/devs.h>
#include <plat/cpu.h>
#include "common.h"
#include "common-smdk.h"
#include "s3c24xx.h"
#include "common-smdk-s3c24xx.h"
static struct map_desc smdk2443_iodesc[] __initdata = {
/* ISA IO Space map (memory space selected by A24) */
......
......@@ -30,7 +30,7 @@
#include <linux/platform_data/i2c-s3c2410.h>
#include <mach/gpio-samsung.h>
#include "common.h"
#include "s3c64xx.h"
#define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK
#define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB
......
......@@ -64,11 +64,11 @@
#include <linux/platform_data/touchscreen-s3c2410.h>
#include <plat/keypad.h>
#include "backlight.h"
#include "common.h"
#include "regs-modem.h"
#include "regs-srom.h"
#include "regs-sys.h"
#include "backlight-s3c64xx.h"
#include "s3c64xx.h"
#include "regs-modem-s3c64xx.h"
#include "regs-srom-s3c64xx.h"
#include "regs-sys-s3c64xx.h"
#define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK
#define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB
......
......@@ -37,7 +37,7 @@
#include <linux/mtd/map.h>
#include <linux/mtd/physmap.h>
#include "common.h"
#include "s3c24xx.h"
static struct resource tct_hammer_nor_resource =
DEFINE_RES_MEM(0x00000000, SZ_16M);
......
......@@ -43,7 +43,7 @@
#include <plat/gpio-cfg.h>
#include "bast.h"
#include "common.h"
#include "s3c24xx.h"
#include "simtec.h"
#include "vr1000.h"
......
......@@ -40,7 +40,7 @@
#include <plat/devs.h>
#include <plat/cpu.h>
#include "common.h"
#include "s3c24xx.h"
static struct map_desc vstms_iodesc[] __initdata = {
};
......
......@@ -6,8 +6,8 @@
* S3C - Nand Controller core functions
*/
#ifndef __ASM_ARCH_NAND_CORE_H
#define __ASM_ARCH_NAND_CORE_H __FILE__
#ifndef __ASM_ARCH_NAND_CORE_S3C24XX_H
#define __ASM_ARCH_NAND_CORE_S3C24XX_H __FILE__
/* These functions are only for use with the core support code, such as
* the cpu specific initialisation code
......@@ -21,4 +21,4 @@ static inline void s3c_nand_setname(char *name)
#endif
}
#endif /* __ASM_ARCH_NAND_CORE_H */
#endif /* __ASM_ARCH_NAND_CORE_S3C24XX_H */
......@@ -7,8 +7,8 @@
* Samsung OneNAD Controller core functions
*/
#ifndef __ASM_ARCH_ONENAND_CORE_H
#define __ASM_ARCH_ONENAND_CORE_H __FILE__
#ifndef __ASM_ARCH_ONENAND_CORE_S3C64XX_H
#define __ASM_ARCH_ONENAND_CORE_S3C64XX_H __FILE__
/* These functions are only for use with the core support code, such as
* the cpu specific initialisation code
......@@ -29,4 +29,4 @@ static inline void s3c64xx_onenand1_setname(char *name)
#endif
}
#endif /* __ASM_ARCH_ONENAND_CORE_H */
#endif /* __ASM_ARCH_ONENAND_CORE_S3C64XX_H */
......@@ -14,7 +14,7 @@
#include <mach/irqs.h>
#include <mach/map.h>
#include "regs-sys.h"
#include "regs-sys-s3c64xx.h"
static int pl08x_get_xfer_signal(const struct pl08x_channel_data *cd)
{
......
......@@ -26,7 +26,7 @@
#include <plat/pm.h>
#include <plat/wakeup-mask.h>
#include "regs-dsc.h"
#include "regs-dsc-s3c24xx.h"
#include "s3c2412-power.h"
extern void s3c2412_sleep_enter(void);
......
......@@ -31,7 +31,7 @@
#include <plat/gpio-cfg.h>
#include <plat/pm.h>
#include "regs-mem.h"
#include "regs-mem-s3c24xx.h"
#define PFX "s3c24xx-pm: "
......
......@@ -26,10 +26,10 @@
#include <mach/regs-clock.h>
#include <mach/gpio-samsung.h>
#include "regs-gpio-memport.h"
#include "regs-modem.h"
#include "regs-sys.h"
#include "regs-syscon-power.h"
#include "regs-gpio-memport-s3c64xx.h"
#include "regs-modem-s3c64xx.h"
#include "regs-sys-s3c64xx.h"
#include "regs-syscon-power-s3c64xx.h"
struct s3c64xx_pm_domain {
char *const name;
......
......@@ -7,8 +7,8 @@
*/
#ifndef __ASM_ARCH_REGS_DSC_H
#define __ASM_ARCH_REGS_DSC_H __FILE__
#ifndef __ASM_ARCH_REGS_DSC_S3C24XX_H
#define __ASM_ARCH_REGS_DSC_S3C24XX_H __FILE__
/* S3C2412 */
#define S3C2412_DSC0 S3C2410_GPIOREG(0xdc)
......@@ -18,5 +18,5 @@
#define S3C2440_DSC0 S3C2410_GPIOREG(0xc4)
#define S3C2440_DSC1 S3C2410_GPIOREG(0xc8)
#endif /* __ASM_ARCH_REGS_DSC_H */
#endif /* __ASM_ARCH_REGS_DSC_S3C24XX_H */
......@@ -41,7 +41,7 @@
#include <plat/gpio-cfg.h>
#include <plat/gpio-cfg-helpers.h>
#include "common.h"
#include "s3c24xx.h"
/* Initial IO mappings */
......
......@@ -37,9 +37,9 @@
#include <plat/devs.h>
#include <plat/pm.h>
#include "common.h"
#include "nand-core.h"
#include "regs-dsc.h"
#include "s3c24xx.h"
#include "nand-core-s3c24xx.h"
#include "regs-dsc-s3c24xx.h"
#include "s3c2412-power.h"
#ifndef CONFIG_CPU_S3C2412_ONLY
......
......@@ -33,7 +33,7 @@
#include <asm/system_misc.h>
#include <mach/regs-s3c2443-clock.h>
#include <mach/rtc-core.h>
#include <mach/rtc-core-s3c24xx.h>
#include <plat/gpio-core.h>
#include <plat/gpio-cfg.h>
......@@ -46,10 +46,10 @@
#include <plat/iic-core.h>
#include <plat/adc-core.h>
#include "common.h"
#include "fb-core.h"
#include "nand-core.h"
#include "spi-core.h"
#include "s3c24xx.h"
#include "fb-core-s3c24xx.h"
#include "nand-core-s3c24xx.h"
#include "spi-core-s3c24xx.h"
static struct map_desc s3c2416_iodesc[] __initdata = {
IODESC_ENT(WATCHDOG),
......
......@@ -34,7 +34,7 @@
#include <plat/gpio-cfg.h>
#include <plat/gpio-cfg-helpers.h>
#include "common.h"
#include "s3c24xx.h"
static struct device s3c2440_dev = {
.bus = &s3c2440_subsys,
......
......@@ -34,7 +34,7 @@
#include <plat/gpio-cfg.h>
#include <plat/gpio-cfg-helpers.h>
#include "common.h"
#include "s3c24xx.h"
static struct device s3c2442_dev = {
.bus = &s3c2442_subsys,
......
......@@ -30,7 +30,7 @@
#include <asm/system_misc.h>
#include <mach/regs-s3c2443-clock.h>
#include <mach/rtc-core.h>
#include <mach/rtc-core-s3c24xx.h>
#include <plat/gpio-core.h>
#include <plat/gpio-cfg.h>
......@@ -39,10 +39,10 @@
#include <plat/cpu.h>
#include <plat/adc-core.h>
#include "common.h"
#include "fb-core.h"
#include "nand-core.h"
#include "spi-core.h"
#include "s3c24xx.h"
#include "fb-core-s3c24xx.h"
#include "nand-core-s3c24xx.h"
#include "spi-core-s3c24xx.h"
static struct map_desc s3c2443_iodesc[] __initdata = {
IODESC_ENT(WATCHDOG),
......
......@@ -35,9 +35,9 @@
#include <plat/cpu.h>
#include <plat/pm.h>
#include "common.h"
#include "nand-core.h"
#include "regs-dsc.h"
#include "s3c24xx.h"
#include "nand-core-s3c24xx.h"
#include "regs-dsc-s3c24xx.h"
static struct map_desc s3c244x_iodesc[] __initdata = {
IODESC_ENT(CLKPWR),
......
......@@ -22,7 +22,7 @@
#include <linux/dmaengine.h>
#include <linux/clk/samsung.h>
#include <mach/hardware.h>
#include <mach/hardware-s3c24xx.h>
#include <mach/map.h>
#include <mach/regs-clock.h>
#include <asm/irq.h>
......@@ -40,7 +40,7 @@
#include <plat/devs.h>
#include <plat/pwm-core.h>
#include "common.h"
#include "s3c24xx.h"
/* table of supported CPUs */
......
......@@ -35,8 +35,8 @@
#include <plat/sdhci.h>
#include <plat/iic-core.h>
#include "common.h"
#include "onenand-core.h"
#include "s3c64xx.h"
#include "onenand-core-s3c64xx.h"
void __init s3c6400_map_io(void)
{
......
......@@ -38,9 +38,9 @@
#include <plat/adc-core.h>
#include <plat/iic-core.h>
#include "ata-core.h"
#include "common.h"
#include "onenand-core.h"
#include "ata-core-s3c64xx.h"
#include "s3c64xx.h"
#include "onenand-core-s3c64xx.h"
void __init s3c6410_map_io(void)
{
......
......@@ -47,8 +47,8 @@
#include <plat/pwm-core.h>
#include <plat/regs-irqtype.h>
#include "common.h"
#include "irq-uart.h"
#include "s3c64xx.h"
#include "irq-uart-s3c64xx.h"
/* External clock frequency */
static unsigned long xtal_f __ro_after_init = 12000000;
......
......@@ -10,7 +10,7 @@
#include <plat/gpio-cfg.h>
#include <mach/hardware.h>
#include <mach/hardware-s3c24xx.h>
#include <mach/regs-gpio.h>
#ifdef CONFIG_S3C64XX_DEV_SPI0
......
......@@ -12,8 +12,8 @@
#include <plat/cpu.h>
#include <plat/usb-phy.h>
#include "regs-sys.h"
#include "regs-usb-hsotg-phy.h"
#include "regs-sys-s3c64xx.h"
#include "regs-usb-hsotg-phy-s3c64xx.h"
enum samsung_usb_phy_type {
USB_PHY_TYPE_DEVICE,
......
......@@ -26,7 +26,7 @@
#include <plat/pm.h>
#include "regs-mem.h"
#include "regs-mem-s3c24xx.h"
#define COPYRIGHT ", Copyright 2005 Simtec Electronics"
......
......@@ -18,7 +18,7 @@
#include <mach/regs-gpio.h>
#include <mach/regs-clock.h>
#include "regs-mem.h"
#include "regs-mem-s3c24xx.h"
/* s3c2410_cpu_suspend
*
......
......@@ -3,8 +3,8 @@
* Copyright (C) 2012 Heiko Stuebner <heiko@sntech.de>
*/
#ifndef __PLAT_S3C_SPI_CORE_H
#define __PLAT_S3C_SPI_CORE_H
#ifndef __PLAT_S3C_SPI_CORE_S3C24XX_H
#define __PLAT_S3C_SPI_CORE_S3C24XX_H
/* These functions are only for use with the core support code, such as
* the cpu specific initialisation code
......@@ -24,4 +24,4 @@ static inline void s3c24xx_spi_setname(char *name)
#endif
}
#endif /* __PLAT_S3C_SPI_CORE_H */
#endif /* __PLAT_S3C_SPI_CORE_S3C24XX_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment