diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-05-06 09:59:37 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-05-09 17:41:41 +0200 |
commit | d238e3ace5273422fb63a236d1957ef7e48d46b4 (patch) | |
tree | 3f69371a1c7623eac3046d7bdd6ec55032b1c19f /arch/arm/mach-imx/include/mach/bbu.h | |
parent | 2ab8b7513dfcc69e865aa5a4f7001bf44e22d20f (diff) | |
download | barebox-d238e3ace5273422fb63a236d1957ef7e48d46b4.tar.gz barebox-d238e3ace5273422fb63a236d1957ef7e48d46b4.tar.xz |
ARM: i.MX: bbu: remove dcd arguments from bbu registration
The i.MX barebox update handlers take an optional dcd table as argument.
This can be used to add the correct dcd data to the image before flashing
it.
This mechanism is quite complicated and largely unused, so remove it. With
this it is only possible to flash the exact image passed to barebox_update,
which is what is mostly done anyway.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/include/mach/bbu.h')
-rw-r--r-- | arch/arm/mach-imx/include/mach/bbu.h | 43 |
1 files changed, 12 insertions, 31 deletions
diff --git a/arch/arm/mach-imx/include/mach/bbu.h b/arch/arm/mach-imx/include/mach/bbu.h index 1644d85250..bf6c7dc629 100644 --- a/arch/arm/mach-imx/include/mach/bbu.h +++ b/arch/arm/mach-imx/include/mach/bbu.h @@ -10,71 +10,59 @@ struct imx_dcd_v2_entry; #ifdef CONFIG_BAREBOX_UPDATE int imx51_bbu_internal_mmc_register_handler(const char *name, char *devicefile, - unsigned long flags, struct imx_dcd_entry *, int dcdsize, - unsigned long app_dest); + unsigned long flags); int imx53_bbu_internal_mmc_register_handler(const char *name, char *devicefile, - unsigned long flags, struct imx_dcd_v2_entry *, int dcdsize, - unsigned long app_dest); + unsigned long flags); int imx53_bbu_internal_spi_i2c_register_handler(const char *name, char *devicefile, - unsigned long flags, struct imx_dcd_v2_entry *dcd, int dcdsize, - unsigned long app_dest); + unsigned long flags); int imx53_bbu_internal_nand_register_handler(const char *name, - unsigned long flags, struct imx_dcd_v2_entry *, int dcdsize, - int partition_size, unsigned long app_dest); + unsigned long flags, int partition_size); int imx6_bbu_internal_mmc_register_handler(const char *name, char *devicefile, - unsigned long flags, struct imx_dcd_v2_entry *, int dcdsize, - unsigned long app_dest); + unsigned long flags); int imx6_bbu_internal_spi_i2c_register_handler(const char *name, char *devicefile, - unsigned long flags, struct imx_dcd_v2_entry *dcd, int dcdsize, - unsigned long app_dest); + unsigned long flags); int imx6_bbu_nand_register_handler(const char *name, unsigned long flags); #else static inline int imx51_bbu_internal_mmc_register_handler(const char *name, char *devicefile, - unsigned long flags, struct imx_dcd_entry *dcd, int dcdsize, - unsigned long app_dest) + unsigned long flags) { return -ENOSYS; } static inline int imx53_bbu_internal_mmc_register_handler(const char *name, char *devicefile, - unsigned long flags, struct imx_dcd_v2_entry *dcd, int dcdsize, - unsigned long app_dest) + unsigned long flags) { return -ENOSYS; } static inline int imx53_bbu_internal_spi_i2c_register_handler(const char *name, char *devicefile, - unsigned long flags, struct imx_dcd_v2_entry *dcd, int dcdsize, - unsigned long app_dest) + unsigned long flags) { return -ENOSYS; } static inline int imx53_bbu_internal_nand_register_handler(const char *name, - unsigned long flags, struct imx_dcd_v2_entry *dcd, int dcdsize, - int partition_size, unsigned long app_dest) + unsigned long flags, int partition_size) { return -ENOSYS; } static inline int imx6_bbu_internal_mmc_register_handler(const char *name, char *devicefile, - unsigned long flags, struct imx_dcd_v2_entry *dcd, int dcdsize, - unsigned long app_dest) + unsigned long flags) { return -ENOSYS; } static inline int imx6_bbu_internal_spi_i2c_register_handler(const char *name, char *devicefile, - unsigned long flags, struct imx_dcd_v2_entry *dcd, int dcdsize, - unsigned long app_dest) + unsigned long flags) { return -ENOSYS; } @@ -96,11 +84,4 @@ static inline int imx_bbu_external_nand_register_handler(const char *name, char } #endif -struct dcd_table { - void *data; - unsigned int size; -}; - -void *imx53_bbu_internal_concat_dcd_table(struct dcd_table *table, int num_entries); - #endif |