diff options
Diffstat (limited to 'arch/arm/mach-imx/include/mach/bbu.h')
-rw-r--r-- | arch/arm/mach-imx/include/mach/bbu.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/include/mach/bbu.h b/arch/arm/mach-imx/include/mach/bbu.h new file mode 100644 index 0000000000..f9ec1cc0af --- /dev/null +++ b/arch/arm/mach-imx/include/mach/bbu.h @@ -0,0 +1,51 @@ +#ifndef __MACH_BBU_H +#define __MACH_BBU_H + +#include <bbu.h> + +struct imx_dcd_entry; +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); + +int imx53_bbu_internal_mmc_register_handler(const char *name, char *devicefile, + unsigned long flags, struct imx_dcd_v2_entry *, int dcdsize); + +int imx53_bbu_internal_nand_register_handler(const char *name, + unsigned long flags, struct imx_dcd_v2_entry *, int dcdsize, + int partition_size); + +#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) +{ + 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) +{ + 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) +{ + return -ENOSYS; +} + +#endif + +struct dcd_table { + void *data; + unsigned int size; +}; + +void *imx53_bbu_internal_concat_dcd_table(struct dcd_table *table, int num_entries); + +#endif |