diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-06-12 06:07:32 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-06-12 08:28:04 +0200 |
commit | a10366acd8e509cb65c8645775325c882ba5a55a (patch) | |
tree | f3842f04e231fca00e95b052c03bbfb66b2eadcc /include/bbu.h | |
parent | e7b23c6a9df57b5c8bba4fa9c10f8b5f793745cc (diff) | |
download | barebox-a10366acd8e509cb65c8645775325c882ba5a55a.tar.gz barebox-a10366acd8e509cb65c8645775325c882ba5a55a.tar.xz |
ARM: i.MX6: bbu nand: Move to common place
The code can be used on i.MX28 aswell, so move it to a common place.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/bbu.h')
-rw-r--r-- | include/bbu.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/bbu.h b/include/bbu.h index 4a3d35e7ce..c5f22be7ae 100644 --- a/include/bbu.h +++ b/include/bbu.h @@ -50,4 +50,13 @@ static inline int bbu_register_handler(struct bbu_handler *unused) #endif +#if defined(CONFIG_BAREBOX_UPDATE_IMX_NAND_FCB) +int imx6_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; +} +#endif + #endif /* __INCLUDE_BBU_H */ |