From patchwork Thu May 13 10:18:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478021 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=MwLAP6Yn; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Fgnr451zjz9sTD for ; Thu, 13 May 2021 20:26:12 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 769C082E4B; Thu, 13 May 2021 12:26:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="MwLAP6Yn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 878F682F23; Thu, 13 May 2021 12:25:51 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from smtpcmd12136.aruba.it (smtpcmd12136.aruba.it [62.149.156.136]) by phobos.denx.de (Postfix) with ESMTP id 67F6782E2B for ; Thu, 13 May 2021 12:19:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8QelewxePQJJh8QtlLfsq; Thu, 13 May 2021 12:19:08 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901148; bh=/TxuRpUn4rRRfOuDHCodJZicrYC531aOJXIYK2IbTBw=; h=From:To:Subject:Date:MIME-Version; b=MwLAP6Ynq0OJheV7gP9ChYNv35r07P1g9sNzcvzoKS1qORj4HqLeIQ0Z8O27uCbAc 1zOqP2p7sR7jJZLR+Jbzkgs0gt/AjYPQr9eHeo2NFRytjYHrhwgvl46g79BYdVThh5 qoxOjLwzRD/Bgql8ov8Pq3cpWRPz/2nZTwX022ld4PebMlXnBOpkJqaZG10MzuJBTx c56sE7soCBdVmkODyX40txM0PHOLjRQ8W5huzykdgBgM3kD1LUGu5V+HaIPBBhwCEO BJDk2WWoo/W81ce+KvcLaroEyh1mvoJntWDplhhEfqbuQHiGGcFl8Ve2ZslVN8+5R2 TEGw1f7FRprCA== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 18/22] video: mxsfb: add enabling of "disp_axi" clock Date: Thu, 13 May 2021 12:18:47 +0200 Message-Id: <20210513101851.11223-19-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> References: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfI8vtS9HWgEml7ur97sXHCTZKlDsl6/PMfxdfRQUHBfcWmMiaLYphznjJdePb9NB8LAuXilA+Apafa6LmgWiqpl8pAspRDMpeVglX5uXRp9Piss3U/Ii d7vm/dO6eX8xTmWElwkckT0roDqxfOvuMscUeYjmHZZo+5OeUSpaQqol+haxK6RdN96L9y/aJoT7vrAMn30t1YeQ2xSJOKHrllRhDQi1zDlUef585g/RzqAQ /guH432VVim4hYGbEORNhueEIPMCV2iWbgnHnS7vS3xQxGKpdBAxoKEuNDPyTvh8lzg7K5AkpO1Q015nouWqOFm5KPaguVO5tGEkRYnUZ+UBtMUbkZ3OFJLg x/C1oGbaD7C20eZSuOMsxazsAcGgH6cE7ya98zXmYr6lBY9B37IYEaCTy9TXLtEWWXkIxVn1UeZfG2Rh8O0HErjoS9dJNRBpCCpkP8yhbTJPe47DOuEoc5m/ ZG42SwsABNncQTuz1lYNJjgvKWcK6MsXnpImxzumr2Wgm4vBjm+KcPB4VALjqW7cc9bop1QmXX/Dc+sCQNN0N1G19rnflxAyzy4/Sp+wJRoWaQF/8+dzjmZ1 qS4= X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.4 at phobos.denx.de X-Virus-Status: Clean Some SoC needs "disp_axi" clock to be enabled, so let's try to retrieve it and enabling. If it fails it gives only a debug(), but this clock as well as "axi" clock is not mandatory. Signed-off-by: Giulio Benetti --- drivers/video/mxsfb.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 147bd668fe..523d8a8d98 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -98,6 +98,17 @@ static void mxs_lcd_init(struct udevice *dev, u32 fb_addr, return; } } + + ret = clk_get_by_name(dev, "disp_axi", &clk); + if (!ret) { + debug("%s: Failed to get mxs disp_axi clk: %d\n", __func__, ret); + } else { + ret = clk_enable(&clk); + if (ret < 0) { + dev_err(dev, "Failed to enable mxs disp_axi clk: %d\n", ret); + return; + } + } #else /* Kick in the LCDIF clock */ mxs_set_lcdclk(MXS_LCDIF_BASE, timings->pixelclock.typ / 1000);