summaryrefslogtreecommitdiff
path: root/firmware/target/arm/rk27xx/hm60x
diff options
context:
space:
mode:
authorAndrew Ryabinin <ryabinin.a.a@gmail.com>2012-01-15 17:40:10 +0400
committerAndrew Ryabinin <ryabinin.a.a@gmail.com>2012-01-17 19:49:28 +0400
commit978e506f1b107f04e5d52776e6c059a133a0937c (patch)
tree0a64519aab7b32d6ad831609423f8cec3a586c95 /firmware/target/arm/rk27xx/hm60x
parent7b28711f6cf53112728aca4d252b1c1afb09582a (diff)
HM-60x: Implement power off.
Change-Id: Ia3ae38bba09996e1d1e6043f340dbbc3a2ad68b5
Diffstat (limited to 'firmware/target/arm/rk27xx/hm60x')
-rw-r--r--firmware/target/arm/rk27xx/hm60x/power-hm60x.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/arm/rk27xx/hm60x/power-hm60x.c b/firmware/target/arm/rk27xx/hm60x/power-hm60x.c
index 5c2abeb121..45cc390d13 100644
--- a/firmware/target/arm/rk27xx/hm60x/power-hm60x.c
+++ b/firmware/target/arm/rk27xx/hm60x/power-hm60x.c
@@ -28,7 +28,8 @@
void power_off(void)
{
-
+ GPIO_PCCON &= ~(1<<0);
+ while(1);
}
void power_init(void)