From patchwork Fri Dec 17 15:55:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 12696693 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D2951C433EF for ; Fri, 17 Dec 2021 16:22:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jJAsbX+uZ2un+5XTISB87mRxkz7Rl9+rEWA02sMxZFA=; b=WuGDJmdSmDGFOf aVrxxglL/M3aUKtW8+BvhQTN0jD3KRu+bLcKlKJ3m1dNjQ4vz2htFcM+CmFedcvxjdp7p4b9lrQxf avXESKQrNBfH/tVNz8WzFY1eUr/eTya6qq2DPKdAVcvR0dTbJEowonVICiB7OYAH+3g6baG5BzZ4k MgGcyfhqaf8KUXg5muGTKLHA3ZEzxtMbMDL2NMndtwDyFK6BqD9NxJmbgTNMG0m9Y9+ndPmmFU9k2 UCAx/pQafweBNMgL1Q+KkdDm6IOvkXkzug7/jGZDCaqoCyaMz+bULFh8pq0ScFS9dgahkVYM1qM9Q e+0nkur2kNI0SLhpYIIg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1myFy7-00B8bn-70; Fri, 17 Dec 2021 16:20:29 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1myFaG-00B1Sc-5Y for linux-arm-kernel@lists.infradead.org; Fri, 17 Dec 2021 15:55:51 +0000 Received: by mail-ed1-x535.google.com with SMTP id b7so9506735edd.6 for ; Fri, 17 Dec 2021 07:55:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7755/oSm9xb3xyECSk0fLF9ekbC+MSg548pl7mm+dvs=; b=PM52FyxxKrfr/YfvOpCGnn5QuSEdpLGLGAhIIZ+rf917QjULuP+7ypuzS7SziIy+LU 7DfuYuYmD3hwKC61MUpVCDa4Pr0ugi7yfEiGfWfok0H6kQLHM4XPOkGbjl9vL4zuFVri 0OK2jLHMthBDAFekKONF33uJjMzXKgpWdKbng= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7755/oSm9xb3xyECSk0fLF9ekbC+MSg548pl7mm+dvs=; b=pqv+NUxu8UM+zqUSi+GpWGALw2AEJ1h51yhfU5YZzbQ3KFybbs8ELrziIZ06lYqxpU WQZW9T/MIfHWeKbAW/0NXLZrhecgwmGKwcI36/9MeylXTPiQjSUZ3nuL325M9SgMxcjG zwAppl4OgtBzBK+ePRmJphzyZTOO685fD7JZoBxoNRCAIxMVGTeEV0wlmPsPyrO/yFBU v2GP67DZrwj7GlfW7aXrZTq+8rTAlAMh2ony1BB3656TWUj/6kSIGhzlHLpxMHJrkqjn yuWk9Dr/1Al5ZENODoQVr/qfgnVQHwoA7OOfockmSftpJstnozx6RpPU4eKV1FpR/T0q KTUA== X-Gm-Message-State: AOAM532Oj72fufaCchZMSZyA9NZxe1LSJCuhF3dzPXwzG4o9RypPtgWy GFVgdr8Ul/S7QQgmnpLXMl+yaQ== X-Google-Smtp-Source: ABdhPJyMTZOZAd1aoaZIc13FzAy0XfeTkk3umcmhxcsYykPFbkE0P11xR7Nw0c+6k+Tpb29X2PNzlg== X-Received: by 2002:a05:6402:42cf:: with SMTP id i15mr3431756edc.82.1639756547043; Fri, 17 Dec 2021 07:55:47 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com (host-79-56-50-241.retail.telecomitalia.it. [79.56.50.241]) by smtp.gmail.com with ESMTPSA id i6sm772158edx.46.2021.12.17.07.55.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Dec 2021 07:55:46 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Michael Trimarchi , Dario Binacchi , Fabio Estevam , Michael Turquette , NXP Linux Team , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Stephen Boyd , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [RFC PATCH 1/4] clk: mxs: imx28: Reparent gpmi clk to ref_gpmi Date: Fri, 17 Dec 2021 16:55:09 +0100 Message-Id: <20211217155512.1877408-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211217155512.1877408-1-dario.binacchi@amarulasolutions.com> References: <20211217155512.1877408-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211217_075548_849965_8501510B X-CRM114-Status: GOOD ( 11.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Michael Trimarchi ref_gpmi is connected that is sourced from pll0. This allow to get nand clk frequency to handle edo mode 5,4,3 Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- drivers/clk/mxs/clk-imx28.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/mxs/clk-imx28.c b/drivers/clk/mxs/clk-imx28.c index 62146ea4d5b8..9e0b9f8e5885 100644 --- a/drivers/clk/mxs/clk-imx28.c +++ b/drivers/clk/mxs/clk-imx28.c @@ -243,6 +243,9 @@ static void __init mx28_clocks_init(struct device_node *np) clk_register_clkdev(clks[enet_out], NULL, "enet_out"); + /* GPMI set parent to ref_gpmi instead of osc */ + clk_set_parent(clks[gpmi_sel], clks[ref_gpmi]); + for (i = 0; i < ARRAY_SIZE(clks_init_on); i++) clk_prepare_enable(clks[clks_init_on[i]]); }