diff options
author | Daniel Golle <daniel@makrotopia.org> | 2023-07-31 19:47:54 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2023-08-07 16:31:27 +0100 |
commit | d25b543aa5d3dd7fbddaf8edf5334d6461ba69e2 (patch) | |
tree | 189ad59d2ddfd54fa6d134b7f858f6cd22b4fb95 /package/boot | |
parent | 0415aba6a937c71fa3071f2c385dc66ff3f074aa (diff) | |
download | upstream-d25b543aa5d3dd7fbddaf8edf5334d6461ba69e2.tar.gz upstream-d25b543aa5d3dd7fbddaf8edf5334d6461ba69e2.tar.bz2 upstream-d25b543aa5d3dd7fbddaf8edf5334d6461ba69e2.zip |
uboot-mediatek: fix build for MT7629
Add patch to fix build failure caused by a missing header which had
previously been implicitely included.
Fixes: 6ddb5f5a65 ("uboot-mediatek: update to version 2023.07.02")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/boot')
-rw-r--r-- | package/boot/uboot-mediatek/patches/102-ram-mediatek-include-linux-sizes.h-for-SZ_-macros.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/package/boot/uboot-mediatek/patches/102-ram-mediatek-include-linux-sizes.h-for-SZ_-macros.patch b/package/boot/uboot-mediatek/patches/102-ram-mediatek-include-linux-sizes.h-for-SZ_-macros.patch new file mode 100644 index 0000000000..3cfc684956 --- /dev/null +++ b/package/boot/uboot-mediatek/patches/102-ram-mediatek-include-linux-sizes.h-for-SZ_-macros.patch @@ -0,0 +1,47 @@ +From 4bd66fd5b69eda41b4320fd6f8db50a7b7fa7bf7 Mon Sep 17 00:00:00 2001 +Message-ID: <4bd66fd5b69eda41b4320fd6f8db50a7b7fa7bf7.1690828424.git.daniel@makrotopia.org> +From: Daniel Golle <daniel@makrotopia.org> +Date: Mon, 31 Jul 2023 19:25:04 +0100 +Subject: [PATCH] ram: mediatek: include <linux/sizes.h> for SZ_* macros +To: Ryder Lee <ryder.lee@mediatek.com>, + Weijie Gao <weijie.gao@mediatek.com>, + Chunfeng Yun <chunfeng.yun@mediatek.com>, + GSS_MTK_Uboot_upstream <GSS_MTK_Uboot_upstream@mediatek.com>, + u-boot@lists.denx.de + +Something between U-Boot 2023.04 and 2023.07.02 resulted in no longer +implicitely including <linux/sizes.h> in the DDR3 RAM driver for the +MT7929 SoC. The result is a build failure: +drivers/ram/mediatek/ddr3-mt7629.c: In function 'mtk_ddr3_get_info': +drivers/ram/mediatek/ddr3-mt7629.c:734:30: error: 'SZ_128M' undeclared (first use in this function) + 734 | info->size = SZ_128M; + | ^~~~~~~ +drivers/ram/mediatek/ddr3-mt7629.c:734:30: note: each undeclared identifier is reported only once for each function it appears in +drivers/ram/mediatek/ddr3-mt7629.c:737:30: error: 'SZ_256M' undeclared (first use in this function) + 737 | info->size = SZ_256M; + | ^~~~~~~ +drivers/ram/mediatek/ddr3-mt7629.c:740:30: error: 'SZ_512M' undeclared (first use in this function) + 740 | info->size = SZ_512M; + | ^~~~~~~ +drivers/ram/mediatek/ddr3-mt7629.c:743:30: error: 'SZ_1G' undeclared (first use in this function) + 743 | info->size = SZ_1G; + | ^~~~~ + +Include <linux/sizes.h> so SZ_* is defined. + +Reported-by: Tianling Shen <cnsztl@immortalwrt.org> +Signed-off-by: Daniel Golle <daniel@makrotopia.org> +--- + drivers/ram/mediatek/ddr3-mt7629.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/drivers/ram/mediatek/ddr3-mt7629.c ++++ b/drivers/ram/mediatek/ddr3-mt7629.c +@@ -14,6 +14,7 @@ + #include <asm/io.h> + #include <linux/bitops.h> + #include <linux/delay.h> ++#include <linux/sizes.h> + + /* EMI */ + #define EMI_CONA 0x000 |