Commit 3e6f4394 authored by Kumar Gala's avatar Kumar Gala

[POWERPC] bootwrapper: convert cuboot-8{3,5}xx to dt_fixup_mac_address_by_alias

Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent ad160681
...@@ -24,7 +24,8 @@ static void platform_fixups(void) ...@@ -24,7 +24,8 @@ static void platform_fixups(void)
void *soc; void *soc;
dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); 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); dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 4, bd.bi_busfreq);
/* Unfortunately, the specific model number is encoded in the /* Unfortunately, the specific model number is encoded in the
......
...@@ -24,8 +24,9 @@ static void platform_fixups(void) ...@@ -24,8 +24,9 @@ static void platform_fixups(void)
void *soc; void *soc;
dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); 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);
bd.bi_enet2addr); 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); dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 8, bd.bi_busfreq);
/* Unfortunately, the specific model number is encoded in the /* Unfortunately, the specific model number is encoded in the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment