Skip to content

Commit 0d297df

Browse files
committed
ARM: s3c: simplify platform code
Following down the now unused symbols and header files, some additional content can be dropped that is used by neither the s3c64xx DT support nor the crag6410 board. Acked-by: Mark Brown <broonie@kernel.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent cc14641 commit 0d297df

33 files changed

+6
-2144
lines changed

arch/arm/mach-s3c/Kconfig

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -90,36 +90,6 @@ config S3C_DEV_I2C1
9090
help
9191
Compile in platform device definitions for I2C channel 1
9292

93-
config S3C_DEV_I2C2
94-
bool
95-
help
96-
Compile in platform device definitions for I2C channel 2
97-
98-
config S3C_DEV_I2C3
99-
bool
100-
help
101-
Compile in platform device definition for I2C controller 3
102-
103-
config S3C_DEV_I2C4
104-
bool
105-
help
106-
Compile in platform device definition for I2C controller 4
107-
108-
config S3C_DEV_I2C5
109-
bool
110-
help
111-
Compile in platform device definition for I2C controller 5
112-
113-
config S3C_DEV_I2C6
114-
bool
115-
help
116-
Compile in platform device definition for I2C controller 6
117-
118-
config S3C_DEV_I2C7
119-
bool
120-
help
121-
Compile in platform device definition for I2C controller 7
122-
12393
config S3C_DEV_FB
12494
bool
12595
help
@@ -135,26 +105,6 @@ config S3C_DEV_USB_HSOTG
135105
help
136106
Compile in platform device definition for USB high-speed OtG
137107

138-
config S3C_DEV_WDT
139-
bool
140-
help
141-
Compile in platform device definition for Watchdog Timer
142-
143-
config S3C_DEV_NAND
144-
bool
145-
help
146-
Compile in platform device definition for NAND controller
147-
148-
config S3C_DEV_ONENAND
149-
bool
150-
help
151-
Compile in platform device definition for OneNAND controller
152-
153-
config S3C_DEV_RTC
154-
bool
155-
help
156-
Compile in platform device definition for RTC
157-
158108
config S3C64XX_DEV_SPI0
159109
bool
160110
help

arch/arm/mach-s3c/Kconfig.s3c64xx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ menuconfig ARCH_S3C64XX
1515
select HAVE_TCM
1616
select PLAT_SAMSUNG
1717
select PM_GENERIC_DOMAINS if PM
18-
select S3C_DEV_NAND if ATAGS
1918
select S3C_GPIO_TRACK if ATAGS
2019
select S3C2410_WATCHDOG
2120
select SAMSUNG_ATAGS if ATAGS
@@ -121,10 +120,8 @@ config MACH_WLF_CRAGG_6410
121120
select S3C_DEV_HSMMC1
122121
select S3C_DEV_HSMMC2
123122
select S3C_DEV_I2C1
124-
select S3C_DEV_RTC
125123
select S3C_DEV_USB_HOST
126124
select S3C_DEV_USB_HSOTG
127-
select S3C_DEV_WDT
128125
select SAMSUNG_DEV_KEYPAD
129126
select SAMSUNG_DEV_PWM
130127
help

arch/arm/mach-s3c/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ obj-y += init.o cpu.o
1111
# devices
1212

1313
obj-$(CONFIG_SAMSUNG_ATAGS) += platformdata.o
14-
1514
obj-$(CONFIG_SAMSUNG_ATAGS) += devs.o
1615
obj-$(CONFIG_SAMSUNG_ATAGS) += dev-uart.o
1716

@@ -21,5 +20,4 @@ obj-$(CONFIG_GPIO_SAMSUNG) += gpio-samsung.o
2120

2221
obj-$(CONFIG_SAMSUNG_PM) += pm.o pm-common.o
2322
obj-$(CONFIG_SAMSUNG_PM_GPIO) += pm-gpio.o
24-
2523
obj-$(CONFIG_SAMSUNG_WAKEMASK) += wakeup-mask.o

arch/arm/mach-s3c/Makefile.s3c64xx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ obj-y += dev-audio-s3c64xx.o
3333
obj-$(CONFIG_S3C64XX_SETUP_FB_24BPP) += setup-fb-24bpp-s3c64xx.o
3434
obj-$(CONFIG_S3C64XX_SETUP_I2C0) += setup-i2c0-s3c64xx.o
3535
obj-$(CONFIG_S3C64XX_SETUP_I2C1) += setup-i2c1-s3c64xx.o
36-
obj-$(CONFIG_S3C64XX_SETUP_IDE) += setup-ide-s3c64xx.o
3736
obj-$(CONFIG_S3C64XX_SETUP_KEYPAD) += setup-keypad-s3c64xx.o
3837
obj-$(CONFIG_S3C64XX_SETUP_SDHCI_GPIO) += setup-sdhci-gpio-s3c64xx.o
3938
obj-$(CONFIG_S3C64XX_SETUP_SPI) += setup-spi-s3c64xx.o

arch/arm/mach-s3c/adc-core.h

Lines changed: 0 additions & 24 deletions
This file was deleted.

arch/arm/mach-s3c/ata-core-s3c64xx.h

Lines changed: 0 additions & 24 deletions
This file was deleted.

arch/arm/mach-s3c/backlight-s3c64xx.h

Lines changed: 0 additions & 22 deletions
This file was deleted.

arch/arm/mach-s3c/cpu.h

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,6 @@
1616

1717
extern unsigned long samsung_cpu_id;
1818

19-
#define S3C2410_CPU_ID 0x32410000
20-
#define S3C2410_CPU_MASK 0xFFFFFFFF
21-
22-
#define S3C24XX_CPU_ID 0x32400000
23-
#define S3C24XX_CPU_MASK 0xFFF00000
24-
25-
#define S3C2412_CPU_ID 0x32412000
26-
#define S3C2412_CPU_MASK 0xFFFFF000
27-
2819
#define S3C6400_CPU_ID 0x36400000
2920
#define S3C6410_CPU_ID 0x36410000
3021
#define S3C64XX_CPU_MASK 0xFFFFF000
@@ -38,29 +29,9 @@ static inline int is_samsung_##name(void) \
3829
return ((samsung_cpu_id & mask) == (id & mask)); \
3930
}
4031

41-
IS_SAMSUNG_CPU(s3c2410, S3C2410_CPU_ID, S3C2410_CPU_MASK)
42-
IS_SAMSUNG_CPU(s3c24xx, S3C24XX_CPU_ID, S3C24XX_CPU_MASK)
43-
IS_SAMSUNG_CPU(s3c2412, S3C2412_CPU_ID, S3C2412_CPU_MASK)
4432
IS_SAMSUNG_CPU(s3c6400, S3C6400_CPU_ID, S3C64XX_CPU_MASK)
4533
IS_SAMSUNG_CPU(s3c6410, S3C6410_CPU_ID, S3C64XX_CPU_MASK)
4634

47-
#if defined(CONFIG_CPU_S3C2410) || defined(CONFIG_CPU_S3C2412) || \
48-
defined(CONFIG_CPU_S3C2416) || defined(CONFIG_CPU_S3C2440) || \
49-
defined(CONFIG_CPU_S3C2442) || defined(CONFIG_CPU_S3C244X) || \
50-
defined(CONFIG_CPU_S3C2443)
51-
# define soc_is_s3c24xx() is_samsung_s3c24xx()
52-
# define soc_is_s3c2410() is_samsung_s3c2410()
53-
#else
54-
# define soc_is_s3c24xx() 0
55-
# define soc_is_s3c2410() 0
56-
#endif
57-
58-
#if defined(CONFIG_CPU_S3C2412)
59-
# define soc_is_s3c2412() is_samsung_s3c2412()
60-
#else
61-
# define soc_is_s3c2412() 0
62-
#endif
63-
6435
#if defined(CONFIG_CPU_S3C6400) || defined(CONFIG_CPU_S3C6410)
6536
# define soc_is_s3c6400() is_samsung_s3c6400()
6637
# define soc_is_s3c6410() is_samsung_s3c6410()
@@ -71,12 +42,6 @@ IS_SAMSUNG_CPU(s3c6410, S3C6410_CPU_ID, S3C64XX_CPU_MASK)
7142
# define soc_is_s3c64xx() 0
7243
#endif
7344

74-
#define IODESC_ENT(x) { (unsigned long)S3C24XX_VA_##x, __phys_to_pfn(S3C24XX_PA_##x), S3C24XX_SZ_##x, MT_DEVICE }
75-
76-
#ifndef KHZ
77-
#define KHZ (1000)
78-
#endif
79-
8045
#ifndef MHZ
8146
#define MHZ (1000*1000)
8247
#endif
@@ -96,7 +61,6 @@ struct cpu_table {
9661
unsigned long idmask;
9762
void (*map_io)(void);
9863
void (*init_uarts)(struct s3c2410_uartcfg *cfg, int no);
99-
void (*init_clocks)(int xtal);
10064
int (*init)(void);
10165
const char *name;
10266
};
@@ -105,24 +69,13 @@ extern void s3c_init_cpu(unsigned long idcode,
10569
struct cpu_table *cpus, unsigned int cputab_size);
10670

10771
/* core initialisation functions */
108-
109-
extern void s3c24xx_init_io(struct map_desc *mach_desc, int size);
110-
11172
extern void s3c64xx_init_cpu(void);
11273

11374
extern void s3c24xx_init_uarts(struct s3c2410_uartcfg *cfg, int no);
114-
115-
extern void s3c24xx_init_clocks(int xtal);
116-
11775
extern void s3c24xx_init_uartdevs(char *name,
11876
struct s3c24xx_uart_resources *res,
11977
struct s3c2410_uartcfg *cfg, int no);
12078

121-
extern struct syscore_ops s3c2410_pm_syscore_ops;
122-
extern struct syscore_ops s3c2412_pm_syscore_ops;
123-
extern struct syscore_ops s3c2416_pm_syscore_ops;
124-
extern struct syscore_ops s3c244x_pm_syscore_ops;
125-
12679
extern struct bus_type s3c6410_subsys;
12780

12881
#endif

0 commit comments

Comments
 (0)