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

Commit

Permalink
Fix setting of baud rate when coming out of reset.
Browse files Browse the repository at this point in the history
Broadcomm convention requires that when we come out of reset
the baud rate is set to the default rate.

Original author: Mark Mendelsohn <mendelso@broadcom.com>

Change-Id: I40a34e02b3ca6eeac48fbbac8c41c35423f7fd91
  • Loading branch information
Jaikumar Ganesh committed Jul 6, 2011
1 parent 04a1a72 commit 72c78a7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions brcm_patchram_plus/brcm_patchram_plus.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,11 @@ proc_patchram()
read_event(uart_fd, buffer);
}

if (use_baudrate_for_download) {
cfsetospeed(&termios, B115200);
cfsetispeed(&termios, B115200);
tcsetattr(uart_fd, TCSANOW, &termios);
}
proc_reset();
}

Expand Down

0 comments on commit 72c78a7

Please sign in to comment.