From patchwork Thu Jan 25 11:05:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 125817 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1041626ljf; Thu, 25 Jan 2018 03:20:02 -0800 (PST) X-Google-Smtp-Source: AH8x226hvnllooFcCdZMn7YVSf/hYChKhiQiaMLCilMQ7+wdaYxhZFo5ew9FImS6uDpg1+72P/rm X-Received: by 10.80.171.21 with SMTP id s21mr29961958edc.117.1516879202870; Thu, 25 Jan 2018 03:20:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516879202; cv=none; d=google.com; s=arc-20160816; b=cbDxgfiBZ3WOC86Q3/5I7wXuqD5QrEAwRGYdfAwcSOzvwbv8pSYi9saovdyx77kd3A eo1KH+fpiePyaFaTAj+6oG5llA16WmlcfVGmd3xPhRbvUz6wnE5lDf7Tt+08uJMdLzmF A5f7dEubhgwOvcFybUtwj+qzphoqyYh22oxtRQDHMCo2hXARQAysq4E3I0urI5Z+Zuj9 pCUWErBsyBzsLQ+jb5iX1TeKAD9Z7GXRruNVXTvzm6pMuhqVGkvW16CcLQT5tZ6+KWHF dGU87a2Got64vpbiQ92gYf+PVvTbKGTyPWcUMr5Q7FMt8qlRDS/z3yKpmEySW0PI6oRL +ysg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:arc-authentication-results; bh=zmHlJHi+aOnMqI1es5K9MpaVlkPt6GL0gRe8Vzy42jM=; b=0ODkFg9SgPU7M/KeorTqJwRM0hPbVmgZ1Zk24AZAG49DkGjgu6zNgeZ6YCuaDMt2xm RPZnP18V1EYrUXxUDozpGazQrehCfW+BGH8DbOepxOK0S+e7fPJFcCGAQ+jSmxuV2NO7 a/keGCIi9PcaVIHu8VJrc+2fFjQZrM/FPPGleKM+7niEL/FrSD5zcHzlOgp/voQxfgLl NOJD7fIM1P6rcUNkrHdEm1s3/je/Ngbi1DNemNnW8Qln9Ri+a5qFzLw58OhblxAqLipo 0SDBZ+T6LkIBzsUNWcMJ/cuI7kv5mVSGYe+Q5PldHdKLl1IE5KzHhgZZayhwnyutRBSS Hc0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id b56si1885847eda.69.2018.01.25.03.20.02; Thu, 25 Jan 2018 03:20:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 6984BC21F76; Thu, 25 Jan 2018 11:17:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 7A114C223D4; Thu, 25 Jan 2018 11:13:32 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BE2D1C2240E; Thu, 25 Jan 2018 11:05:58 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id 13816C2240B for ; Thu, 25 Jan 2018 11:05:58 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 8B74FADF6; Thu, 25 Jan 2018 11:05:57 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Thu, 25 Jan 2018 12:05:50 +0100 Message-Id: <20180125110556.76352-10-agraf@suse.de> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20180125110556.76352-1-agraf@suse.de> References: <20180125110556.76352-1-agraf@suse.de> Cc: Tom Rini Subject: [U-Boot] [PATCH v3 09/15] pl010: Convert CONFIG_PL010_SERIAL to Kconfig X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" We want to use Kconfig logic to depend on whether pl01x devices are built in, so let's convert their inclusion selection to Kconfig. This round goes to pl010. Signed-off-by: Alexander Graf --- arch/arm/Kconfig | 1 + drivers/serial/Kconfig | 6 ++++++ include/configs/edb93xx.h | 1 - scripts/config_whitelist.txt | 1 - 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index f6d57f5505..97b8249432 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -348,6 +348,7 @@ config ARCH_AT91 config TARGET_EDB93XX bool "Support edb93xx" select CPU_ARM920T + select PL010_SERIAL config TARGET_ASPENITE bool "Support aspenite" diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index 7b20b47964..2816121dec 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig @@ -447,6 +447,12 @@ config INTEL_MID_SERIAL Select this to enable a UART for Intel MID platforms. This uses the ns16550 driver as a library. +config PL010_SERIAL + bool "ARM PL010 driver" + depends on !DM_SERIAL + help + Select this to enable a UART for platforms using PL010. + config ROCKCHIP_SERIAL bool "Rockchip on-chip UART support" depends on DM_SERIAL && SPL_OF_PLATDATA diff --git a/include/configs/edb93xx.h b/include/configs/edb93xx.h index 8fcc791ab4..fcad7c46dd 100644 --- a/include/configs/edb93xx.h +++ b/include/configs/edb93xx.h @@ -80,7 +80,6 @@ #define CONFIG_SYS_CBSIZE 1024 /* Console I/O buffer size */ /* Serial port hardware configuration */ -#define CONFIG_PL010_SERIAL #define CONFIG_CONS_INDEX 0 #define CONFIG_SYS_BAUDRATE_TABLE {9600, 19200, 38400, 57600, \ 115200, 230400} diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index c98f262079..5ee6b07c6d 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -1626,7 +1626,6 @@ CONFIG_PIXIS_BRDCFG1_SSI_TDM_MASK CONFIG_PIXIS_BRDCFG1_SSI_TDM_SSI CONFIG_PIXIS_BRDCFG1_TDM CONFIG_PIXIS_SGMII_CMD -CONFIG_PL010_SERIAL CONFIG_PL011_CLOCK CONFIG_PL011_SERIAL CONFIG_PL011_SERIAL_RLCR