summaryrefslogtreecommitdiff
path: root/drivers/cfi_flash.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-06-09 17:34:58 +0000
committerwdenk <wdenk>2004-06-09 17:34:58 +0000
commit4c0d4c3b782ef278f5843eb2533e03b9c4c16e21 (patch)
tree09dcb91dbd32932f125901c1a4c210e4f2fdc88f /drivers/cfi_flash.c
parentca0e774894ceceeffe5134f69c0f4e1f789407a2 (diff)
downloadu-boot-imx-4c0d4c3b782ef278f5843eb2533e03b9c4c16e21.zip
u-boot-imx-4c0d4c3b782ef278f5843eb2533e03b9c4c16e21.tar.gz
u-boot-imx-4c0d4c3b782ef278f5843eb2533e03b9c4c16e21.tar.bz2
* Patch by Tom Armistead, 04 Jun 2004:
Add support for MAX6900 RTC * Patches by Ladislav Michl, 03 Jun 2004: - fix cfi_flash.c on LE systems - let 'make mrproper' delete u-boot.img as well - turn printf into debug in cfi_flash.c
Diffstat (limited to 'drivers/cfi_flash.c')
-rw-r--r--drivers/cfi_flash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/cfi_flash.c b/drivers/cfi_flash.c
index cba91f3..b79cf59 100644
--- a/drivers/cfi_flash.c
+++ b/drivers/cfi_flash.c
@@ -46,6 +46,7 @@
#include <common.h>
#include <asm/processor.h>
+#include <asm/byteorder.h>
#include <linux/byteorder/swab.h>
#ifdef CFG_FLASH_CFI_DRIVER
@@ -1038,7 +1039,7 @@ static ulong flash_get_size (ulong base, int banknum)
(tmp & 0xffff) ? ((tmp & 0xffff) * 256) : 128;
tmp >>= 16;
erase_region_count = (tmp & 0xffff) + 1;
- printf ("erase_region_count = %d erase_region_size = %d\n",
+ debug ("erase_region_count = %d erase_region_size = %d\n",
erase_region_count, erase_region_size);
for (j = 0; j < erase_region_count; j++) {
info->start[sect_cnt] = sector;