diff options
| author | wdenk <wdenk> | 2003-12-07 22:27:15 +0000 | 
|---|---|---|
| committer | wdenk <wdenk> | 2003-12-07 22:27:15 +0000 | 
| commit | 3bbc899fc0bba51db83e4b3960f32c3ad6ba813c (patch) | |
| tree | ea3b6384e4685c53ab7bffaad09d1ab04f2b943f /cpu/mpc8xx/serial.c | |
| parent | b028f7151379c5bb6814099fbbccb31d8b07b891 (diff) | |
| download | olio-uboot-2014.01-3bbc899fc0bba51db83e4b3960f32c3ad6ba813c.tar.xz olio-uboot-2014.01-3bbc899fc0bba51db83e4b3960f32c3ad6ba813c.zip | |
Patch by Wolter Kamphuis, 05 Dec 2003:
Add support for SNMC's QS850/QS823/QS860T boards
Diffstat (limited to 'cpu/mpc8xx/serial.c')
| -rw-r--r-- | cpu/mpc8xx/serial.c | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/cpu/mpc8xx/serial.c b/cpu/mpc8xx/serial.c index faea3c36f..a875963df 100644 --- a/cpu/mpc8xx/serial.c +++ b/cpu/mpc8xx/serial.c @@ -78,6 +78,10 @@ static void serial_setdivisor(volatile cpm8xx_t *cp)  		divisor=(50*1000*1000)/16/9600;  	} +#ifdef CFG_BRGCLK_PRESCALE +	divisor /= CFG_BRGCLK_PRESCALE; +#endif +  	if(divisor<=0x1000) {  		cp->cp_brgc1=((divisor-1)<<1) | CPM_BRG_EN;  	} else { |