summaryrefslogtreecommitdiff
path: root/include/dfu.h
diff options
context:
space:
mode:
authorAfzal Mohammed <afzal.mohd.ma@gmail.com>2013-09-18 01:14:50 +0530
committerMarek Vasut <marex@denx.de>2013-09-24 17:51:35 +0200
commit5a127c8433297e359fc4fded01172625f43b6d00 (patch)
treeac2c1b38e018587050ef79965b57e3a06527a20e /include/dfu.h
parent765c5ae5bc913d9f06c518a9491d97c35ea00735 (diff)
downloadu-boot-imx-5a127c8433297e359fc4fded01172625f43b6d00.zip
u-boot-imx-5a127c8433297e359fc4fded01172625f43b6d00.tar.gz
u-boot-imx-5a127c8433297e359fc4fded01172625f43b6d00.tar.bz2
dfu: unify mmc/nand read/write ops enum
MMC and NAND independently defines same enumerators for read/write. Unify them by defining enum in dfu header. RAM support that is being added newly also can make use of it. Signed-off-by: Afzal Mohammed <afzal.mohd.ma@gmail.com> Cc: Heiko Schocher <hs@denx.de> Cc: Marek Vasut <marex@denx.de> Cc: Lukasz Majewski <l.majewski@samsung.com> Cc: Pantelis Antoniou <panto@antoniou-consulting.com> Acked-by: Lukasz Majewski <l.majewski@samsung.com> Acked-by: Marek Vasut <marex@denx.de> Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'include/dfu.h')
-rw-r--r--include/dfu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/dfu.h b/include/dfu.h
index 392cef1..6a3e253 100644
--- a/include/dfu.h
+++ b/include/dfu.h
@@ -29,6 +29,11 @@ enum dfu_layout {
DFU_FS_EXT4,
};
+enum dfu_op {
+ DFU_OP_READ = 1,
+ DFU_OP_WRITE,
+};
+
struct mmc_internal_data {
/* RAW programming */
unsigned int lba_start;