19 #define TARGET_HOTFOOT
27 static void hotfoot_fixups(
void)
44 if ((bd.bi_enet1addr[0] == 0) &&
45 (bd.bi_enet1addr[1] == 0) &&
46 (bd.bi_enet1addr[2] == 0) &&
47 (bd.bi_enet1addr[3] == 0) &&
48 (bd.bi_enet1addr[4] == 0) &&
49 (bd.bi_enet1addr[5] == 0)) {
52 printf(
"Trimming devtree for single serial/eth board\n");
54 devp = finddevice(
"/plb/opb/serial@ef600300");
56 fatal(
"Can't find node for /plb/opb/serial@ef600300");
59 devp = finddevice(
"/plb/opb/ethernet@ef600900");
61 fatal(
"Can't find node for /plb/opb/ethernet@ef600900");
70 void *devp = finddevice(
"/plb/ebc/nor_flash@0");
72 fatal(
"Can't find FDT node for nor_flash!??");
74 printf(
"Fixing devtree for 4M Flash\n");
77 getprop(devp,
"reg", regs,
sizeof(regs));
81 setprop(devp,
"reg", regs,
sizeof(regs));
84 devp = finddevice(
"/plb/ebc/nor_flash@0/partition@0");
86 fatal(
"Can't find FDT node for partition@0");
87 getprop(devp,
"reg", regs, 2*
sizeof(
u32));
89 setprop(devp,
"reg", regs, 2*
sizeof(
u32));
91 devp = finddevice(
"/plb/ebc/nor_flash@0/partition@1");
93 fatal(
"Can't find FDT node for partition@1");
94 getprop(devp,
"reg", regs, 2*
sizeof(
u32));
96 setprop(devp,
"reg", regs, 2*
sizeof(
u32));
98 devp = finddevice(
"/plb/ebc/nor_flash@0/partition@2");
100 fatal(
"Can't find FDT node for partition@2");
101 getprop(devp,
"reg", regs, 2*
sizeof(
u32));
103 setprop(devp,
"reg", regs, 2*
sizeof(
u32));
105 devp = finddevice(
"/plb/ebc/nor_flash@0/partition@3");
107 fatal(
"Can't find FDT node for partition@3");
108 getprop(devp,
"reg", regs, 2*
sizeof(
u32));
110 setprop(devp,
"reg", regs, 2*
sizeof(
u32));
112 devp = finddevice(
"/plb/ebc/nor_flash@0/partition@4");
114 fatal(
"Can't find FDT node for partition@4");
115 getprop(devp,
"reg", regs, 2*
sizeof(
u32));
117 setprop(devp,
"reg", regs, 2*
sizeof(
u32));
119 devp = finddevice(
"/plb/ebc/nor_flash@0/partition@6");
121 fatal(
"Can't find FDT node for partition@6");
122 getprop(devp,
"reg", regs, 2*
sizeof(
u32));
124 setprop(devp,
"reg", regs, 2*
sizeof(
u32));
127 devp = finddevice(
"/plb/ebc/nor_flash@0/partition@5");
129 fatal(
"Can't find FDT node for partition@5");
135 unsigned long r6,
unsigned long r7)