[U-Boot] [PATCH v2] MPC8260: fixup device tree by property instead of path
Wolfgang Denk
wd at denx.de
Fri May 15 22:03:37 CEST 2009
In message <1242134255-7295-1-git-send-email-wd at denx.de> you wrote:
> cpu/mpc8260/cpu.c used to use do_fixup_by_path_u32() to update the
> clock frequencies in the device tree, using a CPU path
> "/cpus/OF_CPU", with OF_CPU beind defined in the board config file.
>
> However, this does not work when one board config file (here:
> MPC8260ADS.h) is intended to be used for several diffrent CPUs and
> therefor contains a generic definition like "cpu at 0", as the device
> trees that will then be loaded will contain specific names like
> "PowerPC,8272 at 0".
>
> We switch to using do_fixup_by_prop_u32() instead, so we can search
> for device_type="cpu", as it is done in other architectures, too.
>
> Signed-off-by: Wolfgang Denk <wd at denx.de>
> Cc: Heiko Schocher <hs at denx.de>
> ---
> v2: Fix typo in Heiko's name.
>
> Heiko, could you please test if this works with mgcoge, too?
>
> cpu/mpc8260/cpu.c | 11 ++++++-----
> 1 files changed, 6 insertions(+), 5 deletions(-)
Applied.
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Only two things are infinite, the universe and human stupidity, and
I'm not sure about the former. -- Albert Einstein
More information about the U-Boot
mailing list