From a3c5e670ef5e3616bc7e2664f246f84b5aed5172 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Fri, 28 Aug 2020 10:18:50 +0200 Subject: [PATCH] Fix ODROID-N2(+) SD card boot (#835) (#836) --- ...eson-g12a-mark-fclk_div2-as-critical.patch | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 buildroot-external/board/hardkernel/patches/linux/0011-clk-meson-g12a-mark-fclk_div2-as-critical.patch diff --git a/buildroot-external/board/hardkernel/patches/linux/0011-clk-meson-g12a-mark-fclk_div2-as-critical.patch b/buildroot-external/board/hardkernel/patches/linux/0011-clk-meson-g12a-mark-fclk_div2-as-critical.patch new file mode 100644 index 000000000..2095a67ba --- /dev/null +++ b/buildroot-external/board/hardkernel/patches/linux/0011-clk-meson-g12a-mark-fclk_div2-as-critical.patch @@ -0,0 +1,38 @@ +From c33df0ebe8be16b56741ce7f873221ab9087a0a6 Mon Sep 17 00:00:00 2001 +Message-Id: +In-Reply-To: +References: +From: Stefan Agner +Date: Thu, 27 Aug 2020 23:29:57 +0200 +Subject: [PATCH 11/11] clk: meson: g12a: mark fclk_div2 as critical + +On Amlogic Meson G12b platform, similar to fclk_div3, the fclk_div2 +seems to be necessary for the system to operate correctly as well. + +Typically, the clock also gets chosen by the eMMC peripheral. This +probably masked the problem so far. However, when booting from a SD +card the clock seems to get disabled which leads to a system freeze. + +Let's mark this clock as critical, fixing boot from SD card on G12b +platforms. + +Signed-off-by: Stefan Agner +--- + drivers/clk/meson/g12a.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c +index fad616cac01e..2214b974f748 100644 +--- a/drivers/clk/meson/g12a.c ++++ b/drivers/clk/meson/g12a.c +@@ -298,6 +298,7 @@ static struct clk_regmap g12a_fclk_div2 = { + &g12a_fclk_div2_div.hw + }, + .num_parents = 1, ++ .flags = CLK_IS_CRITICAL, + }, + }; + +-- +2.28.0 +