Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106898
b: refs/heads/master
c: f023bf0
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Herrenschmidt committed Jul 28, 2008
1 parent 1b290a9 commit f5fb5fa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 83ac6a1ed40bfbe185cf2bac5505d8d97aad8b1d
refs/heads/master: f023bf0f91f1f1b926ec8f5cf0ee24be134bf024
12 changes: 11 additions & 1 deletion trunk/arch/powerpc/platforms/powermac/udbg_scc.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,23 @@ void udbg_scc_init(int force_scc)
out_8(sccc, 0xc0);

/* If SCC was the OF output port, read the BRG value, else
* Setup for 57600 8N1
* Setup for 38400 or 57600 8N1 depending on the machine
*/
if (ch_def != NULL) {
out_8(sccc, 13);
scc_inittab[1] = in_8(sccc);
out_8(sccc, 12);
scc_inittab[3] = in_8(sccc);
} else if (machine_is_compatible("RackMac1,1")
|| machine_is_compatible("RackMac1,2")
|| machine_is_compatible("MacRISC4")) {
/* Xserves and G5s default to 57600 */
scc_inittab[1] = 0;
scc_inittab[3] = 0;
} else {
/* Others default to 38400 */
scc_inittab[1] = 0;
scc_inittab[3] = 1;
}

for (i = 0; i < sizeof(scc_inittab); ++i)
Expand Down

0 comments on commit f5fb5fa

Please sign in to comment.