summaryrefslogtreecommitdiff
path: root/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2020-03-18 09:24:51 +0100
committerPatrick Delaunay <patrick.delaunay@st.com>2020-05-14 09:02:12 +0200
commitaff4c5dd82653301923b3693fadc8f37f52677d7 (patch)
tree5278758c3950f8e4775a49b76b54361594325708 /arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h
parent6ee6839183bfdc6b893061d432f68b5e603304c0 (diff)
stm32mp: stm32prog: add MMC device
Add support of MMC device (based on DFU_MMC backend) for SD card and eMMC update. Create a GPT partitioning on the device. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Diffstat (limited to 'arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h')
-rw-r--r--arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h
index b44b6f89af..228a25d37f 100644
--- a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h
+++ b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h
@@ -19,6 +19,7 @@
enum stm32prog_target {
STM32PROG_NONE,
+ STM32PROG_MMC,
};
enum stm32prog_link_t {
@@ -64,6 +65,8 @@ enum stm32prog_part_type {
struct stm32prog_dev_t {
enum stm32prog_target target;
char dev_id;
+ u32 erase_size;
+ struct mmc *mmc;
/* list of partition for this device / ordered in offset */
struct list_head part_list;
};