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 095EFC7618E for ; Sat, 22 Apr 2023 01:23:51 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B7D8886408; Sat, 22 Apr 2023 03:23:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject 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="iXEcDE3X"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A5CCC86403; Sat, 22 Apr 2023 03:23:18 +0200 (CEST) Received: from s.wrqvtbkv.outbound-mail.sendgrid.net (s.wrqvtbkv.outbound-mail.sendgrid.net [149.72.123.24]) (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 5913C863F9 for ; Sat, 22 Apr 2023 03:23:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject 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=3/2ZAwC5LiI9HDe5YWpQZoFZGsZ7TLKJDK6yxdo4kR4=; b=iXEcDE3X16hsvFDES96da2m+r+gpaPmxCFigMLxRLqZSSfF+xGWvvj/VxTkcu94fkjRo 8Wv0hK6G6I5evwAkPOCthIyAx6cBfwfnlvzdYkTEWK4BQKqBhFTmGPGiKFwiTkDGHHyNzQ bQmOQtNXtPyhNhBpyOHhxCYWI+HBvFkMiYTqabX51N/W+FFbjquEY/StDPqcsnEHEcUTA4 Gk+RatY5d6jkPlr3fPFdMxujZ7gCtLULWqTZoBv1VitpkQnK21A0LYNQOiOnfFf7cj+LIM UKb/R5iTYEqoK2ZXCf0x2+xHfKzTeDlxaiLOxTv5EyQFO5rY4oL1vp06lxNgP1CA== Received: by filterdrecv-7946957d94-j6hn4 with SMTP id filterdrecv-7946957d94-j6hn4-1-64433700-13 2023-04-22 01:23:12.788228011 +0000 UTC m=+5104208.443434153 Received: from bionic.localdomain (unknown) by geopod-ismtpd-canary-0 (SG) with ESMTP id TdDVSAW2SUu-ej16i3NZ4Q Sat, 22 Apr 2023 01:23:12.492 +0000 (UTC) From: Jonas Karlman Subject: [PATCH 01/14] spi: rockchip_sfc: Use linux rockchip,sfc-no-dma prop Date: Sat, 22 Apr 2023 01:23:13 +0000 (UTC) Message-Id: <20230422012309.402799-2-jonas@kwiboo.se> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230422012309.402799-1-jonas@kwiboo.se> References: <20230422012309.402799-1-jonas@kwiboo.se> MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0hwmlAoYsFjFjh2UPZ?= =?us-ascii?Q?b4Zmj+k26FZhbIV2Yl8OJqsUC2q4MPNQnhj8EP8?= =?us-ascii?Q?baZbpqUPq79wCkn7IEIfN4EeA90YINTxgUxmH4d?= =?us-ascii?Q?C7Jg936KLyJRWDpXCfEOdCUC8=2FLfp6ZcD0Vwl9l?= =?us-ascii?Q?m+XD8sRN17NG1D5Q4+Az0Ax2m+W8+465jAY=2FK7?= To: Kever Yang , Simon Glass , Philipp Tomsich , Jagan Teki Cc: 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 Use the same prop as linux to control the use of fifo or dma mode. Also add a u-boot,spl-sfc-no-dma prop to control the same in SPL. Signed-off-by: Jonas Karlman --- drivers/spi/rockchip_sfc.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/spi/rockchip_sfc.c b/drivers/spi/rockchip_sfc.c index 851a6482985b..1c26802c618e 100644 --- a/drivers/spi/rockchip_sfc.c +++ b/drivers/spi/rockchip_sfc.c @@ -227,10 +227,12 @@ static int rockchip_sfc_ofdata_to_platdata(struct udevice *bus) struct rockchip_sfc *sfc = dev_get_plat(bus); sfc->regbase = dev_read_addr_ptr(bus); - if (ofnode_read_bool(dev_ofnode(bus), "sfc-no-dma")) - sfc->use_dma = false; - else - sfc->use_dma = true; + sfc->use_dma = !dev_read_bool(bus, "rockchip,sfc-no-dma"); + +#ifdef CONFIG_SPL_BUILD + if (sfc->use_dma) + sfc->use_dma = !dev_read_bool(bus, "u-boot,spl-sfc-no-dma"); +#endif #if CONFIG_IS_ENABLED(CLK) int ret; -- 2.40.0