summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAfzal Mohammed <[email protected]>2013-09-18 01:14:50 +0530
committerMarek Vasut <[email protected]>2013-09-24 17:51:35 +0200
commit5a127c8433297e359fc4fded01172625f43b6d00 (patch)
treeac2c1b38e018587050ef79965b57e3a06527a20e /include
parent765c5ae5bc913d9f06c518a9491d97c35ea00735 (diff)
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 <[email protected]> Cc: Heiko Schocher <[email protected]> Cc: Marek Vasut <[email protected]> Cc: Lukasz Majewski <[email protected]> Cc: Pantelis Antoniou <[email protected]> Acked-by: Lukasz Majewski <[email protected]> Acked-by: Marek Vasut <[email protected]> Acked-by: Heiko Schocher <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/dfu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/dfu.h b/include/dfu.h
index 392cef126e2..6a3e253b1df 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;