{"id":2226443,"url":"http://patchwork.ozlabs.org/api/patches/2226443/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20260422094649.57611-3-brian.ruley@gehealthcare.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260422094649.57611-3-brian.ruley@gehealthcare.com>","list_archive_url":null,"date":"2026-04-22T09:46:41","name":"[3/5] imx6: clock: allow different clock sources for ldb","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"38c548f49b60eb65b7cc9af08c462409201dc33b","submitter":{"id":89422,"url":"http://patchwork.ozlabs.org/api/people/89422/?format=json","name":"Brian Ruley","email":"brian.ruley@gehealthcare.com"},"delegate":{"id":151988,"url":"http://patchwork.ozlabs.org/api/users/151988/?format=json","username":"festevam","first_name":"Fabio","last_name":"Estevam","email":"festevam@gmail.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20260422094649.57611-3-brian.ruley@gehealthcare.com/mbox/","series":[{"id":501004,"url":"http://patchwork.ozlabs.org/api/series/501004/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=501004","date":"2026-04-22T09:46:40","name":"[1/5] clk: imx6q: cosmetic: keep pll definitions together","version":1,"mbox":"http://patchwork.ozlabs.org/series/501004/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2226443/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2226443/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gehealthcare.com header.i=@gehealthcare.com\n header.a=rsa-sha256 header.s=selector1 header.b=d5hqJxpC;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=gehealthcare.com","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gehealthcare.com header.i=@gehealthcare.com\n header.b=\"d5hqJxpC\";\n\tdkim-atps=neutral","phobos.denx.de; dmarc=pass (p=quarantine dis=none)\n header.from=gehealthcare.com","phobos.denx.de;\n spf=pass smtp.mailfrom=Brian.Ruley@gehealthcare.com"],"Received":["from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0zG973DKz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 22:35:29 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 6D107842B7;\n\tWed, 22 Apr 2026 14:34:32 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id ACAD58426E; Wed, 22 Apr 2026 11:47:07 +0200 (CEST)","from SJ2PR03CU001.outbound.protection.outlook.com\n (mail-westusazlp170120002.outbound.protection.outlook.com\n [IPv6:2a01:111:f403:c001::2])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 41C1C8423E\n for <u-boot@lists.denx.de>; Wed, 22 Apr 2026 11:47:04 +0200 (CEST)","from CH5P223CA0007.NAMP223.PROD.OUTLOOK.COM (2603:10b6:610:1f3::18)\n by LV8PR22MB5700.namprd22.prod.outlook.com (2603:10b6:408:266::20)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9846.20; Wed, 22 Apr\n 2026 09:47:00 +0000","from CH1PEPF0000A34B.namprd04.prod.outlook.com\n (2603:10b6:610:1f3:cafe::b9) by CH5P223CA0007.outlook.office365.com\n (2603:10b6:610:1f3::18) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9791.48 via Frontend Transport; Wed,\n 22 Apr 2026 09:47:00 +0000","from atlrelay2.compute.ge-healthcare.net (165.85.157.49) by\n CH1PEPF0000A34B.mail.protection.outlook.com (10.167.244.10) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9846.18 via Frontend Transport; Wed, 22 Apr 2026 09:47:00 +0000","from zoo11.fihel.lab.ge-healthcare.net\n (zoo11.fihel.lab.ge-healthcare.net [10.168.174.93])\n by builder1.fihel.lab.ge-healthcare.net (Postfix) with ESMTP id CFB611290A;\n Wed, 22 Apr 2026 12:46:57 +0300 (EEST)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,T_SPF_PERMERROR autolearn=no\n autolearn_force=no version=3.4.2","ARC-Seal":"i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=N+GzMfBP7vcxaF2dI42g5/eFjx9Y6srjQR14T7xFkzQ0+nzCjEO/rPftdfo2EdOCReHFbBBr5plopYFG8YZ0jSWVyX5OlU0s3sTBaFy2J2/yCQm/Dqh7E5x6aCojZPmxjf83L3JeTo3GHCZAkA1Hw+trNIVNVL/G/ZYn/3wRJnrPHmzJROiEUsr6qF/L1Z+iRmQXF4G/mFbePWNOohL8Y8vMkbAWg+jUP1lc6U5bJIiByClWz9ClU36J+nLtjeRU5PuMzypEzQPM8lvoqxiSAbv+XV37bUBGLWBIbAhqtje9vgi1yt4OxYLXeBz08gX+MY6eED2eAxrdKZCL0nrtGw==","ARC-Message-Signature":"i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=glV0maNZAgmGEQ0iE4DmMwKCD2+TEp45OOgdX9j69oY=;\n b=W2cLGyTJJl4X0rCnTTwuHgVV36w5dUHqEvKavlnvjfUnhd4Aq2+MdwAJUQUn2P74lYxdcHnzR7dmxfr+KzriTUp9VUH7vfGK2BApMrBBZ5E0V1HC/3EL4Con05s7Ge8KupOjN/9xcz5m7CSKAmmu/vqnimP/YMG08XLv/1/IuEno9yXzu6JLZSLeE5WTs96Geq8Wv9gEe4llmx+rt+qZ9W2PZQmJwW53BfJRvc0Yr9S8m/qDijwb8sIPjkY9BRo5946gEIEUKYikR6zNlhea0k+gBCrzEOgPZ+gCpx7y9BFncaHZ/+rwbXlaogXMIus31Vb+xCWL5Q00d058MUdjFw==","ARC-Authentication-Results":"i=1; mx.microsoft.com 1; spf=fail (sender ip is\n 165.85.157.49) smtp.rcpttodomain=lists.denx.de\n smtp.mailfrom=gehealthcare.com; dmarc=fail (p=quarantine sp=quarantine\n pct=100) action=quarantine header.from=gehealthcare.com; dkim=none (message\n not signed); arc=none (0)","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gehealthcare.com;\n s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=glV0maNZAgmGEQ0iE4DmMwKCD2+TEp45OOgdX9j69oY=;\n b=d5hqJxpC/5LLhtZHxuFldRsC+pl/JH05hFDTblvp/y+bGgkQXL/9GeZbXY/YdAVmgSWIcsW8RLzyvRTFjoHLk7UTLpsKaVbpW/2NeWypTyZW9XxVVFd0bJwbPe1QQaF5K9CdGRvghX57imeKMgv3iT470CIx+WnAsuJAwgn72TtOJo9tuudN7K3TAlM5rJ32WDUWLNR9aYyWIwarkU5+KuFDS2ihbRdbe7TK0ldddZB1+45fJbFjOLnpKEKmD1dX8MUHCC/wUIgP4jnNB4RNzZhPv0j3w6ntExHxiNtm++FfWUggIglauLDal9a2zrDeOY8a7uKTfy2K3GnfQeGQ7g==","X-MS-Exchange-Authentication-Results":"spf=fail (sender IP is 165.85.157.49)\n smtp.mailfrom=gehealthcare.com; dkim=none (message not signed)\n header.d=none;dmarc=fail action=quarantine header.from=gehealthcare.com;","Received-SPF":"Fail (protection.outlook.com: domain of gehealthcare.com does\n not designate 165.85.157.49 as permitted sender)\n receiver=protection.outlook.com; client-ip=165.85.157.49;\n helo=atlrelay2.compute.ge-healthcare.net;","From":"Brian Ruley <brian.ruley@gehealthcare.com>","To":"Stefano Babic <sbabic@nabladev.com>, Fabio Estevam <festevam@gmail.com>,\n \"NXP i.MX U-Boot Team\" <uboot-imx@nxp.com>, Tom Rini <trini@konsulko.com>,\n Heiko Schocher <hs@nabladev.com>,\n \"Huan 'Kitty' Wang\" <HuanWang@gehealthcare.com>,\n Ian Ray <ian.ray@gehealthcare.com>,\n Martyn Welch <martyn.welch@collabora.com>","Cc":"Brian Ruley <brian.ruley@gehealthcare.com>,\n\tu-boot@lists.denx.de","Subject":"[PATCH 3/5] imx6: clock: allow different clock sources for ldb","Date":"Wed, 22 Apr 2026 12:46:41 +0300","Message-ID":"<20260422094649.57611-3-brian.ruley@gehealthcare.com>","X-Mailer":"git-send-email 2.47.3","In-Reply-To":"<20260422094649.57611-1-brian.ruley@gehealthcare.com>","References":"<20260422094649.57611-1-brian.ruley@gehealthcare.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-EOPAttributedMessage":"0","X-MS-PublicTrafficType":"Email","X-MS-TrafficTypeDiagnostic":"CH1PEPF0000A34B:EE_|LV8PR22MB5700:EE_","Content-Type":"text/plain","X-MS-Office365-Filtering-Correlation-Id":"97785d64-2b65-49ab-f4ea-08dea05419b2","X-MS-Exchange-SenderADCheck":"1","X-MS-Exchange-AntiSpam-Relay":"0","X-Microsoft-Antispam":"BCL:0;\n ARA:13230040|376014|36860700016|82310400026|1800799024|18002099003|22082099003|56012099003;","X-Microsoft-Antispam-Message-Info":"\n RQaC7Ie5PLJKBBNXq47EHUY24+MNatOGQK7Sl4mLidyCBWNv5HwwVYTJzOaPBvf6EiJqUoTJ54lBQUPIudvgk3rP0n0ZDE/N+t+ZwMMm78m7uHasPtgCWUtOlAeD7m1u4ibrvloH9U/zwdNVm0y3uvczIlp0pBS9qwiH/3p9TN2oTBnweoRBugbsAqmkKBi/jbS3eSjrB2xgDlVt1q2jnT8bWPLTzzeMxYwpgSYophavJ5pOXLF+eK7Q6zfTmjQXcs9ZPNLHFDeSreOsLEXGgaiAL+sB205sn3z1QyEfp7acZaTr8xRvI2sYe8NKWfbE6uQ8CpyIvZS/auuI5xiF5UQ3XUQTYSVNR38HiXNpx5mhS5+CHmaohwgXEXB2srz3r0rbOZfvR2YxXNDwJovOobivMSt4jvTflRGF7mzKo9MdbnFdEFhvj+ATB5BKD0inZ/Ws2e18MiAMyAO4P+PGr28qRNhuMT44PxDfR8/fxSGee3WHyShQkOUutKzF5s0ygqiujFKzEuEVFwAtBXuCVKt7TFvEY+1dmsAUJButUnCGxKni4LS9kC56BgdJEAMDbMxqkcTxZzmchsK5zgNnFWnfr8J3n379kYb/dCKMcIFtItZfIIob85yM+1goQew+R3ZgAUbdCIOssVaNH/x/YhGlF430kIXnUctpFG8eIL8iZ9wYo6XrpjDoJH3HgJHncrWO2xizSuz/75UdSX8lnw8+dprADEaZ0H+hjCZa9BPqTo1j8iY4mHAUhDdgF5WAgtBIOwfWTk1FymEW8mu1Vw==","X-Forefront-Antispam-Report":"CIP:165.85.157.49; CTRY:US; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:atlrelay2.compute.ge-healthcare.net;\n PTR:InfoDomainNonexistent; CAT:NONE;\n SFS:(13230040)(376014)(36860700016)(82310400026)(1800799024)(18002099003)(22082099003)(56012099003);\n DIR:OUT; SFP:1101;","X-MS-Exchange-AntiSpam-MessageData-ChunkCount":"1","X-MS-Exchange-AntiSpam-MessageData-0":"\n nWJYPx4UsaQqq1cZToSKvXMjwQwNKshAwQK5cJs6B5S533pnqjrjY+tQ20vIRcjpMVTjlLNTnWir97mi9r6jbYu2WONRKU5LAsEwCytHRoofRHoQZcgY2+fLj62+S9xGIWCzFd3OJCo6WDc+bWs2QS3Sto3bjQeq3eY4n721DGDFFBEld6T1r3Is764Khg33DZOs/pOd+EpyWf1iPV8ENHsMPj1DUCsup/pk/TGsvJJ7smujD6tsU8MWp4WcijYTVJ6+z4TR281fzMCn4Re6QvieWy6W/4FXNPdDz/qX+D7g91FXW3l9qFkpj7VATZ0ssSx38EnF2b/lK08TkziBZmxorOygnpMhotZVk+9YyS0EoG83Sqjd8imomY+8r67bbRZ3iU0sYMQSEbGiV7yasrNaMIulevBcBlHwNVgrMF5AD/wc6WNn1Ys2Y32UHyLf","X-OriginatorOrg":"gehealthcare.com","X-MS-Exchange-CrossTenant-OriginalArrivalTime":"22 Apr 2026 09:47:00.0393 (UTC)","X-MS-Exchange-CrossTenant-Network-Message-Id":"\n 97785d64-2b65-49ab-f4ea-08dea05419b2","X-MS-Exchange-CrossTenant-Id":"9a309606-d6ec-4188-a28a-298812b4bbbf","X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp":"\n TenantId=9a309606-d6ec-4188-a28a-298812b4bbbf; Ip=[165.85.157.49];\n Helo=[atlrelay2.compute.ge-healthcare.net]","X-MS-Exchange-CrossTenant-AuthAs":"Internal","X-MS-Exchange-CrossTenant-AuthSource":"\n TreatMessagesAsInternal-CH1PEPF0000A34B.namprd04.prod.outlook.com","X-MS-Exchange-CrossTenant-FromEntityHeader":"HybridOnPrem","X-MS-Exchange-Transport-CrossTenantHeadersStamped":"LV8PR22MB5700","X-Mailman-Approved-At":"Wed, 22 Apr 2026 14:34:21 +0200","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"},"content":"The LDB clock sources don't have to be the same, so allow DI1 clock to\nbe configured separately.\n\nUnlikely to be significant, but the reason will become apparent in the\nfollowing commit.\n\nSigned-off-by: Brian Ruley <brian.ruley@gehealthcare.com>\n---\n arch/arm/include/asm/arch-mx6/clock.h | 2 +-\n arch/arm/mach-imx/mx6/clock.c         | 6 +++---\n board/aristainetos/aristainetos.c     | 2 +-\n board/ge/b1x5v2/b1x5v2.c              | 2 +-\n board/ge/bx50v3/bx50v3.c              | 2 +-\n 5 files changed, 7 insertions(+), 7 deletions(-)","diff":"diff --git a/arch/arm/include/asm/arch-mx6/clock.h b/arch/arm/include/asm/arch-mx6/clock.h\nindex 81af89c631f..9c5f3090bd8 100644\n--- a/arch/arm/include/asm/arch-mx6/clock.h\n+++ b/arch/arm/include/asm/arch-mx6/clock.h\n@@ -82,7 +82,7 @@ int enable_lcdif_clock(u32 base_addr, bool enable);\n void enable_qspi_clk(int qspi_num);\n void enable_thermal_clk(void);\n void mxs_set_lcdclk(u32 base_addr, u32 freq);\n-void select_ldb_di_clock_source(enum ldb_di_clock clk);\n+void select_ldb_di_clock_source(enum ldb_di_clock clk0, enum ldb_di_clock clk1);\n void enable_eim_clk(unsigned char enable);\n int do_mx6_showclocks(struct cmd_tbl *cmdtp, int flag, int argc,\n \t\t      char *const argv[]);\ndiff --git a/arch/arm/mach-imx/mx6/clock.c b/arch/arm/mach-imx/mx6/clock.c\nindex b5aa606b8d0..828a101ba05 100644\n--- a/arch/arm/mach-imx/mx6/clock.c\n+++ b/arch/arm/mach-imx/mx6/clock.c\n@@ -1452,7 +1452,7 @@ static void enable_ldb_di_clock_sources(void)\n  * Try call this function as early in the boot process as possible since the\n  * function temporarily disables PLL2 PFD's, PLL3 PFD's and PLL5.\n  */\n-void select_ldb_di_clock_source(enum ldb_di_clock clk)\n+void select_ldb_di_clock_source(enum ldb_di_clock clk0, enum ldb_di_clock clk1)\n {\n \tstruct mxc_ccm_reg *mxc_ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR;\n \tint reg;\n@@ -1525,8 +1525,8 @@ void select_ldb_di_clock_source(enum ldb_di_clock clk)\n \treg = readl(&mxc_ccm->cs2cdr);\n \treg &= ~(MXC_CCM_CS2CDR_LDB_DI1_CLK_SEL_MASK\n \t      | MXC_CCM_CS2CDR_LDB_DI0_CLK_SEL_MASK);\n-\treg |= ((clk << MXC_CCM_CS2CDR_LDB_DI1_CLK_SEL_OFFSET)\n-\t      | (clk << MXC_CCM_CS2CDR_LDB_DI0_CLK_SEL_OFFSET));\n+\treg |= ((clk0 << MXC_CCM_CS2CDR_LDB_DI1_CLK_SEL_OFFSET)\n+\t      | (clk1 << MXC_CCM_CS2CDR_LDB_DI0_CLK_SEL_OFFSET));\n \twritel(reg, &mxc_ccm->cs2cdr);\n \n \t/* Unbypass pll3_sw_clk */\ndiff --git a/board/aristainetos/aristainetos.c b/board/aristainetos/aristainetos.c\nindex 8cfac9fbb34..4a2349e165b 100644\n--- a/board/aristainetos/aristainetos.c\n+++ b/board/aristainetos/aristainetos.c\n@@ -218,7 +218,7 @@ static void set_gpr_register(void)\n \n int board_early_init_f(void)\n {\n-\tselect_ldb_di_clock_source(MXC_PLL5_CLK);\n+\tselect_ldb_di_clock_source(MXC_PLL5_CLK, MXC_PLL5_CLK);\n \tset_gpr_register();\n \n \t/*\ndiff --git a/board/ge/b1x5v2/b1x5v2.c b/board/ge/b1x5v2/b1x5v2.c\nindex ddb7304d493..f7751fd6fb1 100644\n--- a/board/ge/b1x5v2/b1x5v2.c\n+++ b/board/ge/b1x5v2/b1x5v2.c\n@@ -320,7 +320,7 @@ int overwrite_console(void)\n \n int board_early_init_f(void)\n {\n-\tselect_ldb_di_clock_source(MXC_PLL5_CLK);\n+\tselect_ldb_di_clock_source(MXC_PLL5_CLK, MXC_PLL5_CLK);\n \n \treturn 0;\n }\ndiff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx50v3/bx50v3.c\nindex e1d08475e94..9fc5f604a49 100644\n--- a/board/ge/bx50v3/bx50v3.c\n+++ b/board/ge/bx50v3/bx50v3.c\n@@ -383,7 +383,7 @@ int board_early_init_f(void)\n \n #if defined(CONFIG_VIDEO_IPUV3)\n \t/* Set LDB clock to Video PLL */\n-\tselect_ldb_di_clock_source(MXC_PLL5_CLK);\n+\tselect_ldb_di_clock_source(MXC_PLL5_CLK, MXC_PLL5_CLK);\n #endif\n \treturn 0;\n }\n","prefixes":["3/5"]}