Skip to content

Commit

Permalink
[POWERPC] bootwrapper: convert cuboot-8{3,5}xx to dt_fixup_mac_addres…
Browse files Browse the repository at this point in the history
…s_by_alias

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Kumar Gala committed Jan 24, 2008
1 parent ad16068 commit 3e6f439
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion arch/powerpc/boot/cuboot-83xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ static void platform_fixups(void)
void *soc;

dt_fixup_memory(bd.bi_memstart, bd.bi_memsize);
dt_fixup_mac_addresses(bd.bi_enetaddr, bd.bi_enet1addr);
dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr);
dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr);
dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 4, bd.bi_busfreq);

/* Unfortunately, the specific model number is encoded in the
Expand Down
5 changes: 3 additions & 2 deletions arch/powerpc/boot/cuboot-85xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ static void platform_fixups(void)
void *soc;

dt_fixup_memory(bd.bi_memstart, bd.bi_memsize);
dt_fixup_mac_addresses(bd.bi_enetaddr, bd.bi_enet1addr,
bd.bi_enet2addr);
dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr);
dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr);
dt_fixup_mac_address_by_alias("ethernet2", bd.bi_enet2addr);
dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 8, bd.bi_busfreq);

/* Unfortunately, the specific model number is encoded in the
Expand Down

0 comments on commit 3e6f439

Please sign in to comment.