c65a118b89311bd5c0a754c8a5e8280abe2a4974
[openwrt/staging/wigyori.git] /
1 From 7ab891faaaf2b6126694352d4503dc40605a6aec Mon Sep 17 00:00:00 2001
2 From: Weijie Gao <weijie.gao@mediatek.com>
3 Date: Mon, 25 Jul 2022 15:10:02 +0800
4 Subject: [PATCH 52/71] common: spl: spl_nand: enable
5 CONFIG_SYS_NAND_U_BOOT_OFFS undefined
6
7 Enable using spl_nand with CONFIG_SYS_NAND_U_BOOT_OFFS undefined since
8 mtk-snand does not require raw nand framework.
9
10 Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
11 ---
12 common/spl/spl_nand.c | 4 ++++
13 1 file changed, 4 insertions(+)
14
15 --- a/common/spl/spl_nand.c
16 +++ b/common/spl/spl_nand.c
17 @@ -19,7 +19,11 @@
18
19 uint32_t __weak spl_nand_get_uboot_raw_page(void)
20 {
21 +#ifdef CONFIG_SYS_NAND_U_BOOT_OFFS
22 return CONFIG_SYS_NAND_U_BOOT_OFFS;
23 +#else
24 + return 0;
25 +#endif
26 }
27
28 #if defined(CONFIG_SPL_NAND_RAW_ONLY)