diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-06-10 15:13:16 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-06-12 08:28:26 +0200 |
commit | 22f8077c391c6a226dbb9a5228af8e9840fc0e42 (patch) | |
tree | ec43f6f205f5042d0840c35b03a6d0bccd93da2a /include/bbu.h | |
parent | 103b88ace1c85be724bd758fe21366d090315c76 (diff) | |
download | barebox-22f8077c391c6a226dbb9a5228af8e9840fc0e42.tar.gz barebox-22f8077c391c6a226dbb9a5228af8e9840fc0e42.tar.xz |
imx-bbu-nand-fcb: make available for i.MX28 aswell
The code can be used with slight modifications on i.MX28 aswell.
Add a i.MX28 registration function and move the differences to
function callbacks.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/bbu.h')
-rw-r--r-- | include/bbu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/bbu.h b/include/bbu.h index c5f22be7ae..4cf97e17da 100644 --- a/include/bbu.h +++ b/include/bbu.h @@ -52,11 +52,16 @@ static inline int bbu_register_handler(struct bbu_handler *unused) #if defined(CONFIG_BAREBOX_UPDATE_IMX_NAND_FCB) int imx6_bbu_nand_register_handler(const char *name, unsigned long flags); +int imx28_bbu_nand_register_handler(const char *name, unsigned long flags); #else static inline int imx6_bbu_nand_register_handler(const char *name, unsigned long flags) { return -ENOSYS; } +static inline int imx28_bbu_nand_register_handler(const char *name, unsigned long flags) +{ + return -ENOSYS; +} #endif #endif /* __INCLUDE_BBU_H */ |