From cb3208cbac65f8ec0f88cea4ef9149ee55a87e1f Mon Sep 17 00:00:00 2001 From: Minkyu Kang Date: Tue, 8 Dec 2009 10:15:26 +0900 Subject: [PATCH] s5pc110: sleep: move the show_hw_revision function Signed-off-by: Minkyu Kang --- board/samsung/universal/universal.c | 3 +++ cpu/arm_cortexa8/s5pc1xx/sleep.c | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/board/samsung/universal/universal.c b/board/samsung/universal/universal.c index f599d27..049fc5c 100644 --- a/board/samsung/universal/universal.c +++ b/board/samsung/universal/universal.c @@ -1507,6 +1507,7 @@ void board_sleep_init(void) printf("Turned off regulators. Preparing to sleep. [%s:%d]\n", __FILE__, __LINE__); } + void board_sleep_resume(void) { unsigned int value; @@ -1515,6 +1516,8 @@ void board_sleep_resume(void) struct s5pc110_gpio *gpio = (struct s5pc110_gpio *)S5PC110_GPIO_BASE; + show_hw_revision(); + i2c_set_bus_num(I2C_PMIC); addr = 0xCC >> 1; if (i2c_probe(addr)) { diff --git a/cpu/arm_cortexa8/s5pc1xx/sleep.c b/cpu/arm_cortexa8/s5pc1xx/sleep.c index 4f98b73..b8e89a4 100644 --- a/cpu/arm_cortexa8/s5pc1xx/sleep.c +++ b/cpu/arm_cortexa8/s5pc1xx/sleep.c @@ -391,8 +391,6 @@ static int s5pc110_sleep(int mode) printf("Wakeup Source: 0x%08x\n", value); value = readl(S5PC110_WAKEUP_STAT); - show_hw_revision(); - counter++; board_sleep_resume(); return 0; -- 2.7.4