From patchwork Wed Oct 9 05:11:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Schocher X-Patchwork-Id: 1173593 X-Patchwork-Delegate: priyanka.jain@nxp.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46p2VT0RCXz9sP7 for ; Wed, 9 Oct 2019 16:15:44 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 4636EC21F8A; Wed, 9 Oct 2019 05:13:11 +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=0.0 required=5.0 tests=none 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 5E8FCC21EFD; Wed, 9 Oct 2019 05:12:55 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 04224C21F81; Wed, 9 Oct 2019 05:11:39 +0000 (UTC) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by lists.denx.de (Postfix) with ESMTPS id 24CB6C21F31 for ; Wed, 9 Oct 2019 05:11:39 +0000 (UTC) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 46p2Pk70t7z1rQ69; Wed, 9 Oct 2019 07:11:38 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 46p2Pk6rT7z1qqkJ; Wed, 9 Oct 2019 07:11:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id wxn5idTc3_Eg; Wed, 9 Oct 2019 07:11:38 +0200 (CEST) X-Auth-Info: S9WuEHiUiGw4FH+CFOBnf5SU8A5l/HRmlNyopcpPjkA= Received: from mail-internal.denx.de (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Wed, 9 Oct 2019 07:11:38 +0200 (CEST) Received: from pollux.denx.de (pollux [192.168.1.1]) by mail-internal.denx.de (Postfix) with ESMTP id 42152185866; Wed, 9 Oct 2019 07:11:13 +0200 (CEST) Received: by pollux.denx.de (Postfix, from userid 515) id 40E4D1A006D; Wed, 9 Oct 2019 07:11:13 +0200 (CEST) From: Heiko Schocher To: U-Boot Mailing List Date: Wed, 9 Oct 2019 07:11:09 +0200 Message-Id: <20191009051110.3418517-9-hs@denx.de> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191009051110.3418517-1-hs@denx.de> References: <20191009051110.3418517-1-hs@denx.de> MIME-Version: 1.0 Subject: [U-Boot] [PATCH 8/9] mpc85xx, socrates: enable DM serial 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" switch to DM_SERIAL support. Signed-off-by: Heiko Schocher --- board/socrates/socrates.c | 5 +++++ configs/socrates_defconfig | 3 +++ include/configs/socrates.h | 12 ------------ 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/board/socrates/socrates.c b/board/socrates/socrates.c index f51b0203f7..8549883508 100644 --- a/board/socrates/socrates.c +++ b/board/socrates/socrates.c @@ -271,3 +271,8 @@ void *board_fdt_blob_setup(void) return fw_dtb; } #endif + +int get_serial_clock(void) +{ + return 333333330; +} diff --git a/configs/socrates_defconfig b/configs/socrates_defconfig index 80b5631d07..5bd60e0886 100644 --- a/configs/socrates_defconfig +++ b/configs/socrates_defconfig @@ -46,6 +46,9 @@ CONFIG_MII=y CONFIG_TSEC_ENET=y CONFIG_DM_RTC=y CONFIG_RTC_RX8025=y +CONFIG_SPECIFY_CONSOLE_INDEX=y +CONFIG_DM_SERIAL=y +CONFIG_SERIAL_SEARCH_ALL=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_DM_USB=y diff --git a/include/configs/socrates.h b/include/configs/socrates.h index 425d758e1d..7adaa344bc 100644 --- a/include/configs/socrates.h +++ b/include/configs/socrates.h @@ -148,18 +148,6 @@ #define CONFIG_SYS_BR2_PRELIM 0xc80018a1 /* UPMB, 32-bit */ #define CONFIG_SYS_OR2_PRELIM 0xfc000000 /* 64 MB */ -/* Serial Port */ - -#define CONFIG_SYS_NS16550_SERIAL -#define CONFIG_SYS_NS16550_REG_SIZE 1 -#define CONFIG_SYS_NS16550_CLK get_bus_freq(0) - -#define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_CCSRBAR+0x4500) -#define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_CCSRBAR+0x4600) - -#define CONFIG_SYS_BAUDRATE_TABLE \ - {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200} - #define CONFIG_SYS_SPD_BUS_NUM 0 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4