diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2010-07-26 18:35:39 -0500 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2010-08-18 09:09:00 +0200 |
commit | 2e97394a6d07a36dfc139b7b98b12e452b5bd8dc (patch) | |
tree | afbca6feb6525772cab3c0e4450304922ab6156b /drivers | |
parent | 962ad59e25640e586e2bceabf67a628a27f8f508 (diff) | |
download | u-boot-imx-2e97394a6d07a36dfc139b7b98b12e452b5bd8dc.zip u-boot-imx-2e97394a6d07a36dfc139b7b98b12e452b5bd8dc.tar.gz u-boot-imx-2e97394a6d07a36dfc139b7b98b12e452b5bd8dc.tar.bz2 |
cfi_flash: flinfo: allow user interrupt in flash print info fn
flashes getting larger, users more impatient.
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/cfi_flash.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index 2d09caf..1c73686 100644 --- a/drivers/mtd/cfi_flash.c +++ b/drivers/mtd/cfi_flash.c @@ -1159,6 +1159,8 @@ void flash_print_info (flash_info_t * info) puts ("\n Sector Start Addresses:"); for (i = 0; i < info->sector_count; ++i) { + if (ctrlc()) + return; if ((i % 5) == 0) printf ("\n"); #ifdef CONFIG_SYS_FLASH_EMPTY_INFO |