Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Commit

Permalink
Fix low power mode bugs in brcm_patchram_plus.
Browse files Browse the repository at this point in the history
Enable LPM before setting up HCI network device. Set WAKE and HOST_WAKE
to active high.

Change-Id: I0ec15ec46ce355413f6476d0561f4d281487be33
  • Loading branch information
Nick Pelly committed Oct 30, 2009
1 parent f4fb946 commit d439786
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions brcm_patchram_plus/brcm_patchram_plus.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ unsigned char hci_write_bd_addr[] = { 0x01, 0x01, 0xfc, 0x06,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };

unsigned char hci_write_sleep_mode[] = { 0x01, 0x27, 0xfc, 0x0c,
0x01, 0x01, 0x01, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00,
0x00, 0x00 };

int
Expand Down Expand Up @@ -565,15 +565,12 @@ main (int argc, char **argv)
proc_bdaddr();
}

if (enable_hci) {
proc_enable_hci();
}

if (enable_lpm) {
proc_enable_lpm();
}

if (enable_hci) {
proc_enable_hci();
while (1) {
sleep(UINT_MAX);
}
Expand Down

0 comments on commit d439786

Please sign in to comment.