diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2013-01-02 16:31:15 -0500 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2013-01-10 13:45:40 -0500 |
commit | f2bfd174bdc0d3df9fa24b2895d02fa0529679c7 (patch) | |
tree | eacc52f73f7c6768e16b232c264be8be4d222b41 /arch/arm/mach-s3c64xx | |
parent | 8eba8ea21f7a289ec78df979b3b5a8affde1e68d (diff) |
ARM: S3C64XX: make regs-sys.h local
The header file can be local in mach-s3c64xx/.
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s3c64xx')
-rw-r--r-- | arch/arm/mach-s3c64xx/clock.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/cpuidle.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/dma.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/regs-sys.h | 31 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-crag6410.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-smdk6410.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/pm.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/regs-sys.h | 30 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/setup-usb-phy.c | 3 |
9 files changed, 41 insertions, 39 deletions
diff --git a/arch/arm/mach-s3c64xx/clock.c b/arch/arm/mach-s3c64xx/clock.c index 803711e283b2..8499415be9cd 100644 --- a/arch/arm/mach-s3c64xx/clock.c +++ b/arch/arm/mach-s3c64xx/clock.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <mach/hardware.h> | 23 | #include <mach/hardware.h> |
24 | #include <mach/map.h> | 24 | #include <mach/map.h> |
25 | 25 | ||
26 | #include <mach/regs-sys.h> | ||
27 | #include <mach/regs-clock.h> | 26 | #include <mach/regs-clock.h> |
28 | 27 | ||
29 | #include <plat/cpu.h> | 28 | #include <plat/cpu.h> |
@@ -33,6 +32,8 @@ | |||
33 | #include <plat/clock-clksrc.h> | 32 | #include <plat/clock-clksrc.h> |
34 | #include <plat/pll.h> | 33 | #include <plat/pll.h> |
35 | 34 | ||
35 | #include "regs-sys.h" | ||
36 | |||
36 | /* fin_apll, fin_mpll and fin_epll are all the same clock, which we call | 37 | /* fin_apll, fin_mpll and fin_epll are all the same clock, which we call |
37 | * ext_xtal_mux for want of an actual name from the manual. | 38 | * ext_xtal_mux for want of an actual name from the manual. |
38 | */ | 39 | */ |
diff --git a/arch/arm/mach-s3c64xx/cpuidle.c b/arch/arm/mach-s3c64xx/cpuidle.c index acb197ccf3f7..e3e455b87961 100644 --- a/arch/arm/mach-s3c64xx/cpuidle.c +++ b/arch/arm/mach-s3c64xx/cpuidle.c | |||
@@ -20,9 +20,10 @@ | |||
20 | 20 | ||
21 | #include <mach/map.h> | 21 | #include <mach/map.h> |
22 | 22 | ||
23 | #include <mach/regs-sys.h> | ||
24 | #include <mach/regs-syscon-power.h> | 23 | #include <mach/regs-syscon-power.h> |
25 | 24 | ||
25 | #include "regs-sys.h" | ||
26 | |||
26 | static int s3c64xx_enter_idle(struct cpuidle_device *dev, | 27 | static int s3c64xx_enter_idle(struct cpuidle_device *dev, |
27 | struct cpuidle_driver *drv, | 28 | struct cpuidle_driver *drv, |
28 | int index) | 29 | int index) |
diff --git a/arch/arm/mach-s3c64xx/dma.c b/arch/arm/mach-s3c64xx/dma.c index f2a7a1725596..ec29b35f25c0 100644 --- a/arch/arm/mach-s3c64xx/dma.c +++ b/arch/arm/mach-s3c64xx/dma.c | |||
@@ -28,10 +28,10 @@ | |||
28 | #include <mach/map.h> | 28 | #include <mach/map.h> |
29 | #include <mach/irqs.h> | 29 | #include <mach/irqs.h> |
30 | 30 | ||
31 | #include <mach/regs-sys.h> | ||
32 | |||
33 | #include <asm/hardware/pl080.h> | 31 | #include <asm/hardware/pl080.h> |
34 | 32 | ||
33 | #include "regs-sys.h" | ||
34 | |||
35 | /* dma channel state information */ | 35 | /* dma channel state information */ |
36 | 36 | ||
37 | struct s3c64xx_dmac { | 37 | struct s3c64xx_dmac { |
diff --git a/arch/arm/mach-s3c64xx/include/mach/regs-sys.h b/arch/arm/mach-s3c64xx/include/mach/regs-sys.h deleted file mode 100644 index b91e02093289..000000000000 --- a/arch/arm/mach-s3c64xx/include/mach/regs-sys.h +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | /* arch/arm/plat-s3c64xx/include/plat/regs-sys.h | ||
2 | * | ||
3 | * Copyright 2008 Openmoko, Inc. | ||
4 | * Copyright 2008 Simtec Electronics | ||
5 | * Ben Dooks <ben@simtec.co.uk> | ||
6 | * http://armlinux.simtec.co.uk/ | ||
7 | * | ||
8 | * S3C64XX system register definitions | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License version 2 as | ||
12 | * published by the Free Software Foundation. | ||
13 | */ | ||
14 | |||
15 | #ifndef __PLAT_REGS_SYS_H | ||
16 | #define __PLAT_REGS_SYS_H __FILE__ | ||
17 | |||
18 | #define S3C_SYSREG(x) (S3C_VA_SYS + (x)) | ||
19 | |||
20 | #define S3C64XX_AHB_CON0 S3C_SYSREG(0x100) | ||
21 | #define S3C64XX_AHB_CON1 S3C_SYSREG(0x104) | ||
22 | #define S3C64XX_AHB_CON2 S3C_SYSREG(0x108) | ||
23 | |||
24 | #define S3C64XX_SDMA_SEL S3C_SYSREG(0x110) | ||
25 | |||
26 | #define S3C64XX_OTHERS S3C_SYSREG(0x900) | ||
27 | |||
28 | #define S3C64XX_OTHERS_USBMASK (1 << 16) | ||
29 | #define S3C64XX_OTHERS_SYNCMUXSEL (1 << 6) | ||
30 | |||
31 | #endif /* _PLAT_REGS_SYS_H */ | ||
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410.c b/arch/arm/mach-s3c64xx/mach-crag6410.c index d2541359ef1f..8b89e89641be 100644 --- a/arch/arm/mach-s3c64xx/mach-crag6410.c +++ b/arch/arm/mach-s3c64xx/mach-crag6410.c | |||
@@ -50,7 +50,6 @@ | |||
50 | #include <mach/hardware.h> | 50 | #include <mach/hardware.h> |
51 | #include <mach/map.h> | 51 | #include <mach/map.h> |
52 | 52 | ||
53 | #include <mach/regs-sys.h> | ||
54 | #include <mach/regs-gpio.h> | 53 | #include <mach/regs-gpio.h> |
55 | 54 | ||
56 | #include <plat/regs-serial.h> | 55 | #include <plat/regs-serial.h> |
@@ -71,6 +70,7 @@ | |||
71 | #include "crag6410.h" | 70 | #include "crag6410.h" |
72 | #include "regs-gpio-memport.h" | 71 | #include "regs-gpio-memport.h" |
73 | #include "regs-modem.h" | 72 | #include "regs-modem.h" |
73 | #include "regs-sys.h" | ||
74 | 74 | ||
75 | /* serial port setup */ | 75 | /* serial port setup */ |
76 | 76 | ||
diff --git a/arch/arm/mach-s3c64xx/mach-smdk6410.c b/arch/arm/mach-s3c64xx/mach-smdk6410.c index dcf41bd515e7..ddd0eb84e81f 100644 --- a/arch/arm/mach-s3c64xx/mach-smdk6410.c +++ b/arch/arm/mach-s3c64xx/mach-smdk6410.c | |||
@@ -58,7 +58,6 @@ | |||
58 | 58 | ||
59 | #include <plat/regs-serial.h> | 59 | #include <plat/regs-serial.h> |
60 | #include <mach/regs-gpio.h> | 60 | #include <mach/regs-gpio.h> |
61 | #include <mach/regs-sys.h> | ||
62 | #include <linux/platform_data/ata-samsung_cf.h> | 61 | #include <linux/platform_data/ata-samsung_cf.h> |
63 | #include <linux/platform_data/i2c-s3c2410.h> | 62 | #include <linux/platform_data/i2c-s3c2410.h> |
64 | #include <plat/fb.h> | 63 | #include <plat/fb.h> |
@@ -75,6 +74,7 @@ | |||
75 | #include "common.h" | 74 | #include "common.h" |
76 | #include "regs-modem.h" | 75 | #include "regs-modem.h" |
77 | #include "regs-srom.h" | 76 | #include "regs-srom.h" |
77 | #include "regs-sys.h" | ||
78 | 78 | ||
79 | #define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK | 79 | #define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK |
80 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB | 80 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB |
diff --git a/arch/arm/mach-s3c64xx/pm.c b/arch/arm/mach-s3c64xx/pm.c index c6eff9f5b96c..546d6e0350b8 100644 --- a/arch/arm/mach-s3c64xx/pm.c +++ b/arch/arm/mach-s3c64xx/pm.c | |||
@@ -26,13 +26,13 @@ | |||
26 | #include <plat/pm.h> | 26 | #include <plat/pm.h> |
27 | #include <plat/wakeup-mask.h> | 27 | #include <plat/wakeup-mask.h> |
28 | 28 | ||
29 | #include <mach/regs-sys.h> | ||
30 | #include <mach/regs-gpio.h> | 29 | #include <mach/regs-gpio.h> |
31 | #include <mach/regs-clock.h> | 30 | #include <mach/regs-clock.h> |
32 | #include <mach/regs-syscon-power.h> | 31 | #include <mach/regs-syscon-power.h> |
33 | 32 | ||
34 | #include "regs-gpio-memport.h" | 33 | #include "regs-gpio-memport.h" |
35 | #include "regs-modem.h" | 34 | #include "regs-modem.h" |
35 | #include "regs-sys.h" | ||
36 | 36 | ||
37 | struct s3c64xx_pm_domain { | 37 | struct s3c64xx_pm_domain { |
38 | char *const name; | 38 | char *const name; |
diff --git a/arch/arm/mach-s3c64xx/regs-sys.h b/arch/arm/mach-s3c64xx/regs-sys.h new file mode 100644 index 000000000000..8c411fbb0cd9 --- /dev/null +++ b/arch/arm/mach-s3c64xx/regs-sys.h | |||
@@ -0,0 +1,30 @@ | |||
1 | /* | ||
2 | * Copyright 2008 Openmoko, Inc. | ||
3 | * Copyright 2008 Simtec Electronics | ||
4 | * Ben Dooks <ben@simtec.co.uk> | ||
5 | * http://armlinux.simtec.co.uk/ | ||
6 | * | ||
7 | * S3C64XX system register definitions | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License version 2 as | ||
11 | * published by the Free Software Foundation. | ||
12 | */ | ||
13 | |||
14 | #ifndef __MACH_S3C64XX_REGS_SYS_H | ||
15 | #define __MACH_S3C64XX_REGS_SYS_H __FILE__ | ||
16 | |||
17 | #define S3C_SYSREG(x) (S3C_VA_SYS + (x)) | ||
18 | |||
19 | #define S3C64XX_AHB_CON0 S3C_SYSREG(0x100) | ||
20 | #define S3C64XX_AHB_CON1 S3C_SYSREG(0x104) | ||
21 | #define S3C64XX_AHB_CON2 S3C_SYSREG(0x108) | ||
22 | |||
23 | #define S3C64XX_SDMA_SEL S3C_SYSREG(0x110) | ||
24 | |||
25 | #define S3C64XX_OTHERS S3C_SYSREG(0x900) | ||
26 | |||
27 | #define S3C64XX_OTHERS_USBMASK (1 << 16) | ||
28 | #define S3C64XX_OTHERS_SYNCMUXSEL (1 << 6) | ||
29 | |||
30 | #endif /* __MACH_S3C64XX_REGS_SYS_H */ | ||
diff --git a/arch/arm/mach-s3c64xx/setup-usb-phy.c b/arch/arm/mach-s3c64xx/setup-usb-phy.c index f6757e02d7db..c8174d95339b 100644 --- a/arch/arm/mach-s3c64xx/setup-usb-phy.c +++ b/arch/arm/mach-s3c64xx/setup-usb-phy.c | |||
@@ -15,11 +15,12 @@ | |||
15 | #include <linux/io.h> | 15 | #include <linux/io.h> |
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | #include <mach/map.h> | 17 | #include <mach/map.h> |
18 | #include <mach/regs-sys.h> | ||
19 | #include <plat/cpu.h> | 18 | #include <plat/cpu.h> |
20 | #include <plat/regs-usb-hsotg-phy.h> | 19 | #include <plat/regs-usb-hsotg-phy.h> |
21 | #include <plat/usb-phy.h> | 20 | #include <plat/usb-phy.h> |
22 | 21 | ||
22 | #include "regs-sys.h" | ||
23 | |||
23 | static int s3c_usb_otgphy_init(struct platform_device *pdev) | 24 | static int s3c_usb_otgphy_init(struct platform_device *pdev) |
24 | { | 25 | { |
25 | struct clk *xusbxti; | 26 | struct clk *xusbxti; |