}
#endif /* TODO: remove ifdef when Flash responds correctly */
- /*
+ /*
* TODO: Start
* uncomment block above when Flash responds correctly.
* also remove the lines below:
last = start;
while ((addr[0] & (CFG_FLASH_WORD_SIZE) 0x00800080) !=
(CFG_FLASH_WORD_SIZE) 0x00800080) {
- DEBUGF("DQ7_2: start = 0x%08lx, now = 0x%08lx\n", start, now);
+ DEBUGF("DQ7_2: start = 0x%08lx, now = 0x%08lx\n", start, now);
if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
printf("Timeout\n");
return -1;
static void wr_flash_cmd(ulong sector, ushort addr, CFG_FLASH_WORD_SIZE value)
{
int fw_size;
-
+
fw_size = sizeof(value);
switch (fw_size)
{
addr[0] = (CFG_FLASH_WORD_SIZE) 0x00F000F0; /* reset bank */
printf(" done\n");
-
- if (count > 0) {
+
+ if (count > 0) {
return 0;
} else {
return 1;