summaryrefslogtreecommitdiffstats
path: root/utils/hwstub/stub
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-08-11 19:17:57 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-08-11 19:17:57 +0200
commit4aae8274b3a614de008985b493cd0162fc2557cb (patch)
tree6eae6e0165c9108d2e1da57822b945d5862de707 /utils/hwstub/stub
parent0ec1536d64d98d0b3a4affda3fc1f54d1f02f3c1 (diff)
downloadrockbox-4aae8274b3a614de008985b493cd0162fc2557cb.tar.gz
rockbox-4aae8274b3a614de008985b493cd0162fc2557cb.tar.bz2
rockbox-4aae8274b3a614de008985b493cd0162fc2557cb.zip
hwstub: fix power off and reboot code on stmp
Change-Id: Ia717c5e6f78a2cecc6a0628e4c667ea39f32c44c
Diffstat (limited to 'utils/hwstub/stub')
-rw-r--r--utils/hwstub/stub/stmp/target.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/hwstub/stub/stmp/target.c b/utils/hwstub/stub/stmp/target.c
index da46d50779..390480a71c 100644
--- a/utils/hwstub/stub/stmp/target.c
+++ b/utils/hwstub/stub/stmp/target.c
@@ -69,10 +69,10 @@ void power_off(void)
break;
case STMP3700:
case STMP3770:
- *(volatile uint32_t *)(HW_POWER_BASE + 0xe0) = 0x3e770003;
+ *(volatile uint32_t *)(HW_POWER_BASE + 0xe0) = 0x3e770001;
break;
case STMP3780:
- *(volatile uint32_t *)(HW_POWER_BASE + 0x100) = 0x3e770003;
+ *(volatile uint32_t *)(HW_POWER_BASE + 0x100) = 0x3e770001;
break;
default:
break;
@@ -126,7 +126,7 @@ void clkctrl_reset(void)
*(volatile uint32_t *)(HW_CLKCTRL_BASE + 0xf0) = 0x1;
break;
case STMP3780:
- *(volatile uint32_t *)(HW_CLKCTRL_BASE + 0x100) = 0x1;
+ *(volatile uint32_t *)(HW_CLKCTRL_BASE + 0x120) = 0x1;
break;
default:
break;