]> www.infradead.org Git - users/willy/linux.git/commitdiff
ARM: s3c24xx: move regs-spi.h into spi driver
authorArnd Bergmann <arnd@arndb.de>
Thu, 6 Aug 2020 18:20:37 +0000 (20:20 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Wed, 19 Aug 2020 19:40:14 +0000 (21:40 +0200)
The file is mostly specific to the driver, the few bits that
are actually used by the platform code get moved to mach/map.h
instead.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20200806182059.2431-20-krzk@kernel.org
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/mach-s3c24xx/include/mach/map.h
arch/arm/mach-s3c24xx/s3c2412.c
arch/arm/plat-samsung/devs.c
drivers/spi/spi-s3c24xx-fiq.S
drivers/spi/spi-s3c24xx-regs.h [moved from arch/arm/plat-samsung/include/plat/regs-spi.h with 89% similarity]
drivers/spi/spi-s3c24xx.c

index bca93112f57d6601886dd1c01276647dd053d717..a20c9fd0d855e500329ce62a99b9cd497291ef89 100644 (file)
@@ -86,6 +86,8 @@
 #define S3C2410_PA_SPI    (0x59000000)
 #define S3C2443_PA_SPI0                (0x52000000)
 #define S3C2443_PA_SPI1                S3C2410_PA_SPI
+#define S3C2410_SPI1           (0x20)
+#define S3C2412_SPI1           (0x100)
 
 /* SDI */
 #define S3C2410_PA_SDI    (0x5A000000)
index 8fe4d4670dcba268945b66e65ec0c72f6d5a4838..c3fb3e6c0dd860f03b513bf03e38607354324829 100644 (file)
@@ -37,7 +37,6 @@
 #include <plat/cpu-freq.h>
 #include <plat/devs.h>
 #include <plat/pm.h>
-#include <plat/regs-spi.h>
 
 #include "common.h"
 #include "nand-core.h"
index 0607d29848414f4125e56d4f60f9c937559babb0..0ed3a4b9fc12dbf91b0a27fe07d20a0d0932b1a4 100644 (file)
@@ -61,7 +61,6 @@
 #include <linux/platform_data/usb-s3c2410_udc.h>
 #include <linux/platform_data/usb-ohci-s3c2410.h>
 #include <plat/usb-phy.h>
-#include <plat/regs-spi.h>
 #include <linux/platform_data/asoc-s3c.h>
 #include <linux/platform_data/spi-s3c64xx.h>
 
index e95d6282109e7c42ad7675e07fff2d2920ec03f9..9d5f8f1e5e81ff70530bda8346f53ede0e95e67a 100644 (file)
 
 #include <mach/map.h>
 #include <mach/regs-irq.h>
-#include <plat/regs-spi.h>
 
 #include "spi-s3c24xx-fiq.h"
 
+#define S3C2410_SPTDAT           (0x10)
+#define S3C2410_SPRDAT           (0x14)
+
        .text
 
        @ entry to these routines is as follows, with the register names
similarity index 89%
rename from arch/arm/plat-samsung/include/plat/regs-spi.h
rename to drivers/spi/spi-s3c24xx-regs.h
index 607844311566011a46e9ab3573b57931410911aa..f51464ab5677837f127064ce6378d8f595eb2c9e 100644 (file)
@@ -5,11 +5,8 @@
  * S3C2410 SPI register definition
  */
 
-#ifndef __ASM_ARCH_REGS_SPI_H
-#define __ASM_ARCH_REGS_SPI_H
-
-#define S3C2410_SPI1           (0x20)
-#define S3C2412_SPI1           (0x100)
+#ifndef __SPI_S3C2410_H
+#define __SPI_S3C2410_H
 
 #define S3C2410_SPCON          (0x00)
 
@@ -41,4 +38,4 @@
 #define S3C2410_SPTDAT         (0x10)
 #define S3C2410_SPRDAT         (0x14)
 
-#endif /* __ASM_ARCH_REGS_SPI_H */
+#endif /* __SPI_S3C2410_H */
index 2cb3b611c2949b77b842d9f6db75bb2be89e1684..0691248c7c0d977739631b6de70082b4e0fa252f 100644 (file)
 #include <linux/spi/s3c24xx.h>
 #include <linux/module.h>
 
-#include <plat/regs-spi.h>
-
 #include <asm/fiq.h>
 
+#include "spi-s3c24xx-regs.h"
 #include "spi-s3c24xx-fiq.h"
 
 /**