diff options
author | Szymon Dziok <b0hoon@o2.pl> | 2015-10-14 21:16:02 +0200 |
---|---|---|
committer | Szymon Dziok <b0hoon@o2.pl> | 2015-10-14 21:23:46 +0200 |
commit | 2172c11849673220f8fedb7b3dedcef4c68ac87f (patch) | |
tree | ed854b7912a2e2852a1b9fb0648222148756adac /firmware/target/arm/samsung/power-yh82x_yh92x.c | |
parent | c7fc5ca6eb2995e3af6cb553ce24136b0c1070db (diff) | |
download | rockbox-2172c11849673220f8fedb7b3dedcef4c68ac87f.tar.gz rockbox-2172c11849673220f8fedb7b3dedcef4c68ac87f.zip |
Samsung YH820/YH92X: different way of powering off to avoid powering
on after powering off in a loop on YH92X.
Change-Id: I5e5a4fe23c87286045ac82aff5c38bff6331a7f4
Diffstat (limited to 'firmware/target/arm/samsung/power-yh82x_yh92x.c')
-rw-r--r-- | firmware/target/arm/samsung/power-yh82x_yh92x.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/firmware/target/arm/samsung/power-yh82x_yh92x.c b/firmware/target/arm/samsung/power-yh82x_yh92x.c index b6c18c5fd0..aed8817f2a 100644 --- a/firmware/target/arm/samsung/power-yh82x_yh92x.c +++ b/firmware/target/arm/samsung/power-yh82x_yh92x.c | |||
@@ -98,13 +98,8 @@ bool ide_powered(void) | |||
98 | 98 | ||
99 | void power_off(void) | 99 | void power_off(void) |
100 | { | 100 | { |
101 | /* Disable interrupts on this core */ | 101 | /* power off bit */ |
102 | disable_interrupt(IRQ_FIQ_STATUS); | 102 | GPIOK_ENABLE |= 0x40; |
103 | 103 | GPIOK_OUTPUT_VAL &= ~0x40; | |
104 | /* Mask them on both cores */ | 104 | GPIOK_OUTPUT_EN |= 0x40; |
105 | CPU_INT_DIS = -1; | ||
106 | COP_INT_DIS = -1; | ||
107 | |||
108 | while (1) | ||
109 | DEV_RS = -1; | ||
110 | } | 105 | } |