summaryrefslogtreecommitdiff
path: root/board/pm854/flash.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2005-04-03 23:11:38 +0000
committerwdenk <wdenk>2005-04-03 23:11:38 +0000
commit8b0bfc6804ad140a3bd31bfb2c15fc7d69c15f5c (patch)
treec70489e8bea07c692eae7ee5a7cf7d7b6eaf09f5 /board/pm854/flash.c
parent384cc687445b34241fcc8b31bbb7aa9fc252dd90 (diff)
downloadu-boot-imx-8b0bfc6804ad140a3bd31bfb2c15fc7d69c15f5c.zip
u-boot-imx-8b0bfc6804ad140a3bd31bfb2c15fc7d69c15f5c.tar.gz
u-boot-imx-8b0bfc6804ad140a3bd31bfb2c15fc7d69c15f5c.tar.bz2
* Patch by Yuli Barcohen, 08 Nov 2004:
Add support for Analogue & Micro Rattler boards. Tested on Rattler8248. * Patch by Andre Renaud, 08 Nov 2004: Fix watchdog support in common/lcd.c * Patch by Marc Leeman, 05 Nov 2003: Enable all 4 PCMBRW buffers for the MPC8245 processor since the CPU bug only affects the XPC8245 processors
Diffstat (limited to 'board/pm854/flash.c')
-rw-r--r--board/pm854/flash.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/board/pm854/flash.c b/board/pm854/flash.c
index 73941e8..d714589 100644
--- a/board/pm854/flash.c
+++ b/board/pm854/flash.c
@@ -134,7 +134,7 @@ void flash_print_info (flash_info_t *info)
break;
case FLASH_28F128J3A: printf ("28F128J3A (128 Mbit, 128 x 128K)\n");
break;
-
+
default: printf ("Unknown Chip Type\n");
break;
}
@@ -224,14 +224,14 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
info->size = 0x01000000;
sector_offset = 0x40000;
break; /* => 2x8 MB */
-
+
case (INTEL_ID_28F128J3A):
info->flash_id += FLASH_28F128J3A;
info->sector_count = 128;
info->size = 0x02000000;
sector_offset = 0x40000;
break; /* => 2x16 MB */
-
+
case SHARP_ID_28F016SCL:
case SHARP_ID_28F016SCZ:
@@ -325,7 +325,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
asm("sync");
last = start = get_timer (0);
-
+
/* Disable interrupts which might cause a timeout here */
flag = disable_interrupts();
@@ -367,7 +367,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
last = now;
}
}
-
+
/* reset to read mode */
*addr = 0xFFFFFFFF;
asm("sync");