sam460ex.c (940d5b132fab085bd8ec2bcfa5c1dd119785b217) | sam460ex.c (ce14710f4fdfca32123d7efd3ddcbee984ef0ae5) |
---|---|
1/* 2 * QEMU aCube Sam460ex board emulation 3 * 4 * Copyright (c) 2012 François Revol 5 * Copyright (c) 2016-2019 BALATON Zoltan 6 * 7 * This file is derived from hw/ppc440_bamboo.c, 8 * the copyright for that material belongs to the original owners. --- 101 unchanged lines hidden (view full) --- 110 */ 111 112 DriveInfo *dinfo; 113 114 dinfo = drive_get(IF_PFLASH, 0, 0); 115 if (!pflash_cfi01_register(FLASH_BASE | ((hwaddr)FLASH_BASE_H << 32), 116 "sam460ex.flash", FLASH_SIZE, 117 dinfo ? blk_by_legacy_dinfo(dinfo) : NULL, | 1/* 2 * QEMU aCube Sam460ex board emulation 3 * 4 * Copyright (c) 2012 François Revol 5 * Copyright (c) 2016-2019 BALATON Zoltan 6 * 7 * This file is derived from hw/ppc440_bamboo.c, 8 * the copyright for that material belongs to the original owners. --- 101 unchanged lines hidden (view full) --- 110 */ 111 112 DriveInfo *dinfo; 113 114 dinfo = drive_get(IF_PFLASH, 0, 0); 115 if (!pflash_cfi01_register(FLASH_BASE | ((hwaddr)FLASH_BASE_H << 32), 116 "sam460ex.flash", FLASH_SIZE, 117 dinfo ? blk_by_legacy_dinfo(dinfo) : NULL, |
118 64 * KiB, FLASH_SIZE / (64 * KiB), 119 1, 0x89, 0x18, 0x0000, 0x0, 1)) { | 118 64 * KiB, 1, 0x89, 0x18, 0x0000, 0x0, 1)) { |
120 error_report("Error registering flash memory"); 121 /* XXX: return an error instead? */ 122 exit(1); 123 } 124 125 if (!dinfo) { 126 /*error_report("No flash image given with the 'pflash' parameter," 127 " using default u-boot image");*/ --- 362 unchanged lines hidden --- | 119 error_report("Error registering flash memory"); 120 /* XXX: return an error instead? */ 121 exit(1); 122 } 123 124 if (!dinfo) { 125 /*error_report("No flash image given with the 'pflash' parameter," 126 " using default u-boot image");*/ --- 362 unchanged lines hidden --- |