Browse Source

Fix up poweroff function

Change-Id: I8c73314bed4c9ed487034313150c709cb0170a15
Target:LS2G1A
master
lixuefeng 9 years ago
parent
commit
41d3b60aed
  1. 1
      Targets/Bonito2g1a/Bonito/tgt_machdep.c

1
Targets/Bonito2g1a/Bonito/tgt_machdep.c

@ -332,6 +332,7 @@ void tgt_reboot()
void tgt_poweroff()
{
*((volatile unsigned int *)LS1A_PM1_STS_REG) = 0Xffff;//clear wakeup enable bit
*((volatile unsigned int *)LS1A_PM1_EN_REG) = 0X0;//clear wakeup enable bit
*((volatile unsigned int *)LS1A_GPE0_EN_REG) = 0X0;//clear wakeup enable bit
*((volatile unsigned int *)LS1A_PM1_CNT_REG) |= (0x7<<10)|(0x1<<13);//set 1a to s5 mode

Loading…
Cancel
Save