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 DD260C4332F for ; Sun, 18 Dec 2022 12:26:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 46A2C853A2; Sun, 18 Dec 2022 13:26:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=posteo.net 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; secure) header.d=posteo.net header.i=@posteo.net header.b="by/8T+UQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6B08485390; Sun, 18 Dec 2022 13:26:19 +0100 (CET) Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 313CC85390 for ; Sun, 18 Dec 2022 13:26:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=posteo.net Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=stefan_b@posteo.net Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C7463240103 for ; Sun, 18 Dec 2022 13:26:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1671366376; bh=kK8E6zEg/IUOAFhQC/n/z5L2XmxGpnm/rGP/teLz9j4=; h=From:To:Cc:Subject:Date:From; b=by/8T+UQ2U2iYYRf01+c37Hl/Pl/QNWmPaEGh9s4AALFKLlb4tLcowbVvVtK/ZuBe GhfICTPIyF9P0F1RKUvsM9q0Be4zydtw0RyLD7TxnXRxW3+xXbM3VCnFn92nsybHOl tMX+1/X+DnlymN7q7hen1vf+zvkQQ8CH66hPOTZAECl2sQITn5syYY5f9kMK3SdyEy aiySZQsAVDCOyqu0Perr42eo5HsD8PdPKPnqMEGvrqiaUKGYUs1cAkLIKfNCLF1t72 52tgNZ5IniGLFTlOrSf4qQvC0pgFJ10JzIy2O631gEAoF0av1SylXSpoGc2wUC9MjC OiNjT+lQlYM7A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NZhs42B4Qz6tnX; Sun, 18 Dec 2022 13:26:16 +0100 (CET) From: Stefan Bosch To: trini@konsulko.com Cc: u-boot@lists.denx.de, Stefan Bosch Subject: [PATCH v1 3/4] arm: s5p4418: dm_serial: switch to DM_SERIAL Date: Sun, 18 Dec 2022 12:25:33 +0000 Message-Id: <20221218122533.5155-1-stefan_b@posteo.net> In-Reply-To: <20221218115305.4508-1-stefan_b@posteo.net> References: <20221218115305.4508-1-stefan_b@posteo.net> 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.6 at phobos.denx.de X-Virus-Status: Clean Switch the S5P4418-SOC and therefore the s5p4418_nanopi2 board to DM_SERIAL. Signed-off-by: Stefan Bosch --- arch/arm/mach-nexell/Kconfig | 4 ++-- drivers/serial/Kconfig | 9 +++++++++ drivers/serial/Makefile | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-nexell/Kconfig b/arch/arm/mach-nexell/Kconfig index 86a2398637..16324e1520 100644 --- a/arch/arm/mach-nexell/Kconfig +++ b/arch/arm/mach-nexell/Kconfig @@ -6,8 +6,8 @@ config ARCH_S5P4418 select OF_CONTROL select OF_SEPARATE select NX_GPIO - select PL011_SERIAL - select PL011_SERIAL_FLUSH_ON_INIT + select DM_SERIAL + select PL01X_SERIAL help Enable support for Nexell S5P4418 SoC. diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index de02e08a29..b3e9bb4a15 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig @@ -789,6 +789,15 @@ config S5P_SERIAL help Select this to enable Samsung S5P UART support. +config S5P4418_PL011_SERIAL + bool "Extended PL011 driver for S5P4418" + depends on DM_SERIAL && PL01X_SERIAL && ARCH_NEXELL + default y + help + Select this to enable support of the PL011 UARTs in the S5P4418 SOC. + With this driver the UART-clocks are set to the appropriate rate + (if not 'skip-init'). + config SANDBOX_SERIAL bool "Sandbox UART support" depends on SANDBOX diff --git a/drivers/serial/Makefile b/drivers/serial/Makefile index eb7b8f23ee..4853f4d59b 100644 --- a/drivers/serial/Makefile +++ b/drivers/serial/Makefile @@ -75,6 +75,7 @@ obj-$(CONFIG_MT7620_SERIAL) += serial_mt7620.o obj-$(CONFIG_HTIF_CONSOLE) += serial_htif.o obj-$(CONFIG_SIFIVE_SERIAL) += serial_sifive.o obj-$(CONFIG_XEN_SERIAL) += serial_xen.o +obj-$(CONFIG_S5P4418_PL011_SERIAL) += serial_s5p4418_pl011.o ifndef CONFIG_SPL_BUILD obj-$(CONFIG_USB_TTY) += usbtty.o -- 2.17.1