Commit 0144e3fc authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Krzysztof Kozlowski

ARM: s3c24xx: move regs-spi.h into spi driver

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: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20200806182059.2431-20-krzk@kernel.orgSigned-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent a07c4a8c
...@@ -86,6 +86,8 @@ ...@@ -86,6 +86,8 @@
#define S3C2410_PA_SPI (0x59000000) #define S3C2410_PA_SPI (0x59000000)
#define S3C2443_PA_SPI0 (0x52000000) #define S3C2443_PA_SPI0 (0x52000000)
#define S3C2443_PA_SPI1 S3C2410_PA_SPI #define S3C2443_PA_SPI1 S3C2410_PA_SPI
#define S3C2410_SPI1 (0x20)
#define S3C2412_SPI1 (0x100)
/* SDI */ /* SDI */
#define S3C2410_PA_SDI (0x5A000000) #define S3C2410_PA_SDI (0x5A000000)
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
#include <plat/cpu-freq.h> #include <plat/cpu-freq.h>
#include <plat/devs.h> #include <plat/devs.h>
#include <plat/pm.h> #include <plat/pm.h>
#include <plat/regs-spi.h>
#include "common.h" #include "common.h"
#include "nand-core.h" #include "nand-core.h"
......
...@@ -61,7 +61,6 @@ ...@@ -61,7 +61,6 @@
#include <linux/platform_data/usb-s3c2410_udc.h> #include <linux/platform_data/usb-s3c2410_udc.h>
#include <linux/platform_data/usb-ohci-s3c2410.h> #include <linux/platform_data/usb-ohci-s3c2410.h>
#include <plat/usb-phy.h> #include <plat/usb-phy.h>
#include <plat/regs-spi.h>
#include <linux/platform_data/asoc-s3c.h> #include <linux/platform_data/asoc-s3c.h>
#include <linux/platform_data/spi-s3c64xx.h> #include <linux/platform_data/spi-s3c64xx.h>
......
...@@ -12,10 +12,12 @@ ...@@ -12,10 +12,12 @@
#include <mach/map.h> #include <mach/map.h>
#include <mach/regs-irq.h> #include <mach/regs-irq.h>
#include <plat/regs-spi.h>
#include "spi-s3c24xx-fiq.h" #include "spi-s3c24xx-fiq.h"
#define S3C2410_SPTDAT (0x10)
#define S3C2410_SPRDAT (0x14)
.text .text
@ entry to these routines is as follows, with the register names @ entry to these routines is as follows, with the register names
......
...@@ -5,11 +5,8 @@ ...@@ -5,11 +5,8 @@
* S3C2410 SPI register definition * S3C2410 SPI register definition
*/ */
#ifndef __ASM_ARCH_REGS_SPI_H #ifndef __SPI_S3C2410_H
#define __ASM_ARCH_REGS_SPI_H #define __SPI_S3C2410_H
#define S3C2410_SPI1 (0x20)
#define S3C2412_SPI1 (0x100)
#define S3C2410_SPCON (0x00) #define S3C2410_SPCON (0x00)
...@@ -41,4 +38,4 @@ ...@@ -41,4 +38,4 @@
#define S3C2410_SPTDAT (0x10) #define S3C2410_SPTDAT (0x10)
#define S3C2410_SPRDAT (0x14) #define S3C2410_SPRDAT (0x14)
#endif /* __ASM_ARCH_REGS_SPI_H */ #endif /* __SPI_S3C2410_H */
...@@ -21,10 +21,9 @@ ...@@ -21,10 +21,9 @@
#include <linux/spi/s3c24xx.h> #include <linux/spi/s3c24xx.h>
#include <linux/module.h> #include <linux/module.h>
#include <plat/regs-spi.h>
#include <asm/fiq.h> #include <asm/fiq.h>
#include "spi-s3c24xx-regs.h"
#include "spi-s3c24xx-fiq.h" #include "spi-s3c24xx-fiq.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