aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2023-05-04 21:52:08 +0200
committerPatrice Chotard <patrice.chotard@foss.st.com>2023-06-16 11:15:01 +0200
commit0e136ec7fa80b5ce2cc0c21a7a96679b8bb9a1be (patch)
tree6b2620fbbb67ed586490920ce929f094ce8c710a
parent9af2ec18b49de086a8370cdf43236c84ddc8eb7d (diff)
downloadu-boot-0e136ec7fa80b5ce2cc0c21a7a96679b8bb9a1be.zip
u-boot-0e136ec7fa80b5ce2cc0c21a7a96679b8bb9a1be.tar.gz
u-boot-0e136ec7fa80b5ce2cc0c21a7a96679b8bb9a1be.tar.bz2
ARM: stm32: Use __section(".data") with dot in the section name on DHSOM
The correct specifier of the section is ".data" and not "data", use the former to place the variables in ".data" section. Fixes: 731fd50e27f ("ARM: stm32: Implement board coding on AV96") Fixes: 92ca0f7446c ("ARM: dts: stm32: Synchronize DDR setttings on DH SoMs") Signed-off-by: Marek Vasut <marex@denx.de> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
-rw-r--r--board/dhelectronics/dh_stm32mp1/board.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/dhelectronics/dh_stm32mp1/board.c b/board/dhelectronics/dh_stm32mp1/board.c
index 8d8104a..f9cfabe 100644
--- a/board/dhelectronics/dh_stm32mp1/board.c
+++ b/board/dhelectronics/dh_stm32mp1/board.c
@@ -184,9 +184,9 @@ int checkboard(void)
}
#ifdef CONFIG_BOARD_EARLY_INIT_F
-static u8 brdcode __section("data");
-static u8 ddr3code __section("data");
-static u8 somcode __section("data");
+static u8 brdcode __section(".data");
+static u8 ddr3code __section(".data");
+static u8 somcode __section(".data");
static u32 opp_voltage_mv __section(".data");
static void board_get_coding_straps(void)