Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281708
b: refs/heads/master
c: 51ccd81
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown authored and Kukjin Kim committed Dec 3, 2011
1 parent 73864a3 commit 038c566
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c5c32c965dad8456dd2f6e7c1b05183258593e75
refs/heads/master: 51ccd81d9b1220ac1729434ac1ed5b0142001097
15 changes: 15 additions & 0 deletions trunk/arch/arm/mach-s3c64xx/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ static struct sleep_save misc_save[] = {

SAVE_ITEM(S3C64XX_SDMA_SEL),
SAVE_ITEM(S3C64XX_MODEM_MIFPCON),

SAVE_ITEM(S3C64XX_NORMAL_CFG),
};

void s3c_pm_configure_extint(void)
Expand Down Expand Up @@ -181,10 +183,23 @@ static void s3c64xx_pm_prepare(void)

static int s3c64xx_pm_init(void)
{
u32 val;

pm_cpu_prep = s3c64xx_pm_prepare;
pm_cpu_sleep = s3c64xx_cpu_suspend;
pm_uart_udivslot = 1;

/*
* Unconditionally disable power domains that contain only
* blocks which have no mainline driver support.
*/
val = __raw_readl(S3C64XX_NORMAL_CFG);
val &= ~(S3C64XX_NORMALCFG_DOMAIN_G_ON |
S3C64XX_NORMALCFG_DOMAIN_V_ON |
S3C64XX_NORMALCFG_DOMAIN_I_ON |
S3C64XX_NORMALCFG_DOMAIN_P_ON);
__raw_writel(val, S3C64XX_NORMAL_CFG);

#ifdef CONFIG_S3C_PM_DEBUG_LED_SMDK
gpio_request(S3C64XX_GPN(12), "DEBUG_LED0");
gpio_request(S3C64XX_GPN(13), "DEBUG_LED1");
Expand Down

0 comments on commit 038c566

Please sign in to comment.