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 9572EEB64DC for ; Sun, 9 Jul 2023 22:48:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9C38F865D7; Mon, 10 Jul 2023 00:48:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="OYUAye7O"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AC35085F0A; Mon, 10 Jul 2023 00:48:02 +0200 (CEST) Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A929F85F0A for ; Mon, 10 Jul 2023 00:47:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=judge.packham@gmail.com Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-666eec46206so3360195b3a.3 for ; Sun, 09 Jul 2023 15:47:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688942878; x=1691534878; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bvMqwQY+4oh0yh8UAEwib5SxDskZct6s8r0MXd6Dudc=; b=OYUAye7OVWrV4O3Ft1h3TuhIASweqaNxRFcKNX0IJWCqWjzy2LUnEcrzXKclrTwS0b 6wl8FIaCUuitzvksZa0O7MYMdbF3ZCN0lihuDyymorVq9jKLcVgeLdY6T87Q6Er8D66/ uQpUgBy4qWoB3QHIAONwTk8QSunbmyX+o819KIPfLRPFle8ncWo4c1/7Xcu15uz2RQs7 Q8uxTguRcCEzAfLgDogfwILLrmwIK9zDsd9tHJ6otjHh0UR00gWO2oneiP3bqfUoR0mG w0OHqxpSjcs3bgRFlSnAI2TRhuKSfet3B1Wh1LX3Hz2g5wOyuncWcNhQ4AsfRJqynX/U Lp0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688942878; x=1691534878; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bvMqwQY+4oh0yh8UAEwib5SxDskZct6s8r0MXd6Dudc=; b=M+3MzDCU1YdiuK4OoRLN5fN1ep/muQ45Q+hD/3ZXo7PkDYUIF8Pj5HeTz8l90bqx4L TDgKkS/jWuXg/ztbBaaOOm7EaCY48bff5SE/h6upgP3BeBxQ4N6FLdHddmt393MONAMS fHas9kZrjMhPZS7zQWcvjm6qIWa6ddAYMDZiumTuGmH9frJjX9AkGQYJB+z5NBpgj8/q s2Hf0mN2qdedJnovooPiBqqV7rOb9CQggKjzQoJL87u/5rKpJW7iQame1DLl/kN1nXhk 0EhoWHFVMjujQkJEiApxqTdXItIQVpgNGeXQogadIrcLwE+7j68WQ2Y3oeVAhEYQCX6j mc0A== X-Gm-Message-State: ABy/qLZTHlD3SgFCGV+FYTr2hUmfi1vwD3pSdJaRV8ftegcyE+xzxu9U EPYlk1s4EGqtVOywCE82B/s= X-Google-Smtp-Source: APBJJlGB+FnqF7b7rtH7kzCSdFBk39Znzs+uYYr6OIm3YHg9Tvz6VStPHM1TjgWYKvQTtNxQpiQ8FQ== X-Received: by 2002:a05:6a00:150c:b0:676:76ea:e992 with SMTP id q12-20020a056a00150c00b0067676eae992mr14789603pfu.5.1688942878043; Sun, 09 Jul 2023 15:47:58 -0700 (PDT) Received: from chrisp-dl.atlnz.lc ([2001:df5:b000:22:53f7:af35:6d87:351d]) by smtp.gmail.com with ESMTPSA id y25-20020aa78559000000b0063f1a1e3003sm5871817pfn.166.2023.07.09.15.47.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jul 2023 15:47:57 -0700 (PDT) From: Chris Packham To: sr@denx.de, dario.binacchi@amarulasolutions.com, michael@amarulasolutions.com Cc: chris.packham@alliedtelesis.co.nz, u-boot@lists.denx.de, Chris Packham Subject: [PATCH v2 2/6] arm: mvebu: ac5: Define mvebu_get_nand_clock() Date: Mon, 10 Jul 2023 10:47:33 +1200 Message-ID: <20230709224737.338525-3-judge.packham@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230709224737.338525-1-judge.packham@gmail.com> References: <20230709224737.338525-1-judge.packham@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The NF_CLK for the AC5 SoC runs at 400MHz. There's no strapping or gating require so just add a mvebu_get_nand_clock() that returns this value. Signed-off-by: Chris Packham --- arch/arm/mach-mvebu/alleycat5/soc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-mvebu/alleycat5/soc.c b/arch/arm/mach-mvebu/alleycat5/soc.c index dc69f46eedb2..734b0a87dd49 100644 --- a/arch/arm/mach-mvebu/alleycat5/soc.c +++ b/arch/arm/mach-mvebu/alleycat5/soc.c @@ -255,6 +255,12 @@ void soc_print_clock_info(void) printf("\tMSS %4d MHz\n", 200); } +/* Return NAND clock in Hz */ +u32 mvebu_get_nand_clock(void) +{ + return 400 * 1000000; +} + /* * Override of __weak int mach_cpu_init(void) : * SoC/machine dependent CPU setup -- 2.41.0