Lines Matching +full:bd +full:- +full:address
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Old U-boot compatibility for Esteem 195E Hotfoot CPU Board
5 * Author: Solomon Peachy <solomon@linux-wlan.com>
18 #include "ppcboot-hotfoot.h"
20 static bd_t bd; variable
28 dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); in hotfoot_fixups()
30 dt_fixup_cpu_clocks(bd.bi_procfreq, bd.bi_procfreq, 0); in hotfoot_fixups()
31 dt_fixup_clock("/plb", bd.bi_plb_busfreq); in hotfoot_fixups()
32 dt_fixup_clock("/plb/opb", bd.bi_opbfreq); in hotfoot_fixups()
33 dt_fixup_clock("/plb/ebc", bd.bi_pci_busfreq); in hotfoot_fixups()
34 dt_fixup_clock("/plb/opb/serial@ef600300", bd.bi_procfreq / uart); in hotfoot_fixups()
35 dt_fixup_clock("/plb/opb/serial@ef600400", bd.bi_procfreq / uart); in hotfoot_fixups()
37 dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); in hotfoot_fixups()
38 dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr); in hotfoot_fixups()
41 if ((bd.bi_enet1addr[0] == 0) && in hotfoot_fixups()
42 (bd.bi_enet1addr[1] == 0) && in hotfoot_fixups()
43 (bd.bi_enet1addr[2] == 0) && in hotfoot_fixups()
44 (bd.bi_enet1addr[3] == 0) && in hotfoot_fixups()
45 (bd.bi_enet1addr[4] == 0) && in hotfoot_fixups()
46 (bd.bi_enet1addr[5] == 0)) { in hotfoot_fixups()
65 if (bd.bi_flashsize < 0x800000) { in hotfoot_fixups()
73 /* First fix up the base address */ in hotfoot_fixups()
85 regs[0] -= 0x400000; in hotfoot_fixups()
92 regs[0] -= 0x400000; in hotfoot_fixups()
99 regs[0] -= 0x400000; in hotfoot_fixups()
106 regs[0] -= 0x400000; in hotfoot_fixups()
113 regs[0] -= 0x400000; in hotfoot_fixups()
120 regs[0] -= 0x400000; in hotfoot_fixups()