From patchwork Tue Feb 7 20:55:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Dureghello X-Patchwork-Id: 1739189 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=timesys-com.20210112.gappssmtp.com header.i=@timesys-com.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=sKhcHs3H; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PBFly0YPgz23jH for ; Wed, 8 Feb 2023 07:56:13 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2B18585DE9; Tue, 7 Feb 2023 21:56:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=timesys.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=timesys-com.20210112.gappssmtp.com header.i=@timesys-com.20210112.gappssmtp.com header.b="sKhcHs3H"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C0BAF85E36; Tue, 7 Feb 2023 21:55:56 +0100 (CET) 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,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (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 D353A85DB8 for ; Tue, 7 Feb 2023 21:55:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=timesys.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=angelo.dureghello@timesys.com Received: by mail-ej1-x634.google.com with SMTP id jg8so6320802ejc.6 for ; Tue, 07 Feb 2023 12:55:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timesys-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=OPyzayLsgF3RDlZ0W6l7hcWwZP9MgEPyRcBgYZfmvpg=; b=sKhcHs3HnTrBjE1wGstvxj0xjJPDbI9kZIwFOulzXZZnizPBPOERVLzQC9bqzoNbGN cAYzUX/Jui9yOB2tXMVF7JFXQH2CV1rcFMTrOJDhFbLmDnYDqfuMmSqL6ZVyxKsBeC+r klfoQwnbU29J1Xkga1D53nedpUL2zhO54x7W17P7g2FGbn5FX0PIWXM93Dlr2bEMig3Y kd7i/8DA5b6TryIwCC6BRFS9COwnIKfjWT7BXaSO6OH/YGNxyQEpSBYnavSWAeFULYLj 5uunyHYl9oEOfUPIDavPOaH+OeZHLqyr+L7cn1KqiaTorgAEWF2llkszWveHLj3GdJSQ ZfjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OPyzayLsgF3RDlZ0W6l7hcWwZP9MgEPyRcBgYZfmvpg=; b=duc7oFlAIPcHVs5/yT1YRjsigIthLW6JPqHyduP5PE6saj41Y86nQzbPnujLC7CxYz s6uILONfmlsFDbq0lcctMdC1013gvNzczhHUxKG5ZJF1nfwtoOnrR+OcDwcVh1jdV5+6 lZu4SsRAC7PdaTjYVqH36Jun91NRMpcWS04sg4qyf0d1iDlu5s6B+b55SSeQp+So7FDL U9EZbbledVF8LRHL4vaz2aZIIMxHw+CXBqSVPV/hYGOkZsWJwit6KQi/0ZCNeFw7XWVO rmdzqFbOOUNCLuQq2UuoKjRC49fin1zEgZLVR8umo09V7w2C5dmP1Pf4td5BFHe/HS90 ZEmw== X-Gm-Message-State: AO0yUKUYJ4YIBpOUwSPZbo52stefGH2f/S1ldpcJG8av41s9eTmb2Vpm +S0WMJADit/o7tcMNoPDJIp9hR/MHskyLNokHdA= X-Google-Smtp-Source: AK7set9Ql407CM2XK+3WDYSHdN14igzxA6niR+Ppcj3MtkDSmqncLzOioCgQ2cB0IMYQBsgbbQZjEA== X-Received: by 2002:a17:907:988e:b0:884:fdb:6c41 with SMTP id ja14-20020a170907988e00b008840fdb6c41mr5034876ejc.43.1675803352429; Tue, 07 Feb 2023 12:55:52 -0800 (PST) Received: from localhost.localdomain (host-79-30-235-173.retail.telecomitalia.it. [79.30.235.173]) by smtp.gmail.com with ESMTPSA id y18-20020a1709063a9200b00878b89075adsm7320249ejd.51.2023.02.07.12.55.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 12:55:52 -0800 (PST) From: Angelo Dureghello To: trini@konsulko.com Cc: u-boot@lists.denx.de, Angelo Durgehello Subject: [PATCH] m68k: add global variable sdhc_per_clk for m68k Date: Tue, 7 Feb 2023 21:55:55 +0100 Message-Id: <20230207205555.272764-1-angelo.dureghello@timesys.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 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.6 at phobos.denx.de X-Virus-Status: Clean From: Angelo Durgehello The FSL eSDHC controller supports two reference clocks. They are platform clock and periperhal clock. The global variable sdhc_clk has already been used for platform clock. ColdFire also uses eSHDC controller, as in arm and powerpc, so adding sdhc_per_clk to arch_global_data. Signed-off-by: Angelo Durgehello --- arch/m68k/include/asm/global_data.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/m68k/include/asm/global_data.h b/arch/m68k/include/asm/global_data.h index 273e843c4a..5f576ba16f 100644 --- a/arch/m68k/include/asm/global_data.h +++ b/arch/m68k/include/asm/global_data.h @@ -23,6 +23,9 @@ struct arch_global_data { #ifdef CONFIG_MCF5441x unsigned long sdhc_clk; #endif +#if defined(CONFIG_FSL_ESDHC) + u32 sdhc_per_clk; +#endif }; #include