Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355305
b: refs/heads/master
c: d8fdec1
h: refs/heads/master
i:
  355303: 15ed998
v: v3
  • Loading branch information
Heiko Stuebner authored and Kukjin Kim committed Feb 3, 2013
1 parent c6e9965 commit 4d10de2
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 20 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: 1f629b7a3ced8e73784a9ae3b0d9039496878f18
refs/heads/master: d8fdec168542971f6ffbf0883c8be2e9bbb22ca6
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-s3c24xx/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@
void s3c2410_restart(char mode, const char *cmd);
void s3c244x_restart(char mode, const char *cmd);

extern struct syscore_ops s3c24xx_irq_syscore_ops;

#endif /* __ARCH_ARM_MACH_S3C24XX_COMMON_H */
10 changes: 8 additions & 2 deletions trunk/arch/arm/mach-s3c24xx/irq-pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/syscore_ops.h>

#include <plat/cpu.h>
#include <plat/pm.h>
Expand Down Expand Up @@ -64,7 +65,7 @@ static unsigned long save_extint[3];
static unsigned long save_eintflt[4];
static unsigned long save_eintmask;

int s3c24xx_irq_suspend(void)
static int s3c24xx_irq_suspend(void)
{
unsigned int i;

Expand All @@ -80,7 +81,7 @@ int s3c24xx_irq_suspend(void)
return 0;
}

void s3c24xx_irq_resume(void)
static void s3c24xx_irq_resume(void)
{
unsigned int i;

Expand All @@ -93,3 +94,8 @@ void s3c24xx_irq_resume(void)
s3c_pm_do_restore(irq_save, ARRAY_SIZE(irq_save));
__raw_writel(save_eintmask, S3C24XX_EINTMASK);
}

struct syscore_ops s3c24xx_irq_syscore_ops = {
.suspend = s3c24xx_irq_suspend,
.resume = s3c24xx_irq_resume,
};
4 changes: 3 additions & 1 deletion trunk/arch/arm/mach-s3c24xx/s3c2410.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
#include <plat/gpio-cfg.h>
#include <plat/gpio-cfg-helpers.h>

#include "common.h"

/* Initial IO mappings */

static struct map_desc s3c2410_iodesc[] __initdata = {
Expand Down Expand Up @@ -182,8 +184,8 @@ int __init s3c2410_init(void)

#ifdef CONFIG_PM
register_syscore_ops(&s3c2410_pm_syscore_ops);
#endif
register_syscore_ops(&s3c24xx_irq_syscore_ops);
#endif

return device_register(&s3c2410_dev);
}
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/arm/mach-s3c24xx/s3c2412.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include <plat/regs-spi.h>
#include <plat/s3c2412.h>

#include "common.h"
#include "regs-dsc.h"

#define S3C2412_SWRST (S3C24XX_VA_CLKPWR + 0x30)
Expand Down Expand Up @@ -245,8 +246,8 @@ int __init s3c2412_init(void)

#ifdef CONFIG_PM
register_syscore_ops(&s3c2412_pm_syscore_ops);
#endif
register_syscore_ops(&s3c24xx_irq_syscore_ops);
#endif

return device_register(&s3c2412_dev);
}
4 changes: 3 additions & 1 deletion trunk/arch/arm/mach-s3c24xx/s3c2416.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
#include <plat/rtc-core.h>
#include <plat/spi-core.h>

#include "common.h"

static struct map_desc s3c2416_iodesc[] __initdata = {
IODESC_ENT(WATCHDOG),
IODESC_ENT(CLKPWR),
Expand Down Expand Up @@ -105,9 +107,9 @@ int __init s3c2416_init(void)

#ifdef CONFIG_PM
register_syscore_ops(&s3c2416_pm_syscore_ops);
#endif
register_syscore_ops(&s3c24xx_irq_syscore_ops);
register_syscore_ops(&s3c2416_irq_syscore_ops);
#endif

return device_register(&s3c2416_dev);
}
Expand Down
4 changes: 3 additions & 1 deletion trunk/arch/arm/mach-s3c24xx/s3c2440.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
#include <plat/gpio-cfg.h>
#include <plat/gpio-cfg-helpers.h>

#include "common.h"

static struct device s3c2440_dev = {
.bus = &s3c2440_subsys,
};
Expand All @@ -57,9 +59,9 @@ int __init s3c2440_init(void)

#ifdef CONFIG_PM
register_syscore_ops(&s3c2410_pm_syscore_ops);
register_syscore_ops(&s3c24xx_irq_syscore_ops);
#endif
register_syscore_ops(&s3c244x_pm_syscore_ops);
register_syscore_ops(&s3c24xx_irq_syscore_ops);

/* register our system device for everything else */

Expand Down
4 changes: 3 additions & 1 deletion trunk/arch/arm/mach-s3c24xx/s3c2442.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
#include <plat/gpio-cfg.h>
#include <plat/gpio-cfg-helpers.h>

#include "common.h"

/* S3C2442 extended clock support */

static unsigned long s3c2442_camif_upll_round(struct clk *clk,
Expand Down Expand Up @@ -172,9 +174,9 @@ int __init s3c2442_init(void)

#ifdef CONFIG_PM
register_syscore_ops(&s3c2410_pm_syscore_ops);
register_syscore_ops(&s3c24xx_irq_syscore_ops);
#endif
register_syscore_ops(&s3c244x_pm_syscore_ops);
register_syscore_ops(&s3c24xx_irq_syscore_ops);

return device_register(&s3c2442_dev);
}
Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/arm/plat-s3c24xx/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/device.h>
#include <linux/syscore_ops.h>
#include <linux/irqdomain.h>

#include <asm/mach/irq.h>
Expand Down Expand Up @@ -627,8 +626,3 @@ void __init s3c24xx_init_irq(void)
s3c24xx_init_intc(NULL, &init_subint[0], main_intc, 0x4a000018);
s3c24xx_init_intc(NULL, &init_eint[0], main_intc, 0x560000a4);
}

struct syscore_ops s3c24xx_irq_syscore_ops = {
.suspend = s3c24xx_irq_suspend,
.resume = s3c24xx_irq_resume,
};
6 changes: 0 additions & 6 deletions trunk/arch/arm/plat-samsung/include/plat/pm.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,11 @@ extern void s3c_pm_do_restore_core(struct sleep_save *ptr, int count);
#ifdef CONFIG_PM
extern int s3c_irq_wake(struct irq_data *data, unsigned int state);
extern int s3c_irqext_wake(struct irq_data *data, unsigned int state);
extern int s3c24xx_irq_suspend(void);
extern void s3c24xx_irq_resume(void);
#else
#define s3c_irq_wake NULL
#define s3c_irqext_wake NULL
#define s3c24xx_irq_suspend NULL
#define s3c24xx_irq_resume NULL
#endif

extern struct syscore_ops s3c24xx_irq_syscore_ops;

/* PM debug functions */

#ifdef CONFIG_SAMSUNG_PM_DEBUG
Expand Down

0 comments on commit 4d10de2

Please sign in to comment.