diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-11-02 12:26:34 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-12-12 18:26:58 +0100 |
commit | 8e3ca7baebf5164e1f095cf8e9f37a2593f24aec (patch) | |
tree | a7e931021fedc8fa78973e20c3ddca717291e068 /common/imx-bbu-nand-fcb.c | |
parent | f6cf6aff3c895906410c9955db5e161e799a2032 (diff) | |
download | barebox-8e3ca7baebf5164e1f095cf8e9f37a2593f24aec.tar.gz barebox-8e3ca7baebf5164e1f095cf8e9f37a2593f24aec.tar.xz |
imx-bbu-nand-fcb: Drop ifdeffery
fcb_is_bch_encoded() needs cpu_is_mx6ul() and cpu_is_mx6ull(), so add
stubs for them to arch-mxs to drop the #ifdef CONFIG_ARCH_IMX28.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/imx-bbu-nand-fcb.c')
-rw-r--r-- | common/imx-bbu-nand-fcb.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/common/imx-bbu-nand-fcb.c b/common/imx-bbu-nand-fcb.c index 05bee912e4..e0dcad4262 100644 --- a/common/imx-bbu-nand-fcb.c +++ b/common/imx-bbu-nand-fcb.c @@ -26,19 +26,14 @@ #include <mach/generic.h> #include <mtd/mtd-peb.h> #include <soc/imx/imx-nand-bcb.h> - -#ifdef CONFIG_ARCH_IMX28 -static inline int fcb_is_bch_encoded(void) -{ - return 0; -} -#else +#ifdef CONFIG_ARCH_IMX #include <mach/imx6.h> +#endif + static inline int fcb_is_bch_encoded(void) { return cpu_is_mx6ul() || cpu_is_mx6ull(); } -#endif struct imx_nand_fcb_bbu_handler { struct bbu_handler handler; |