From patchwork Mon Nov 14 20:40:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 694698 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3tHj9n6FP6z9t0J for ; Tue, 15 Nov 2016 07:41:49 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 95C6D4B99D; Mon, 14 Nov 2016 21:41:38 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SeYD8owybpkH; Mon, 14 Nov 2016 21:41:38 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B8541A75AB; Mon, 14 Nov 2016 21:41:33 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 04459A759C for ; Mon, 14 Nov 2016 21:41:31 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u_H_uK1_evR7 for ; Mon, 14 Nov 2016 21:41:30 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mout.perfora.net (mout.perfora.net [74.208.4.197]) by theia.denx.de (Postfix) with ESMTPS id 03359B382E for ; Mon, 14 Nov 2016 21:41:21 +0100 (CET) Received: from marcel-pc.toradex.int.net ([84.227.37.153]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPA (Nemesis) id 0M9HxI-1bvv0f0Wi6-00Cm7G; Mon, 14 Nov 2016 21:40:59 +0100 From: Marcel Ziswiler To: u-boot@lists.denx.de Date: Mon, 14 Nov 2016 21:40:25 +0100 Message-Id: <1479156028-30553-2-git-send-email-marcel.ziswiler@toradex.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1479156028-30553-1-git-send-email-marcel.ziswiler@toradex.com> References: <1479156028-30553-1-git-send-email-marcel.ziswiler@toradex.com> X-Provags-ID: V03:K0:0ARO1tOwddGdAu5GBvidipoVYBiP8pbocAV0EFGWQu9l72MClub 7HcBWPQcBA1WWgJGzAGmTV2ZlypNl2FEbOGPGTBIRMo7DD1z/gqluJuBXudYSeGS5NknKJY BPpSf7CIXotzs0U+l5fgPEF1Thqm+kCEmWmowenuZsY3AFK0rI6JSdM8u+fL59DO9T5+0TE vYrKVKGRkjWi7+TKHq+og== X-UI-Out-Filterresults: notjunk:1; V01:K0:JJTaPpt/pc8=:zVkhlf4zGSKwFFksjw+0Us CAkIpJIETg1qRoSY115qeYvGxzAOddM2mSFCpJO6t8x49+hkGjMa33HZAAScyWHwTpxv2vNL5 RjkqHLnqBCb3imw7/k95c58XpFzoEl5KxVes0mplv6K15DGJSxR8W51OId2jJwVaUjIonY/Ms bi3YE5toS+1F4yklcMe+xhg6jfJKt5LwYIxjotSej26wdsldJtDozR3FO3NopyitDcBVVVCX6 +FMY9YLbYfENzA5pVzqkXgKq3oY6nW1d+h1dc49bbf3CbqEk1PPn4anJmBlYL2cpGhTC4VNYj BJLaCBn0fpViZhz6OeAg9F+IVqvcQARm4lMa546ivfciGno93sYHZ71SONvUtV1JTdynZxjlh MNpGF6N2YnjIFkBBwdtcI2jRLggwKdkZ+6WKXv5hS/45TfhgyVz0onvv5HxgXeZgUUjXg8F18 +uQG59jyK8BpoELaL3pFhosWZg0fdYMllUpymrzG6nEq3TSgSJ3r6LjLoDqcho7XBEOzB6VNe /mlb1BqumtsXpsAazjsmdOl2kxqGvkWau2aQrKbIU7lqU0FrOwsC2kO9ajAgfW8olWZjWXPD1 nARWbSG1FcPrg1gg6a3rXc5Nm8GRojdSjRKAY/7YPAIForytg/0lOIllW4PrF1py2HdlBxLJN CSzkkGfGhq0w6Nxp1BIU0HQNh60LOzHZM31FcIwEWJQB9TAKQTxAYfM2zKwctM/TB/0c= Cc: Marek Vasut , Tom Rini , Hans de Goede , Marcel Ziswiler , Michal Simek , Lukasz Dalek , Wills Wang , Max Krummenacher Subject: [U-Boot] [PATCH v3 1/4] serial: pxa: use kconfig for serial configuration X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 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" Migrate the PXA serial driver to be configured via Kconfig. Signed-off-by: Marcel Ziswiler Reviewed-by: Marek Vasut --- Changes in v3: - Add Marek's reviewed-by. Changes in v2: None configs/colibri_pxa270_defconfig | 1 + configs/h2200_defconfig | 1 + configs/zipitz2_defconfig | 1 + drivers/serial/Kconfig | 6 ++++++ include/configs/colibri_pxa270.h | 1 - include/configs/h2200.h | 2 -- include/configs/zipitz2.h | 1 - scripts/config_whitelist.txt | 1 - 8 files changed, 9 insertions(+), 5 deletions(-) diff --git a/configs/colibri_pxa270_defconfig b/configs/colibri_pxa270_defconfig index 9a57041..85740c2 100644 --- a/configs/colibri_pxa270_defconfig +++ b/configs/colibri_pxa270_defconfig @@ -13,6 +13,7 @@ CONFIG_CMD_DHCP=y CONFIG_CMD_PING=y CONFIG_CMD_EXT2=y CONFIG_CMD_FAT=y +CONFIG_PXA_SERIAL=y CONFIG_USB=y CONFIG_USB_STORAGE=y CONFIG_OF_LIBFDT=y diff --git a/configs/h2200_defconfig b/configs/h2200_defconfig index c1b359e..a47159a 100644 --- a/configs/h2200_defconfig +++ b/configs/h2200_defconfig @@ -24,3 +24,4 @@ CONFIG_SYS_PROMPT="> " # CONFIG_CMD_NFS is not set CONFIG_CMD_PING=y # CONFIG_CMD_MISC is not set +CONFIG_PXA_SERIAL=y diff --git a/configs/zipitz2_defconfig b/configs/zipitz2_defconfig index 8eb9be4..5846579 100644 --- a/configs/zipitz2_defconfig +++ b/configs/zipitz2_defconfig @@ -14,6 +14,7 @@ CONFIG_CMD_USB=y CONFIG_CMD_CACHE=y CONFIG_CMD_EXT2=y CONFIG_CMD_FAT=y +CONFIG_PXA_SERIAL=y CONFIG_USB=y CONFIG_USB_STORAGE=y CONFIG_LCD=y diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index 56c024f..620dd82 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig @@ -407,4 +407,10 @@ config MSM_SERIAL for example APQ8016 and MSM8916. Single baudrate is supported in current implementation (115200). +config PXA_SERIAL + bool "PXA serial port support" + help + If you have a machine based on a Marvell XScale PXA2xx CPU you + can enable its onboard serial ports by enabling this option. + endmenu diff --git a/include/configs/colibri_pxa270.h b/include/configs/colibri_pxa270.h index b15ed72..53efe3a 100644 --- a/include/configs/colibri_pxa270.h +++ b/include/configs/colibri_pxa270.h @@ -47,7 +47,6 @@ /* * Serial Console Configuration */ -#define CONFIG_PXA_SERIAL #define CONFIG_FFUART 1 #define CONFIG_CONS_INDEX 3 #define CONFIG_BAUDRATE 115200 diff --git a/include/configs/h2200.h b/include/configs/h2200.h index 8e77982..18b5488 100644 --- a/include/configs/h2200.h +++ b/include/configs/h2200.h @@ -107,8 +107,6 @@ /* * Serial port */ - -#define CONFIG_PXA_SERIAL #define CONFIG_FFUART #define CONFIG_CONS_INDEX 3 diff --git a/include/configs/zipitz2.h b/include/configs/zipitz2.h index ed2c9ac..97dfc0e 100644 --- a/include/configs/zipitz2.h +++ b/include/configs/zipitz2.h @@ -49,7 +49,6 @@ * Serial Console Configuration * STUART - the lower serial port on Colibri board */ -#define CONFIG_PXA_SERIAL #define CONFIG_STUART 1 #define CONFIG_CONS_INDEX 2 #define CONFIG_BAUDRATE 115200 diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index c0571c3..ab8e6cd 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -3740,7 +3740,6 @@ CONFIG_PWM_IMX CONFIG_PXA_LCD CONFIG_PXA_MMC_GENERIC CONFIG_PXA_PWR_I2C -CONFIG_PXA_SERIAL CONFIG_PXA_STD_I2C CONFIG_PXA_VGA CONFIG_PXA_VIDEO