Skip to content

Commit

Permalink
ARM: EXYNOS: move mach/pmu.h file into common.h
Browse files Browse the repository at this point in the history
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
  • Loading branch information
Kukjin Kim committed Jan 10, 2013
1 parent c48bcc2 commit ccd458c
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 38 deletions.
1 change: 0 additions & 1 deletion arch/arm/mach-exynos/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include <mach/regs-irq.h>
#include <mach/regs-pmu.h>
#include <mach/regs-gpio.h>
#include <mach/pmu.h>

#include <plat/cpu.h>
#include <plat/clock.h>
Expand Down
20 changes: 20 additions & 0 deletions arch/arm/mach-exynos/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,24 @@ extern struct smp_operations exynos_smp_ops;

extern void exynos_cpu_die(unsigned int cpu);

/* PMU(Power Management Unit) support */

#define PMU_TABLE_END NULL

enum sys_powerdown {
SYS_AFTR,
SYS_LPA,
SYS_SLEEP,
NUM_SYS_POWERDOWN,
};

extern unsigned long l2x0_regs_phys;
struct exynos_pmu_conf {
void __iomem *reg;
unsigned int val[NUM_SYS_POWERDOWN];
};

extern void exynos_sys_powerdown_conf(enum sys_powerdown mode);
extern void s3c_cpu_resume(void);

#endif /* __ARCH_ARM_MACH_EXYNOS_COMMON_H */
3 changes: 2 additions & 1 deletion arch/arm/mach-exynos/cpuidle.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@
#include <asm/cpuidle.h>
#include <mach/regs-clock.h>
#include <mach/regs-pmu.h>
#include <mach/pmu.h>

#include <plat/cpu.h>

#include "common.h"

#define REG_DIRECTGO_ADDR (samsung_rev() == EXYNOS4210_REV_1_1 ? \
S5P_INFORM7 : (samsung_rev() == EXYNOS4210_REV_1_0 ? \
(S5P_VA_SYSRAM + 0x24) : S5P_INFORM0))
Expand Down
34 changes: 0 additions & 34 deletions arch/arm/mach-exynos/include/mach/pmu.h

This file was deleted.

3 changes: 2 additions & 1 deletion arch/arm/mach-exynos/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
#include <mach/regs-clock.h>
#include <mach/regs-pmu.h>
#include <mach/pm-core.h>
#include <mach/pmu.h>

#include "common.h"

static struct sleep_save exynos4_set_clksrc[] = {
{ .reg = EXYNOS4_CLKSRC_MASK_TOP , .val = 0x00000001, },
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-exynos/pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
#include <linux/bug.h>

#include <mach/regs-clock.h>
#include <mach/pmu.h>

#include "common.h"

static struct exynos_pmu_conf *exynos_pmu_config;

Expand Down

0 comments on commit ccd458c

Please sign in to comment.