summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSzymon Dziok <b0hoon@o2.pl>2015-10-14 21:16:02 +0200
committerSzymon Dziok <b0hoon@o2.pl>2015-10-14 21:23:46 +0200
commit2172c11849673220f8fedb7b3dedcef4c68ac87f (patch)
treeed854b7912a2e2852a1b9fb0648222148756adac
parentc7fc5ca6eb2995e3af6cb553ce24136b0c1070db (diff)
downloadrockbox-2172c11.tar.gz
rockbox-2172c11.zip
Samsung YH820/YH92X: different way of powering off to avoid powering
on after powering off in a loop on YH92X. Change-Id: I5e5a4fe23c87286045ac82aff5c38bff6331a7f4
-rw-r--r--firmware/target/arm/samsung/power-yh82x_yh92x.c13
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)
void power_off(void)
{
- /* Disable interrupts on this core */
- disable_interrupt(IRQ_FIQ_STATUS);
-
- /* Mask them on both cores */
- CPU_INT_DIS = -1;
- COP_INT_DIS = -1;
-
- while (1)
- DEV_RS = -1;
+ /* power off bit */
+ GPIOK_ENABLE |= 0x40;
+ GPIOK_OUTPUT_VAL &= ~0x40;
+ GPIOK_OUTPUT_EN |= 0x40;
}