Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279980
b: refs/heads/master
c: 5753897
h: refs/heads/master
v: v3
  • Loading branch information
Heiko Stuebner authored and Russell King committed Jan 5, 2012
1 parent 2bf7a85 commit b930cf7
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 43 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e11e909df5d1ae876502f9e5f714852aa6548b58
refs/heads/master: 57538975917d4b0c467dbdd21328337f059bc027
22 changes: 0 additions & 22 deletions trunk/arch/arm/mach-s3c2410/include/mach/reset.h

This file was deleted.

5 changes: 0 additions & 5 deletions trunk/arch/arm/mach-s3c2410/include/mach/system-reset.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,13 @@
#include <mach/hardware.h>
#include <plat/watchdog-reset.h>

extern void (*s3c24xx_reset_hook)(void);

static void
arch_reset(char mode, const char *cmd)
{
if (mode == 's') {
soft_restart(0);
}

if (s3c24xx_reset_hook)
s3c24xx_reset_hook();

arch_wdt_reset();

/* we'll take a jump through zero as a poor second */
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/arm/mach-s3c2410/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@

#include <mach/map.h>
#include <mach/idle.h>
#include <mach/reset.h>

#include <mach/regs-clock.h>

void (*s3c24xx_idle)(void);
void (*s3c24xx_reset_hook)(void);

void s3c24xx_default_idle(void)
{
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-s3c2412/mach-jive.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#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>
Expand Down Expand Up @@ -661,4 +662,5 @@ MACHINE_START(JIVE, "JIVE")
.map_io = jive_map_io,
.init_machine = jive_machine_init,
.timer = &s3c24xx_timer,
.restart = s3c2412_restart,
MACHINE_END
3 changes: 3 additions & 0 deletions trunk/arch/arm/mach-s3c2412/mach-smdk2413.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ MACHINE_START(S3C2413, "S3C2413")
.map_io = smdk2413_map_io,
.init_machine = smdk2413_machine_init,
.timer = &s3c24xx_timer,
.restart = s3c2412_restart,
MACHINE_END

MACHINE_START(SMDK2412, "SMDK2412")
Expand All @@ -145,6 +146,7 @@ MACHINE_START(SMDK2412, "SMDK2412")
.map_io = smdk2413_map_io,
.init_machine = smdk2413_machine_init,
.timer = &s3c24xx_timer,
.restart = s3c2412_restart,
MACHINE_END

MACHINE_START(SMDK2413, "SMDK2413")
Expand All @@ -156,4 +158,5 @@ MACHINE_START(SMDK2413, "SMDK2413")
.map_io = smdk2413_map_io,
.init_machine = smdk2413_machine_init,
.timer = &s3c24xx_timer,
.restart = s3c2412_restart,
MACHINE_END
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-s3c2412/mach-vstms.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,5 @@ MACHINE_START(VSTMS, "VSTMS")
.init_machine = vstms_init,
.map_io = vstms_map_io,
.timer = &s3c24xx_timer,
.restart = s3c2412_restart,
MACHINE_END
10 changes: 4 additions & 6 deletions trunk/arch/arm/mach-s3c2412/s3c2412.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include <asm/proc-fns.h>
#include <asm/irq.h>

#include <mach/reset.h>
#include <mach/idle.h>

#include <plat/cpu-freq.h>
Expand Down Expand Up @@ -131,8 +130,11 @@ static void s3c2412_idle(void)
cpu_do_idle();
}

static void s3c2412_hard_reset(void)
void s3c2412_restart(char mode, const char *cmd)
{
if (mode == 's')
soft_restart(0);

/* errata "Watch-dog/Software Reset Problem" specifies that
* this reset must be done with the SYSCLK sourced from
* EXTCLK instead of FOUT to avoid a glitch in the reset
Expand Down Expand Up @@ -164,10 +166,6 @@ void __init s3c2412_map_io(void)

s3c24xx_idle = s3c2412_idle;

/* set custom reset hook */

s3c24xx_reset_hook = s3c2412_hard_reset;

/* register our io-tables */

iotable_init(s3c2412_iodesc, ARRAY_SIZE(s3c2412_iodesc));
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-s3c2416/mach-smdk2416.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,4 +251,5 @@ MACHINE_START(SMDK2416, "SMDK2416")
.map_io = smdk2416_map_io,
.init_machine = smdk2416_machine_init,
.timer = &s3c24xx_timer,
.restart = s3c2416_restart,
MACHINE_END
7 changes: 4 additions & 3 deletions trunk/arch/arm/mach-s3c2416/s3c2416.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#include <asm/proc-fns.h>
#include <asm/irq.h>

#include <mach/reset.h>
#include <mach/idle.h>
#include <mach/regs-s3c2443-clock.h>

Expand Down Expand Up @@ -76,16 +75,18 @@ static struct sys_device s3c2416_sysdev = {
.cls = &s3c2416_sysclass,
};

static void s3c2416_hard_reset(void)
void s3c2416_restart(char mode, const char *cmd)
{
if (mode == 's')
soft_restart(0);

__raw_writel(S3C2443_SWRST_RESET, S3C2443_SWRST);
}

int __init s3c2416_init(void)
{
printk(KERN_INFO "S3C2416: Initializing architecture\n");

s3c24xx_reset_hook = s3c2416_hard_reset;
/* s3c24xx_idle = s3c2416_idle; */

/* change WDT IRQ number */
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-s3c2443/mach-smdk2443.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,5 @@ MACHINE_START(SMDK2443, "SMDK2443")
.map_io = smdk2443_map_io,
.init_machine = smdk2443_machine_init,
.timer = &s3c24xx_timer,
.restart = s3c2443_restart,
MACHINE_END
8 changes: 4 additions & 4 deletions trunk/arch/arm/mach-s3c2443/s3c2443.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <asm/irq.h>

#include <mach/regs-s3c2443-clock.h>
#include <mach/reset.h>

#include <plat/gpio-core.h>
#include <plat/gpio-cfg.h>
Expand All @@ -57,17 +56,18 @@ static struct sys_device s3c2443_sysdev = {
.cls = &s3c2443_sysclass,
};

static void s3c2443_hard_reset(void)
void s3c2443_restart(char mode, const char *cmd)
{
if (mode == 's')
soft_restart(0);

__raw_writel(S3C2443_SWRST_RESET, S3C2443_SWRST);
}

int __init s3c2443_init(void)
{
printk("S3C2443: Initialising architecture\n");

s3c24xx_reset_hook = s3c2443_hard_reset;

s3c_nand_setname("s3c2412-nand");
s3c_fb_setname("s3c2443-fb");

Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/arm/plat-samsung/include/plat/s3c2412.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ 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
2 changes: 2 additions & 0 deletions trunk/arch/arm/plat-samsung/include/plat/s3c2416.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ extern void s3c2416_init_clocks(int xtal);

extern int s3c2416_baseclk_add(void);

extern void s3c2416_restart(char mode, const char *cmd);
#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
2 changes: 2 additions & 0 deletions trunk/arch/arm/plat-samsung/include/plat/s3c2443.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ extern void s3c2443_init_clocks(int xtal);

extern int s3c2443_baseclk_add(void);

extern void s3c2443_restart(char mode, const char *cmd);
#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

/* common code used by s3c2443 and others.
Expand Down

0 comments on commit b930cf7

Please sign in to comment.