summaryrefslogtreecommitdiff
path: root/disk/part_amiga.c
diff options
context:
space:
mode:
authorunsik Kim <donari75@gmail.com>2009-02-25 02:31:24 (GMT)
committerWolfgang Denk <wd@denx.de>2009-04-03 21:47:06 (GMT)
commit75eb82ec7cacb18d059d701b35677b93d2bb7596 (patch)
treed6e29e87ee98e487f40644936900dd4dd38cc5db /disk/part_amiga.c
parent8ddfe804c49f7b738eebfdc6a5d0e406581faf49 (diff)
downloadu-boot-75eb82ec7cacb18d059d701b35677b93d2bb7596.tar.xz
mflash: Initial mflash support
Mflash is fusion memory device mainly targeted consumer eletronic and mobile phone. Internally, it have nand flash and other hardware logics and supports some different operation (ATA, IO, XIP) modes. IO mode is custom mode for the host that doesn't have IDE interface. (Many mobile targeted SoC doesn't have IDE bus) This driver support mflash IO mode. Followings are brief descriptions about IO mode. 1. IO mode based on ATA protocol and uses some custom command. (read confirm, write confirm) 2. IO mode uses SRAM bus interface. Signed-off-by: unsik Kim <donari75@gmail.com>
Diffstat (limited to 'disk/part_amiga.c')
-rw-r--r--disk/part_amiga.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/disk/part_amiga.c b/disk/part_amiga.c
index c2daf6a..50efe39 100644
--- a/disk/part_amiga.c
+++ b/disk/part_amiga.c
@@ -27,6 +27,7 @@
#include "part_amiga.h"
#if defined(CONFIG_CMD_IDE) || \
+ defined(CONFIG_CMD_MG_DISK) || \
defined(CONFIG_CMD_SCSI) || \
defined(CONFIG_CMD_USB) || \
defined(CONFIG_MMC) || \
@@ -154,7 +155,7 @@ struct rigid_disk_block *get_rdisk(block_dev_desc_t *dev_desc)
s = getenv("amiga_scanlimit");
if (s)
- limit = atoi(s);
+ limit = simple_strtoul(s, NULL, 10);
else
limit = AMIGA_BLOCK_LIMIT;
@@ -195,7 +196,7 @@ struct bootcode_block *get_bootcode(block_dev_desc_t *dev_desc)
s = getenv("amiga_scanlimit");
if (s)
- limit = atoi(s);
+ limit = simple_strtoul(s, NULL, 10);
else
limit = AMIGA_BLOCK_LIMIT;