|
|
@ -75,16 +75,16 @@ error: |
|
|
|
void ft_qe_setup(void *blob) |
|
|
|
void ft_qe_setup(void *blob) |
|
|
|
{ |
|
|
|
{ |
|
|
|
do_fixup_by_prop_u32(blob, "device_type", "qe", 4, |
|
|
|
do_fixup_by_prop_u32(blob, "device_type", "qe", 4, |
|
|
|
"bus-frequency", gd->qe_clk, 1); |
|
|
|
"bus-frequency", gd->arch.qe_clk, 1); |
|
|
|
do_fixup_by_prop_u32(blob, "device_type", "qe", 4, |
|
|
|
do_fixup_by_prop_u32(blob, "device_type", "qe", 4, |
|
|
|
"brg-frequency", gd->arch.brg_clk, 1); |
|
|
|
"brg-frequency", gd->arch.brg_clk, 1); |
|
|
|
do_fixup_by_compat_u32(blob, "fsl,qe", |
|
|
|
do_fixup_by_compat_u32(blob, "fsl,qe", |
|
|
|
"clock-frequency", gd->qe_clk, 1); |
|
|
|
"clock-frequency", gd->arch.qe_clk, 1); |
|
|
|
do_fixup_by_compat_u32(blob, "fsl,qe", |
|
|
|
do_fixup_by_compat_u32(blob, "fsl,qe", |
|
|
|
"bus-frequency", gd->qe_clk, 1); |
|
|
|
"bus-frequency", gd->arch.qe_clk, 1); |
|
|
|
do_fixup_by_compat_u32(blob, "fsl,qe", |
|
|
|
do_fixup_by_compat_u32(blob, "fsl,qe", |
|
|
|
"brg-frequency", gd->arch.brg_clk, 1); |
|
|
|
"brg-frequency", gd->arch.brg_clk, 1); |
|
|
|
do_fixup_by_compat_u32(blob, "fsl,qe-gtm", |
|
|
|
do_fixup_by_compat_u32(blob, "fsl,qe-gtm", |
|
|
|
"clock-frequency", gd->qe_clk / 2, 1); |
|
|
|
"clock-frequency", gd->arch.qe_clk / 2, 1); |
|
|
|
fdt_fixup_qe_firmware(blob); |
|
|
|
fdt_fixup_qe_firmware(blob); |
|
|
|
} |
|
|
|
} |
|
|
|