Skip to content

Commit

Permalink
ARM: S3C24XX: move plat-samsung/s3c24XX headers to local common.h
Browse files Browse the repository at this point in the history
The different soc functions are now only used in the mach-s3c24xx
directory, so it's not necessary anymore to keep the globally
visible.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
  • Loading branch information
Heiko Stuebner authored and Kukjin Kim committed Mar 5, 2013
1 parent dc1a353 commit e1a621d
Show file tree
Hide file tree
Showing 28 changed files with 130 additions and 210 deletions.
1 change: 0 additions & 1 deletion arch/arm/mach-s3c24xx/clock-s3c2410.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include <mach/regs-clock.h>
#include <mach/regs-gpio.h>

#include <plat/s3c2410.h>
#include <plat/clock.h>
#include <plat/cpu.h>

Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-s3c24xx/clock-s3c2412.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
#include <mach/regs-clock.h>
#include <mach/regs-gpio.h>

#include <plat/s3c2412.h>
#include <plat/clock.h>
#include <plat/cpu.h>

Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-s3c24xx/clock-s3c2416.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <linux/init.h>
#include <linux/clk.h>

#include <plat/s3c2416.h>
#include <plat/clock.h>
#include <plat/clock-clksrc.h>
#include <plat/cpu.h>
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-s3c24xx/clock-s3c2443.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@

#include <plat/cpu-freq.h>

#include <plat/s3c2443.h>
#include <plat/clock.h>
#include <plat/clock-clksrc.h>
#include <plat/cpu.h>
Expand Down
7 changes: 2 additions & 5 deletions arch/arm/mach-s3c24xx/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,11 @@
#include <plat/cpu.h>
#include <plat/devs.h>
#include <plat/clock.h>
#include <plat/s3c2410.h>
#include <plat/s3c2412.h>
#include <plat/s3c2416.h>
#include <plat/s3c244x.h>
#include <plat/s3c2443.h>
#include <plat/cpu-freq.h>
#include <plat/pll.h>

#include "common.h"

/* table of supported CPUs */

static const char name_s3c2410[] = "S3C2410";
Expand Down
123 changes: 123 additions & 0 deletions arch/arm/mach-s3c24xx/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,129 @@
#ifndef __ARCH_ARM_MACH_S3C24XX_COMMON_H
#define __ARCH_ARM_MACH_S3C24XX_COMMON_H __FILE__

#ifdef CONFIG_CPU_S3C2410

extern int s3c2410_init(void);
extern int s3c2410a_init(void);

extern void s3c2410_map_io(void);

extern void s3c2410_init_uarts(struct s3c2410_uartcfg *cfg, int no);

extern void s3c2410_init_clocks(int xtal);

#else
#define s3c2410_init_clocks NULL
#define s3c2410_init_uarts NULL
#define s3c2410_map_io NULL
#define s3c2410_init NULL
#define s3c2410a_init NULL
#endif

#ifdef CONFIG_CPU_S3C2412

extern int s3c2412_init(void);

extern void s3c2412_map_io(void);

extern void s3c2412_init_uarts(struct s3c2410_uartcfg *cfg, int no);

extern void s3c2412_init_clocks(int xtal);

extern int s3c2412_baseclk_add(void);

extern void s3c2412_restart(char mode, const char *cmd);
#else
#define s3c2412_init_clocks NULL
#define s3c2412_init_uarts NULL
#define s3c2412_map_io NULL
#define s3c2412_init NULL
#define s3c2412_restart NULL
#endif

#ifdef CONFIG_CPU_S3C2416

struct s3c2410_uartcfg;

extern int s3c2416_init(void);

extern void s3c2416_map_io(void);

extern void s3c2416_init_uarts(struct s3c2410_uartcfg *cfg, int no);

extern void s3c2416_init_clocks(int xtal);

extern int s3c2416_baseclk_add(void);

extern void s3c2416_restart(char mode, const char *cmd);

extern void s3c2416_init_irq(void);
extern struct syscore_ops s3c2416_irq_syscore_ops;

#else
#define s3c2416_init_clocks NULL
#define s3c2416_init_uarts NULL
#define s3c2416_map_io NULL
#define s3c2416_init NULL
#define s3c2416_restart NULL
#endif

#if defined(CONFIG_CPU_S3C2440) || defined(CONFIG_CPU_S3C2442)

extern void s3c244x_map_io(void);

extern void s3c244x_init_uarts(struct s3c2410_uartcfg *cfg, int no);

extern void s3c244x_init_clocks(int xtal);

#else
#define s3c244x_init_clocks NULL
#define s3c244x_init_uarts NULL
#endif

#ifdef CONFIG_CPU_S3C2440
extern int s3c2440_init(void);

extern void s3c2440_map_io(void);
#else
#define s3c2440_init NULL
#define s3c2440_map_io NULL
#endif

#ifdef CONFIG_CPU_S3C2442
extern int s3c2442_init(void);

extern void s3c2442_map_io(void);
#else
#define s3c2442_init NULL
#define s3c2442_map_io NULL
#endif

#ifdef CONFIG_CPU_S3C2443

struct s3c2410_uartcfg;

extern int s3c2443_init(void);

extern void s3c2443_map_io(void);

extern void s3c2443_init_uarts(struct s3c2410_uartcfg *cfg, int no);

extern void s3c2443_init_clocks(int xtal);

extern int s3c2443_baseclk_add(void);

extern void s3c2443_restart(char mode, const char *cmd);

extern void s3c2443_init_irq(void);
#else
#define s3c2443_init_clocks NULL
#define s3c2443_init_uarts NULL
#define s3c2443_map_io NULL
#define s3c2443_init NULL
#define s3c2443_restart NULL
#endif

void s3c2410_restart(char mode, const char *cmd);
void s3c244x_restart(char mode, const char *cmd);

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c24xx/mach-jive.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@
#include <linux/mtd/nand_ecc.h>
#include <linux/mtd/partitions.h>

#include <plat/s3c2412.h>
#include <plat/gpio-cfg.h>
#include <plat/clock.h>
#include <plat/devs.h>
#include <plat/cpu.h>
#include <plat/pm.h>
#include <linux/platform_data/usb-s3c2410_udc.h>

#include "common.h"
#include "s3c2412-power.h"

static struct map_desc jive_iodesc[] __initdata = {
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-s3c24xx/mach-n30.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
#include <plat/cpu.h>
#include <plat/devs.h>
#include <linux/platform_data/mmc-s3cmci.h>
#include <plat/s3c2410.h>
#include <linux/platform_data/usb-s3c2410_udc.h>

#include "common.h"
Expand Down
2 changes: 0 additions & 2 deletions arch/arm/mach-s3c24xx/mach-nexcoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
#include <linux/platform_data/i2c-s3c2410.h>

#include <plat/gpio-cfg.h>
#include <plat/s3c2410.h>
#include <plat/s3c244x.h>
#include <plat/clock.h>
#include <plat/devs.h>
#include <plat/cpu.h>
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-s3c24xx/mach-otom.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include <plat/cpu.h>
#include <plat/devs.h>
#include <plat/regs-serial.h>
#include <plat/s3c2410.h>

#include "common.h"
#include "otom.h"
Expand Down
3 changes: 1 addition & 2 deletions arch/arm/mach-s3c24xx/mach-smdk2413.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,11 @@
#include <linux/platform_data/i2c-s3c2410.h>
#include <mach/fb.h>

#include <plat/s3c2410.h>
#include <plat/s3c2412.h>
#include <plat/clock.h>
#include <plat/devs.h>
#include <plat/cpu.h>

#include "common.h"
#include "common-smdk.h"

static struct map_desc smdk2413_iodesc[] __initdata = {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c24xx/mach-smdk2416.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
#include <linux/platform_data/leds-s3c24xx.h>
#include <linux/platform_data/i2c-s3c2410.h>

#include <plat/s3c2416.h>
#include <plat/gpio-cfg.h>
#include <plat/clock.h>
#include <plat/devs.h>
Expand All @@ -54,6 +53,7 @@

#include <plat/fb.h>

#include "common.h"
#include "common-smdk.h"

static struct map_desc smdk2416_iodesc[] __initdata = {
Expand Down
2 changes: 0 additions & 2 deletions arch/arm/mach-s3c24xx/mach-smdk2440.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
#include <mach/fb.h>
#include <linux/platform_data/i2c-s3c2410.h>

#include <plat/s3c2410.h>
#include <plat/s3c244x.h>
#include <plat/clock.h>
#include <plat/devs.h>
#include <plat/cpu.h>
Expand Down
3 changes: 1 addition & 2 deletions arch/arm/mach-s3c24xx/mach-smdk2443.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@
#include <mach/fb.h>
#include <linux/platform_data/i2c-s3c2410.h>

#include <plat/s3c2410.h>
#include <plat/s3c2443.h>
#include <plat/clock.h>
#include <plat/devs.h>
#include <plat/cpu.h>

#include "common.h"
#include "common-smdk.h"

static struct map_desc smdk2443_iodesc[] __initdata = {
Expand Down
3 changes: 1 addition & 2 deletions arch/arm/mach-s3c24xx/mach-vstms.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,11 @@
#include <linux/platform_data/i2c-s3c2410.h>
#include <linux/platform_data/mtd-nand-s3c2410.h>

#include <plat/s3c2410.h>
#include <plat/s3c2412.h>
#include <plat/clock.h>
#include <plat/devs.h>
#include <plat/cpu.h>

#include "common.h"

static struct map_desc vstms_iodesc[] __initdata = {
};
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-s3c24xx/pm-s3c2412.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

#include <plat/cpu.h>
#include <plat/pm.h>
#include <plat/s3c2412.h>

#include "regs-dsc.h"
#include "s3c2412-power.h"
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-s3c24xx/s3c2410.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
#include <mach/regs-clock.h>
#include <plat/regs-serial.h>

#include <plat/s3c2410.h>
#include <plat/cpu.h>
#include <plat/devs.h>
#include <plat/clock.h>
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-s3c24xx/s3c2412.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#include <plat/pm.h>
#include <plat/regs-serial.h>
#include <plat/regs-spi.h>
#include <plat/s3c2412.h>

#include "common.h"
#include "regs-dsc.h"
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-s3c24xx/s3c2416.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
#include <plat/gpio-core.h>
#include <plat/gpio-cfg.h>
#include <plat/gpio-cfg-helpers.h>
#include <plat/s3c2416.h>
#include <plat/devs.h>
#include <plat/cpu.h>
#include <plat/sdhci.h>
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-s3c24xx/s3c2440.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

#include <plat/devs.h>
#include <plat/cpu.h>
#include <plat/s3c244x.h>
#include <plat/pm.h>

#include <plat/gpio-core.h>
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-s3c24xx/s3c2442.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@

#include <plat/clock.h>
#include <plat/cpu.h>
#include <plat/s3c244x.h>
#include <plat/pm.h>

#include <plat/gpio-core.h>
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-s3c24xx/s3c2443.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include <plat/gpio-core.h>
#include <plat/gpio-cfg.h>
#include <plat/gpio-cfg-helpers.h>
#include <plat/s3c2443.h>
#include <plat/devs.h>
#include <plat/cpu.h>
#include <plat/fb-core.h>
Expand Down
2 changes: 0 additions & 2 deletions arch/arm/mach-s3c24xx/s3c244x.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
#include <plat/regs-serial.h>
#include <mach/regs-gpio.h>

#include <plat/s3c2410.h>
#include <plat/s3c244x.h>
#include <plat/clock.h>
#include <plat/devs.h>
#include <plat/cpu.h>
Expand Down
31 changes: 0 additions & 31 deletions arch/arm/plat-samsung/include/plat/s3c2410.h

This file was deleted.

Loading

0 comments on commit e1a621d

Please sign in to comment.