Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA2A7C04A94 for ; Thu, 3 Aug 2023 14:00:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DCA9A861DA; Thu, 3 Aug 2023 16:00:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 12BEC867F0; Thu, 3 Aug 2023 16:00:40 +0200 (CEST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 54E16861DA for ; Thu, 3 Aug 2023 16:00:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marcel@ziswiler.com Received: from toolbox.toradex.int ([31.10.206.125]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MI42y-1qPvFI2Xhm-003z31; Thu, 03 Aug 2023 16:00:31 +0200 From: Marcel Ziswiler To: u-boot@lists.denx.de Cc: Bryan Brattlof , Marcel Ziswiler , Tom Rini Subject: [PATCH v5 2/3] arm: mach-k3: am62: fix 2nd mux option of clkout0 Date: Thu, 3 Aug 2023 16:00:15 +0200 Message-Id: <20230803140016.52846-3-marcel@ziswiler.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20230803140016.52846-1-marcel@ziswiler.com> References: <20230803140016.52846-1-marcel@ziswiler.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:/3chdcF7UXi1IRwVuJIN9sRRHLS/+HhHj1KPxoi/G4owSTLGrY2 O+3XGh3tm1Ty0LeieDZXK130cgYj6oVlwhiqiiSFGDnyZ2p96zYbpi9bbG1JAV8RAhuglGW pS91yJIu/fLrt6OPKNsVsrf62f1szSnZZIygJ80LnkukC3eeINbHJprDozFLYPV9sKa5z4x NSYSnDM+cs1AIzlO7YHYw== UI-OutboundReport: notjunk:1;M01:P0:++Ta2iCpwls=;gxvuqF17/kF4Bzy9qVvzMwBzJPc n7a6aKXyCJs2f7mKvNXjlqUDUHPf5uhFlo8HZVGI4WCjW5ze5lr4KH8ZovVyWevdUzJa81cK6 fcPPjEYuwYY70THoCpZPFQ2P9lK7bNYBIOhsFjJ77dt9aUtrMGR26Pp3WPLk4IZg5eK8otzOe FryBxdxR4KBbYSldGvd9KTmRH//LjsZIToHRMZJ0NSI4iqe527sM/mEeTFQAY6i8p1Hwns2kk F/gNq2gyJPgSLIBd4IctPP1MmdEnAippx3kV7QWoycfCPf1w0a15N9iK4I9BgTC629FiPH+au W4/hmL7nmAv4o+LsFDoGol/ld0ZzZ3oREJaYrQntWT7bd2J+ymNBcqbwIryv27gHh1NpDyjd0 /v6Z5svOIp2Ni/WTaFjr+AFQh/Q8LsT8dvLB8fxqtvYC4YiwH79btx4lLssm7l4nclcXT6bE+ 2YllFQa9CJKku7ZtwvTRdRuTpxQoI1/DiWuu3HanaGrAsJDrDp2nComyVNJmIk/EBtgiMLH7z gP8KnDC70TWQvRmQjfs8S+kCb+w1PMDumK/zx/Ek4rq/chHXSc9PolqppLD8YzzgFc058iYdu 50BpzBV1S4OA/FNB6OLcLm5xvpwYf8zrE/13MFYgWdmla138twviIXkUZ7v+euMMYd4SeHoZ6 cNnUh/p0NrVAjnOhwpUcZ9YgbPJiS5DH73UhMGnUJZwo/CaVYm3ifcXYDeNrKd+tmXWcUVn9T bQxxDk7yqu85l2PEwSBpDVqvpQ7JOkFDPQ45ummFQ+0mgGopV1BZyPVoZfNXQ1wa1l4CSUe14 ilADgxM3gTetKcfFvxfC9F7rIlmDGbKkEdXZvm+xXO/zomh7YhfFA6q2uIarjxX4BQyJw176p FDFhyL9Bc0iiTiA== X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean From: Marcel Ziswiler Fix second mux option of clkout0 which should really be DEV_BOARD0_CLKOUT0_IN_PARENT_HSDIV4_16FFT_MAIN_2_HSDIVOUT1_CLK10 rather than twice the same according to [1]. [1] https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/am62x/clocks.html#clocks-for-board0-device Signed-off-by: Marcel Ziswiler Reviewed-by: Bryan Brattlof --- (no changes since v2) Changes in v2: - Add Bryan's reviewed-by tag. Thanks! arch/arm/mach-k3/am62x/clk-data.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-k3/am62x/clk-data.c b/arch/arm/mach-k3/am62x/clk-data.c index c0881778fe7..d7bfed0e031 100644 --- a/arch/arm/mach-k3/am62x/clk-data.c +++ b/arch/arm/mach-k3/am62x/clk-data.c @@ -57,7 +57,7 @@ static const char * const sam62_pll_ctrl_wrap_mcu_0_sysclkout_clk_parents[] = { static const char * const clkout0_ctrl_out0_parents[] = { "hsdiv4_16fft_main_2_hsdivout1_clk", - "hsdiv4_16fft_main_2_hsdivout1_clk", + "hsdiv4_16fft_main_2_hsdivout1_clk10", }; static const char * const clk_32k_rc_sel_out0_parents[] = { @@ -195,6 +195,7 @@ static const struct clk_data clk_list[] = { CLK_DIV("hsdiv4_16fft_main_1_hsdivout1_clk", "pllfracf_ssmod_16fft_main_1_foutvcop_clk", 0x681084, 0, 7, 0, 0), CLK_DIV("hsdiv4_16fft_main_1_hsdivout2_clk", "pllfracf_ssmod_16fft_main_1_foutvcop_clk", 0x681088, 0, 7, 0, 0), CLK_DIV("hsdiv4_16fft_main_2_hsdivout1_clk", "pllfracf_ssmod_16fft_main_2_foutvcop_clk", 0x682084, 0, 7, 0, 0), + CLK_DIV("hsdiv4_16fft_main_2_hsdivout1_clk10", "pllfracf_ssmod_16fft_main_2_foutvcop_clk", 0x682084, 0, 7, 0, 0), CLK_DIV("hsdiv4_16fft_main_2_hsdivout2_clk", "pllfracf_ssmod_16fft_main_2_foutvcop_clk", 0x682088, 0, 7, 0, 0), CLK_DIV("hsdiv4_16fft_mcu_0_hsdivout0_clk", "pllfracf_ssmod_16fft_mcu_0_foutvcop_clk", 0x4040080, 0, 7, 0, 0), CLK_MUX_PLLCTRL("sam62_pll_ctrl_wrap_main_0_sysclkout_clk", sam62_pll_ctrl_wrap_main_0_sysclkout_clk_parents, 2, 0x410000, 0), @@ -313,7 +314,7 @@ static const struct dev_clk soc_dev_clk_data[] = { DEV_CLK(146, 5, "sam62_pll_ctrl_wrap_main_0_chip_div1_clk_clk"), DEV_CLK(157, 20, "clkout0_ctrl_out0"), DEV_CLK(157, 21, "hsdiv4_16fft_main_2_hsdivout1_clk"), - DEV_CLK(157, 22, "hsdiv4_16fft_main_2_hsdivout1_clk"), + DEV_CLK(157, 22, "hsdiv4_16fft_main_2_hsdivout1_clk10"), DEV_CLK(157, 24, "sam62_pll_ctrl_wrap_main_0_chip_div1_clk_clk"), DEV_CLK(157, 25, "board_0_ddr0_ck0_out"), DEV_CLK(157, 40, "mshsi2c_main_0_porscl"), -- 2.36.1