-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 137508 b: refs/heads/master c: 2261e0e h: refs/heads/master v: v3
- Loading branch information
Ben Dooks
committed
Mar 8, 2009
1 parent
cb13b47
commit 5adc112
Showing
5 changed files
with
312 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 549c7e33aeb9bfe441ecf68639d2227bb90978e7 | ||
refs/heads/master: 2261e0e6e3991d4c5f33e9fedadfc465eedc05a7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* linux/arch/arm/plat-s3c24xx/include/plat/pll.h | ||
* | ||
* Copyright 2008 Simtec Electronics | ||
* Ben Dooks <ben@simtec.co.uk> | ||
* http://armlinux.simtec.co.uk/ | ||
* | ||
* S3C24xx - PM core support for arch/arm/plat-s3c/pm.c | ||
* | ||
* 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. | ||
*/ | ||
|
||
static inline void s3c_pm_debug_init_uart(void) | ||
{ | ||
unsigned long tmp = __raw_readl(S3C2410_CLKCON); | ||
|
||
/* re-start uart clocks */ | ||
tmp |= S3C2410_CLKCON_UART0; | ||
tmp |= S3C2410_CLKCON_UART1; | ||
tmp |= S3C2410_CLKCON_UART2; | ||
|
||
__raw_writel(tmp, S3C2410_CLKCON); | ||
udelay(10); | ||
} | ||
|
||
static inline void s3c_pm_arch_prepare_irqs(void) | ||
{ | ||
__raw_writel(s3c_irqwake_intmask, S3C2410_INTMSK); | ||
__raw_writel(s3c_irqwake_eintmask, S3C2410_EINTMASK); | ||
|
||
/* ack any outstanding external interrupts before we go to sleep */ | ||
|
||
__raw_writel(__raw_readl(S3C2410_EINTPEND), S3C2410_EINTPEND); | ||
__raw_writel(__raw_readl(S3C2410_INTPND), S3C2410_INTPND); | ||
__raw_writel(__raw_readl(S3C2410_SRCPND), S3C2410_SRCPND); | ||
|
||
} | ||
|
||
static inline void s3c_pm_arch_stop_clocks(void) | ||
{ | ||
__raw_writel(0x00, S3C2410_CLKCON); /* turn off clocks over sleep */ | ||
} | ||
|
||
static void s3c_pm_show_resume_irqs(int start, unsigned long which, | ||
unsigned long mask); | ||
|
||
static inline void s3c_pm_arch_show_resume_irqs(void) | ||
{ | ||
S3C_PMDBG("post sleep: IRQs 0x%08x, 0x%08x\n", | ||
__raw_readl(S3C2410_SRCPND), | ||
__raw_readl(S3C2410_EINTPEND)); | ||
|
||
s3c_pm_show_resume_irqs(IRQ_EINT0, __raw_readl(S3C2410_SRCPND), | ||
s3c_irqwake_intmask); | ||
|
||
s3c_pm_show_resume_irqs(IRQ_EINT4-4, __raw_readl(S3C2410_EINTPEND), | ||
s3c_irqwake_eintmask); | ||
} |
Oops, something went wrong.