From mboxrd@z Thu Jan 1 00:00:00 1970 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 B7A52EB64DA for ; Sat, 22 Jul 2023 14:02:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8AFAA86366; Sat, 22 Jul 2023 16:02:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se 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=kwiboo.se header.i=@kwiboo.se header.b="HxUbf7Js"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E452D86307; Sat, 22 Jul 2023 16:02:15 +0200 (CEST) Received: from s.wrqvwxzv.outbound-mail.sendgrid.net (s.wrqvwxzv.outbound-mail.sendgrid.net [149.72.154.232]) (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 A9BFB860AC for ; Sat, 22 Jul 2023 16:02:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bounces+31435339-7456-u-boot=lists.denx.de@em2124.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=from:subject:in-reply-to:references:mime-version:to:cc: content-transfer-encoding:content-type:cc:content-type:from:subject:to; s=s1; bh=5IgmFaJ0GtZo/KWmqIJiagEEP3IstTyuAAlE+wCr4lk=; b=HxUbf7JsRo0iPKHoS+8uqlZnYrP0cUR54djijjS+gdusUFgJ9P+P4ZmdmV4GwYRq7iXE 6YlrlrJOUcJMGg5x4SPZ/572SYOE9u/Gcw25MLiZW8/+hgxvB2DFEfxUC2Z3lwkz2BQeNX F/zOsLR6mxSRYLxycpP9p5PdFcE+Tl8TTLOV6mYMSJ9K4zfoI47BC2KajcRcubonsALBeB J+5NhXs8gRSO2LHls4cmuirxBazF+1tnfM8mmbpITuZqkNXJkMvzZkFuxa0dOoTj4AD0Ba H/Kw3/LymC50jL2OIkAQrtGPeUKdq5n7dT5cGjBRZW5Dy8NfihL+lE123VL9aW1Q== Received: by filterdrecv-canary-6699d5694c-nnmg4 with SMTP id filterdrecv-canary-6699d5694c-nnmg4-1-64BBE164-A 2023-07-22 14:02:12.160940759 +0000 UTC m=+642963.024264338 Received: from bionic.localdomain (unknown) by geopod-ismtpd-0 (SG) with ESMTP id PwVrTZTwSKCiGSrwZ3yoUA Sat, 22 Jul 2023 14:02:11.979 +0000 (UTC) From: Jonas Karlman Subject: [PATCH v3 1/3] ata: dwc_ahci: Fix support for other platforms Date: Sat, 22 Jul 2023 14:02:12 +0000 (UTC) Message-ID: <20230722140209.1897117-2-jonas@kwiboo.se> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230722140209.1897117-1-jonas@kwiboo.se> References: <20230722140209.1897117-1-jonas@kwiboo.se> MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0h8A6FIa4DBGUS2xpe?= =?us-ascii?Q?rsv6=2FWcfE2XvAVzF2mjo3MMC0p5vTzndazFk8rd?= =?us-ascii?Q?f8W=2FejT+oUCJ1FXALxcVIly+FP4qfrncvFpluo=2F?= =?us-ascii?Q?NWsCnE07C9Mk6pKMvcHqov4RQdcLqGu=2FnjaSpAd?= =?us-ascii?Q?6etsWftyBjkHGFnEfNuGczBu8xvavvI77FXSK6?= To: Kever Yang , Simon Glass , Philipp Tomsich , Jean-Jacques Hiblot , Mugunthan V N Cc: Stefan Agner , u-boot@lists.denx.de, Jonas Karlman X-Entity-ID: P7KYpSJvGCELWjBME/J5tg== Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii 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 dwc_ahci driver use platform specific defines, place the platform specific code behind a ifdef CONFIG_ARCH_OMAP2PLUS to allow build and use of the driver on Rockchip platform. Fixes: 02a4b4297901 ("drivers: block: dwc_ahci: Implement a driver for Synopsys DWC sata device") Signed-off-by: Jonas Karlman --- v3: - No changes v2: - No changes drivers/ata/dwc_ahci.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/ata/dwc_ahci.c b/drivers/ata/dwc_ahci.c index 826fea71cc5b..1dc91e7fce70 100644 --- a/drivers/ata/dwc_ahci.c +++ b/drivers/ata/dwc_ahci.c @@ -13,7 +13,9 @@ #include #include #include +#ifdef CONFIG_ARCH_OMAP2PLUS #include +#endif #include #include @@ -72,12 +74,14 @@ static int dwc_ahci_probe(struct udevice *dev) return ret; } +#ifdef CONFIG_ARCH_OMAP2PLUS if (priv->wrapper_base) { u32 val = TI_SATA_IDLE_NO | TI_SATA_STANDBY_NO; /* Enable SATA module, No Idle, No Standby */ writel(val, priv->wrapper_base + TI_SATA_SYSCONFIG); } +#endif return ahci_probe_scsi(dev, (ulong)priv->base); } -- 2.41.0