mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 14:40:41 +00:00
mpc83xx: add "fsl,soc" and "fsl,immr" compatible fixups
device_type = "soc" is being deprecated, newer device trees will use "fsl,soc" and/or "fsl,immr" for the soc nodes. This patch also adds clock-frequency property for soc nodes (the same value as bus-frequency). Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
This commit is contained in:
parent
507e2d79c9
commit
7fa9cbb00d
1 changed files with 8 additions and 0 deletions
|
@ -46,6 +46,14 @@ void ft_cpu_setup(void *blob, bd_t *bd)
|
|||
"clock-frequency", gd->core_clk, 1);
|
||||
do_fixup_by_prop_u32(blob, "device_type", "soc", 4,
|
||||
"bus-frequency", bd->bi_busfreq, 1);
|
||||
do_fixup_by_compat_u32(blob, "fsl,soc",
|
||||
"bus-frequency", bd->bi_busfreq, 1);
|
||||
do_fixup_by_compat_u32(blob, "fsl,soc",
|
||||
"clock-frequency", bd->bi_busfreq, 1);
|
||||
do_fixup_by_compat_u32(blob, "fsl,immr",
|
||||
"bus-frequency", bd->bi_busfreq, 1);
|
||||
do_fixup_by_compat_u32(blob, "fsl,immr",
|
||||
"clock-frequency", bd->bi_busfreq, 1);
|
||||
#ifdef CONFIG_QE
|
||||
ft_qe_setup(blob);
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue