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 | |
| parent | c7fc5ca6eb2995e3af6cb553ce24136b0c1070db (diff) | |
| download | rockbox-2172c11849673220f8fedb7b3dedcef4c68ac87f.zip rockbox-2172c11849673220f8fedb7b3dedcef4c68ac87f.tar.gz rockbox-2172c11849673220f8fedb7b3dedcef4c68ac87f.tar.bz2 rockbox-2172c11849673220f8fedb7b3dedcef4c68ac87f.tar.xz | |
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')
| -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 b6c18c5..aed8817 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; } |