mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-01-10 20:28:59 +00:00
ppc4xx: Fix 405EZ uart base baud calculation
With this fix, Linux correctly configures the baudrate when booting with FDT passed from U-Boot to Linux. Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
f8d7b56e00
commit
bda4dece03
1 changed files with 5 additions and 1 deletions
|
@ -914,6 +914,7 @@ void get_sys_info (PPC4xx_SYS_INFO * sysInfo)
|
||||||
unsigned long sysClkPeriodPs = ONE_BILLION / (CONFIG_SYS_CLK_FREQ/1000);
|
unsigned long sysClkPeriodPs = ONE_BILLION / (CONFIG_SYS_CLK_FREQ/1000);
|
||||||
unsigned long primad_cpudv;
|
unsigned long primad_cpudv;
|
||||||
unsigned long m;
|
unsigned long m;
|
||||||
|
unsigned long plloutb;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Read PLL Mode registers
|
* Read PLL Mode registers
|
||||||
|
@ -999,7 +1000,10 @@ void get_sys_info (PPC4xx_SYS_INFO * sysInfo)
|
||||||
sysInfo->freqEBC = (CONFIG_SYS_CLK_FREQ * sysInfo->pllFbkDiv) /
|
sysInfo->freqEBC = (CONFIG_SYS_CLK_FREQ * sysInfo->pllFbkDiv) /
|
||||||
sysInfo->pllExtBusDiv;
|
sysInfo->pllExtBusDiv;
|
||||||
|
|
||||||
sysInfo->freqUART = sysInfo->freqVCOHz;
|
plloutb = ((CONFIG_SYS_CLK_FREQ * ((cpr_pllc & PLLC_SRC_MASK) ?
|
||||||
|
sysInfo->pllFwdDivB : sysInfo->pllFwdDiv) * sysInfo->pllFbkDiv) /
|
||||||
|
sysInfo->pllFwdDivB);
|
||||||
|
sysInfo->freqUART = plloutb;
|
||||||
}
|
}
|
||||||
|
|
||||||
/********************************************
|
/********************************************
|
||||||
|
|
Loading…
Reference in a new issue