Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355316
b: refs/heads/master
c: 14cce0e
h: refs/heads/master
v: v3
  • Loading branch information
Kukjin Kim committed Feb 4, 2013
1 parent 1ade94b commit 358b878
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 46 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: d3c01e7eab0a49ac2b08bc1317d47ae31a568923
refs/heads/master: 14cce0e7754e72516af8406a90c7c3eb177632d4
40 changes: 0 additions & 40 deletions trunk/arch/arm/mach-s3c24xx/include/mach/regs-power.h

This file was deleted.

3 changes: 2 additions & 1 deletion trunk/arch/arm/mach-s3c24xx/irq-s3c2412.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@

#include <mach/regs-irq.h>
#include <mach/regs-gpio.h>
#include <mach/regs-power.h>

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

#include "s3c2412-power.h"

#define INTMSK(start, end) ((1 << ((end) + 1 - (start))) - 1)
#define INTMSK_SUB(start, end) (INTMSK(start, end) << ((start - S3C2410_IRQSUB(0))))

Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/arm/mach-s3c24xx/mach-jive.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include <linux/platform_data/mtd-nand-s3c2410.h>
#include <linux/platform_data/i2c-s3c2410.h>

#include <mach/regs-power.h>
#include <mach/regs-gpio.h>
#include <mach/regs-mem.h>
#include <mach/regs-lcd.h>
Expand All @@ -56,6 +55,8 @@
#include <plat/pm.h>
#include <linux/platform_data/usb-s3c2410_udc.h>

#include "s3c2412-power.h"

static struct map_desc jive_iodesc[] __initdata = {
};

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-s3c24xx/pm-s3c2412.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@

#include <mach/hardware.h>
#include <mach/regs-gpio.h>
#include <mach/regs-power.h>

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

#include "regs-dsc.h"
#include "s3c2412-power.h"

extern void s3c2412_sleep_enter(void);

Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/arm/mach-s3c24xx/pm-s3c2416.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@

#include <asm/cacheflush.h>

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

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

#include "s3c2412-power.h"

extern void s3c2412_sleep_enter(void);

static int s3c2416_cpu_suspend(unsigned long arg)
Expand Down
37 changes: 37 additions & 0 deletions trunk/arch/arm/mach-s3c24xx/s3c2412-power.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* Copyright (c) 2003-2006 Simtec Electronics <linux@simtec.co.uk>
* http://armlinux.simtec.co.uk/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/

#ifndef __ARCH_ARM_MACH_S3C24XX_S3C2412_POWER_H
#define __ARCH_ARM_MACH_S3C24XX_S3C2412_POWER_H __FILE__

#define S3C24XX_PWRREG(x) ((x) + S3C24XX_VA_CLKPWR)

#define S3C2412_PWRMODECON S3C24XX_PWRREG(0x20)
#define S3C2412_PWRCFG S3C24XX_PWRREG(0x24)

#define S3C2412_INFORM0 S3C24XX_PWRREG(0x70)
#define S3C2412_INFORM1 S3C24XX_PWRREG(0x74)
#define S3C2412_INFORM2 S3C24XX_PWRREG(0x78)
#define S3C2412_INFORM3 S3C24XX_PWRREG(0x7C)

#define S3C2412_PWRCFG_BATF_IRQ (1 << 0)
#define S3C2412_PWRCFG_BATF_IGNORE (2 << 0)
#define S3C2412_PWRCFG_BATF_SLEEP (3 << 0)
#define S3C2412_PWRCFG_BATF_MASK (3 << 0)

#define S3C2412_PWRCFG_STANDBYWFI_IGNORE (0 << 6)
#define S3C2412_PWRCFG_STANDBYWFI_IDLE (1 << 6)
#define S3C2412_PWRCFG_STANDBYWFI_STOP (2 << 6)
#define S3C2412_PWRCFG_STANDBYWFI_SLEEP (3 << 6)
#define S3C2412_PWRCFG_STANDBYWFI_MASK (3 << 6)

#define S3C2412_PWRCFG_RTC_MASKIRQ (1 << 8)
#define S3C2412_PWRCFG_NAND_NORST (1 << 9)

#endif /* __ARCH_ARM_MACH_S3C24XX_S3C2412_POWER_H */
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-s3c24xx/s3c2412.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include <mach/hardware.h>
#include <mach/regs-clock.h>
#include <mach/regs-gpio.h>
#include <mach/regs-power.h>

#include <plat/clock.h>
#include <plat/cpu.h>
Expand All @@ -49,6 +48,7 @@

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

#define S3C2412_SWRST (S3C24XX_VA_CLKPWR + 0x30)
#define S3C2412_SWRST_RESET (0x533C2412)
Expand Down

0 comments on commit 358b878

Please sign in to comment.