cuboot-hotfoot.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) | cuboot-hotfoot.c (1fd02f6605b855b4af2883f29a2abc88bdf17857) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Old U-boot compatibility for Esteem 195E Hotfoot CPU Board 4 * 5 * Author: Solomon Peachy <solomon@linux-wlan.com> 6 */ 7 8#include "ops.h" --- 56 unchanged lines hidden (view full) --- 65 if (bd.bi_flashsize < 0x800000) { 66 u32 regs[NUM_REGS]; 67 void *devp = finddevice("/plb/ebc/nor_flash@0"); 68 if (!devp) 69 fatal("Can't find FDT node for nor_flash!??"); 70 71 printf("Fixing devtree for 4M Flash\n"); 72 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Old U-boot compatibility for Esteem 195E Hotfoot CPU Board 4 * 5 * Author: Solomon Peachy <solomon@linux-wlan.com> 6 */ 7 8#include "ops.h" --- 56 unchanged lines hidden (view full) --- 65 if (bd.bi_flashsize < 0x800000) { 66 u32 regs[NUM_REGS]; 67 void *devp = finddevice("/plb/ebc/nor_flash@0"); 68 if (!devp) 69 fatal("Can't find FDT node for nor_flash!??"); 70 71 printf("Fixing devtree for 4M Flash\n"); 72 |
73 /* First fix up the base addresse */ | 73 /* First fix up the base address */ |
74 getprop(devp, "reg", regs, sizeof(regs)); 75 regs[0] = 0; 76 regs[1] = 0xffc00000; 77 regs[2] = 0x00400000; 78 setprop(devp, "reg", regs, sizeof(regs)); 79 80 /* Then the offsets */ 81 devp = finddevice("/plb/ebc/nor_flash@0/partition@0"); --- 58 unchanged lines hidden --- | 74 getprop(devp, "reg", regs, sizeof(regs)); 75 regs[0] = 0; 76 regs[1] = 0xffc00000; 77 regs[2] = 0x00400000; 78 setprop(devp, "reg", regs, sizeof(regs)); 79 80 /* Then the offsets */ 81 devp = finddevice("/plb/ebc/nor_flash@0/partition@0"); --- 58 unchanged lines hidden --- |