diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2017-10-23 11:21:01 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-10-24 14:09:38 +0200 |
commit | c64ef6450a25602529367fa3ee06f152288d61b8 (patch) | |
tree | 1d36463879292334af1281ebd295282b457e7761 /arch/arm/mach-imx/include | |
parent | ed5d71ab06bf45e585f9d03049f4730109979aff (diff) | |
download | barebox-c64ef6450a25602529367fa3ee06f152288d61b8.tar.gz barebox-c64ef6450a25602529367fa3ee06f152288d61b8.tar.xz |
ARM: i.MX: bbu-internal: make filename for device to write to adaptable
This is a preparatory for the next patch that autodetects the device to
write to. To not have to modify the callback data for each call, some
static functions get an additional parameter to allow that.
This doesn't affect boards making use of the file's function and doesn't
change behaviour.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/include')
-rw-r--r-- | arch/arm/mach-imx/include/mach/bbu.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/include/mach/bbu.h b/arch/arm/mach-imx/include/mach/bbu.h index 8039091395..15bdbe1bec 100644 --- a/arch/arm/mach-imx/include/mach/bbu.h +++ b/arch/arm/mach-imx/include/mach/bbu.h @@ -24,6 +24,9 @@ int imx53_bbu_internal_nand_register_handler(const char *name, int imx6_bbu_internal_mmc_register_handler(const char *name, char *devicefile, unsigned long flags); +int imx6_bbu_internal_mmcboot_register_handler(const char *name, char *devicefile, + unsigned long flags); + int imx6_bbu_internal_spi_i2c_register_handler(const char *name, char *devicefile, unsigned long flags); @@ -62,6 +65,13 @@ static inline int imx6_bbu_internal_mmc_register_handler(const char *name, char return -ENOSYS; } +static inline int imx6_bbu_internal_mmcboot_register_handler(const char *name, + char *devicefile, + unsigned long flags) +{ + return -ENOSYS; +} + static inline int imx6_bbu_internal_spi_i2c_register_handler(const char *name, char *devicefile, unsigned long flags) { |