mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-08-23 05:36:29 -04:00
qe: fixup the snum for MPC8569 Rev2.0
Since 1.0 and 2.0 use different snum table, we fixup the snum value according to SPRN_SVR. Signed-off-by: Liu Yu <yu.liu@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
0fd2fa6cce
commit
46df64f22c
@ -331,6 +331,23 @@ static void ft_fixup_dpaa_clks(void *blob)
|
|||||||
#define ft_fixup_dpaa_clks(x)
|
#define ft_fixup_dpaa_clks(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_QE
|
||||||
|
static void ft_fixup_qe_snum(void *blob)
|
||||||
|
{
|
||||||
|
unsigned int svr;
|
||||||
|
|
||||||
|
svr = mfspr(SPRN_SVR);
|
||||||
|
if (SVR_SOC_VER(svr) == SVR_8569_E) {
|
||||||
|
if(IS_SVR_REV(svr, 1, 0))
|
||||||
|
do_fixup_by_compat_u32(blob, "fsl,qe",
|
||||||
|
"fsl,qe-num-snums", 46, 1);
|
||||||
|
else
|
||||||
|
do_fixup_by_compat_u32(blob, "fsl,qe",
|
||||||
|
"fsl,qe-num-snums", 76, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void ft_cpu_setup(void *blob, bd_t *bd)
|
void ft_cpu_setup(void *blob, bd_t *bd)
|
||||||
{
|
{
|
||||||
int off;
|
int off;
|
||||||
@ -367,6 +384,7 @@ void ft_cpu_setup(void *blob, bd_t *bd)
|
|||||||
"bus-frequency", gd->lbc_clk, 1);
|
"bus-frequency", gd->lbc_clk, 1);
|
||||||
#ifdef CONFIG_QE
|
#ifdef CONFIG_QE
|
||||||
ft_qe_setup(blob);
|
ft_qe_setup(blob);
|
||||||
|
ft_fixup_qe_snum(blob);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SYS_NS16550
|
#ifdef CONFIG_SYS_NS16550
|
||||||
|
Loading…
x
Reference in New Issue
Block a user