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 X-Spam-Level: X-Spam-Status: No, score=-19.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E052DC4338F for ; Sun, 8 Aug 2021 18:23:15 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id F2C75600CD for ; Sun, 8 Aug 2021 18:23:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F2C75600CD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 26B2482DA1; Sun, 8 Aug 2021 20:21:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="kJifO7E/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BE77083201; Sun, 8 Aug 2021 20:21:28 +0200 (CEST) Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) (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 79EF482BF6 for ; Sun, 8 Aug 2021 20:20:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-ot1-x334.google.com with SMTP id d10-20020a9d4f0a0000b02904f51c5004e3so10970649otl.9 for ; Sun, 08 Aug 2021 11:20:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BoKZwvz0h8ZeVDt4bpmv5yd0y46IiaRJ7NNBm+XpwVI=; b=kJifO7E/aW4aRgX2LI63H0SHegW7RPa/76BEtdKx4BYx8iEyYwEPnzlYwsdnX275Cy dvI3QXKEX54Mbo2PLP1alNrDG55dzwvxC9v0lfEy6AlXjtV2Sv/qhoDoFmB8NJXqAnLs s89tQQUqgYXf2ygRuhGuNCKk5GYetyMPl/ryg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BoKZwvz0h8ZeVDt4bpmv5yd0y46IiaRJ7NNBm+XpwVI=; b=fTTPMXRqK7omhUkDDIk6TtdvCqulGnLLB/qRbbQ6Xu7IXNbxHivTKd+IXOdGj1M8/B x/k75cGcihKt+vSzBsBUMZHw/ebwWrQ4TUqtGBIgkAGa23P9HXlCzaFk3ymb2clqrEZ1 BWvH1AVsk4MVQ7XDWnzu5fZivqGnUPxbyPSqkuiLaqcpEWxOuUSTzjcsxQF3k/dezK1j +qAmsqXtveZVuOM/qHJk4xfbSEIxAXlfe+wiYpAlO4eKuuDgiSIPYBvAUtjdqDt3ol7Z iN7CCuld7HUAkIjfYtloC/m5pUVp50oUe7zFsqQfFWTvNLk5kiqMTc9/40VR7qEIDa+A ze+g== X-Gm-Message-State: AOAM531C8v8kvm0ukA6Y7VC1Ep4har4WyV9GVqQWuTosIItITu+x1qdk f+5buMEpulXGHo6n2vq6NLBTDa+B0ebtXuJx X-Google-Smtp-Source: ABdhPJxQj9uPhRdJ2zJIajapP69TseZGmlnWp75xLQ305bAig2WqolDZzU2whaTLXiMJIa3QNeuFMQ== X-Received: by 2002:a9d:70c9:: with SMTP id w9mr3709229otj.104.1628446853897; Sun, 08 Aug 2021 11:20:53 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id bc42sm2257147oob.39.2021.08.08.11.20.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Aug 2021 11:20:53 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH 13/23] Convert CONFIG_DMA_LPC32XX to Kconfig Date: Sun, 8 Aug 2021 12:20:21 -0600 Message-Id: <20210808182031.3747270-14-sjg@chromium.org> X-Mailer: git-send-email 2.32.0.605.g8dce9f2422-goog In-Reply-To: <20210808182031.3747270-1-sjg@chromium.org> References: <20210808182031.3747270-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean This converts the following to Kconfig: CONFIG_DMA_LPC32XX Signed-off-by: Simon Glass --- configs/devkit3250_defconfig | 1 + drivers/dma/Kconfig | 11 +++++++++++ include/configs/devkit3250.h | 3 --- scripts/config_whitelist.txt | 1 - 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/configs/devkit3250_defconfig b/configs/devkit3250_defconfig index 72f89579b4c..539caaf5c86 100644 --- a/configs/devkit3250_defconfig +++ b/configs/devkit3250_defconfig @@ -37,6 +37,7 @@ CONFIG_CMD_JFFS2=y CONFIG_ENV_IS_IN_NAND=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_VERSION_VARIABLE=y +CONFIG_DMA_LPC32XX=y CONFIG_SYS_I2C_LPC32XX=y # CONFIG_MMC is not set CONFIG_MTD=y diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index e81ae96673c..ff5b834a91e 100644 --- a/drivers/dma/Kconfig +++ b/drivers/dma/Kconfig @@ -35,6 +35,16 @@ config BCM6348_IUDMA This driver support data transfer from devices to memory and from memory to devices. +config DMA_LPC32XX + bool "LPC32XX DMA driver" + select DMA_LEGACY + help + Enable some legacy DMA code for lpc32xx. It provides some direct + functions likes lpc32xx_dma_wait_status() which can be called from + other code. + + This should be converted to use driver model and UCLASS_DMA. + config TI_EDMA3 bool "TI EDMA3 driver" select DMA_LEGACY @@ -49,6 +59,7 @@ config APBH_DMA help Enable APBH DMA driver. + if APBH_DMA config APBH_DMA_BURST bool "Enable DMA BURST" diff --git a/include/configs/devkit3250.h b/include/configs/devkit3250.h index 33d71a7042b..b6ba7a0e0d9 100644 --- a/include/configs/devkit3250.h +++ b/include/configs/devkit3250.h @@ -33,9 +33,6 @@ /* * DMA */ -#if !defined(CONFIG_SPL_BUILD) -#define CONFIG_DMA_LPC32XX -#endif /* * I2C diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index dc7806012bd..d2f116e3673 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -270,7 +270,6 @@ CONFIG_DM9000_NO_SROM CONFIG_DM9000_USE_16BIT CONFIG_DMA_COHERENT CONFIG_DMA_COHERENT_SIZE -CONFIG_DMA_LPC32XX CONFIG_DMA_NONCOHERENT CONFIG_DMA_REQ_BIT CONFIG_DNET_AUTONEG_TIMEOUT -- 2.32.0.605.g8dce9f2422-goog