Samsung YH820/YH92X: different way of powering off to avoid powering
on after powering off in a loop on YH92X. Change-Id: I5e5a4fe23c87286045ac82aff5c38bff6331a7f4
This commit is contained in:
parent
c7fc5ca6eb
commit
2172c11849
1 changed files with 4 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue