summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPrzemyslaw Marczak <p.marczak@samsung.com>2015-02-17 12:24:11 +0100
committerMarek Vasut <marex@denx.de>2015-02-25 17:47:02 +0100
commit899a52821515d79f9e4e525fd3098bdb574062ed (patch)
treec17b1bdc2f516a3a4332911018a72bb179073686 /include
parent372d7decfe972966c49b337f3d2888e09004dbe4 (diff)
downloadu-boot-imx-899a52821515d79f9e4e525fd3098bdb574062ed.zip
u-boot-imx-899a52821515d79f9e4e525fd3098bdb574062ed.tar.gz
u-boot-imx-899a52821515d79f9e4e525fd3098bdb574062ed.tar.bz2
dfu: samsung: move call to set_dfu_alt_info() to dfu common code
This common call can be used for setting proper entities based on dfu command arguments. The config: CONFIG_SET_DFU_ALT_INFO, was used only for few configs, and now it is common. The board file should implement: - set_dfu_alt_info() function Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Tested-by: Lukasz Majewski <l.majewski@samsung.com> [Test HW: Odroid U3 (Exynos 4412)]
Diffstat (limited to 'include')
-rw-r--r--include/dfu.h3
-rw-r--r--include/samsung/misc.h5
2 files changed, 5 insertions, 3 deletions
diff --git a/include/dfu.h b/include/dfu.h
index c27856c..7d31abd 100644
--- a/include/dfu.h
+++ b/include/dfu.h
@@ -140,6 +140,9 @@ struct dfu_entity {
unsigned int inited:1;
};
+#ifdef CONFIG_SET_DFU_ALT_INFO
+void set_dfu_alt_info(char *interface, char *devstr);
+#endif
int dfu_config_entities(char *s, char *interface, char *devstr);
void dfu_free_entities(void);
void dfu_show_entities(void);
diff --git a/include/samsung/misc.h b/include/samsung/misc.h
index 607e8d4..0f957dc 100644
--- a/include/samsung/misc.h
+++ b/include/samsung/misc.h
@@ -29,9 +29,8 @@ void draw_logo(void);
#endif
#ifdef CONFIG_SET_DFU_ALT_INFO
-char *get_dfu_alt_system(void);
-char *get_dfu_alt_boot(void);
-void set_dfu_alt_info(void);
+char *get_dfu_alt_system(char *interface, char *devstr);
+char *get_dfu_alt_boot(char *interface, char *devstr);
#endif
#ifdef CONFIG_BOARD_TYPES
void set_board_type(void);