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=-16.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 8FBBCC433EF for ; Mon, 13 Sep 2021 21:25:59 +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 F3C21610FB for ; Mon, 13 Sep 2021 21:25:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F3C21610FB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com 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 AB4938366A; Mon, 13 Sep 2021 23:25:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id AC604835EA; Mon, 13 Sep 2021 23:25:18 +0200 (CEST) Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) (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 AF7058343E for ; Mon, 13 Sep 2021 23:25:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tom.rini@gmail.com Received: by mail-qk1-f169.google.com with SMTP id w78so12296383qkb.4 for ; Mon, 13 Sep 2021 14:25:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=l+qj52tcYtE+nCXcNgO7DlWvOFVk4U7Y38vnRWqkLio=; b=5WgLzG4QYfa8dkj1pVTsEzWSOKSP9maVQaPXH8x4aI6OVtxpM2MQ8iuP0O1hvhOdfU cP2KVoWWyHxaPQZuNBkQ9SV0MbCxg8iTnZpNPi7Rn0YVfc06EVB+W6VGo0hmjS8dmKl/ ousjGBrBkxa59RG8yBIR/82UUhE6lpNYVA2BSRqOCiX8JC9v+L6/91/SD9OIP+pPbu+t cU7xHI4Pwn1STq0EX9nKD+LxPrUm4tdJhJGPiO0GMqUFy0IyaHn6+FWg24CVOgN5l69c hFVBTXYZW6YwLu405/7EXsbMt2aMpfvGbO1T8wyRUaJVkiSv0Sv4nIfx7ZyuR1DQDScy xGjg== X-Gm-Message-State: AOAM531l18MygXOjubAOG7jiq3RWppPm6jGb8Ph25JurDfVEOG0eoOFw qklenx49gOJzjQzkXG4/QS0O5oX6bA== X-Google-Smtp-Source: ABdhPJwwas4DfMJCo7CYa7wBeBbtjXbby8PzOQY5TKfIDz4FUw0TrbB9IClU0KT3f0BxDgeDyfTTug== X-Received: by 2002:a05:620a:1485:: with SMTP id w5mr1734134qkj.448.1631568308083; Mon, 13 Sep 2021 14:25:08 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b01-cbda-0166-c2e8-bb10-efce.res6.spectrum.com. [2603:6081:7b01:cbda:166:c2e8:bb10:efce]) by smtp.gmail.com with ESMTPSA id 9sm4674237qtz.83.2021.09.13.14.25.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 14:25:06 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 3/5] serial: Use the default CONFIG_SYS_BAUDRATE_TABLE in more platforms Date: Mon, 13 Sep 2021 17:24:53 -0400 Message-Id: <20210913212455.29165-3-trini@konsulko.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210913212455.29165-1-trini@konsulko.com> References: <20210913212455.29165-1-trini@konsulko.com> 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 A number of platforms are still defining CONFIG_SYS_BAUDRATE_TABLE to the fallback default of "{ 9600, 19200, 38400, 57600, 115200 }", but with varying whitespace, or were introduced after the default fallback was added. Use the default table here. Signed-off-by: Tom Rini --- include/configs/amcore.h | 1 - include/configs/ap121.h | 3 --- include/configs/ap143.h | 2 -- include/configs/ap152.h | 2 -- include/configs/cm_fx6.h | 1 - include/configs/kontron_sl28.h | 1 - include/configs/ls1012a_common.h | 2 -- include/configs/ls1028a_common.h | 2 -- include/configs/ls1043a_common.h | 2 -- include/configs/ls1046a_common.h | 2 -- include/configs/ls1088a_common.h | 2 -- include/configs/ls2080a_common.h | 2 -- include/configs/lx2160a_common.h | 1 - include/configs/mt7620.h | 3 --- include/configs/s5p4418_nanopi2.h | 1 - include/configs/stmark2.h | 1 - include/configs/synquacer.h | 2 -- include/configs/tplink_wdr4300.h | 2 -- include/configs/vexpress_common.h | 1 - include/configs/xtfpga.h | 1 - 20 files changed, 34 deletions(-) diff --git a/include/configs/amcore.h b/include/configs/amcore.h index 4fd02cd75da4..f70252e1cd28 100644 --- a/include/configs/amcore.h +++ b/include/configs/amcore.h @@ -13,7 +13,6 @@ #define CONFIG_MCFTMR #define CONFIG_MCFUART #define CONFIG_SYS_UART_PORT 0 -#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } #define CONFIG_BOOTCOMMAND "bootm ffc20000" #define CONFIG_EXTRA_ENV_SETTINGS \ diff --git a/include/configs/ap121.h b/include/configs/ap121.h index fb2a0b33cc04..f3fc53ba484f 100644 --- a/include/configs/ap121.h +++ b/include/configs/ap121.h @@ -21,9 +21,6 @@ #define CONFIG_SYS_INIT_SP_ADDR \ (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_SIZE - 1) -#define CONFIG_SYS_BAUDRATE_TABLE \ - {9600, 19200, 38400, 57600, 115200} - #define CONFIG_BOOTCOMMAND "sf probe;" \ "mtdparts default;" \ "bootm 0x9f650000" diff --git a/include/configs/ap143.h b/include/configs/ap143.h index bb9544b8e74e..fa13a801b771 100644 --- a/include/configs/ap143.h +++ b/include/configs/ap143.h @@ -25,8 +25,6 @@ * Serial Port */ #define CONFIG_SYS_NS16550_CLK 25000000 -#define CONFIG_SYS_BAUDRATE_TABLE \ - {9600, 19200, 38400, 57600, 115200} #define CONFIG_BOOTCOMMAND "sf probe;" \ "mtdparts default;" \ diff --git a/include/configs/ap152.h b/include/configs/ap152.h index 766f10b6beac..3eaf19283bba 100644 --- a/include/configs/ap152.h +++ b/include/configs/ap152.h @@ -25,8 +25,6 @@ * Serial Port */ #define CONFIG_SYS_NS16550_CLK 25000000 -#define CONFIG_SYS_BAUDRATE_TABLE \ - {9600, 19200, 38400, 57600, 115200} #define CONFIG_BOOTCOMMAND "sf probe;" \ "mtdparts default;" \ diff --git a/include/configs/cm_fx6.h b/include/configs/cm_fx6.h index a22fd0ee1fe9..d40c3a9c3e54 100644 --- a/include/configs/cm_fx6.h +++ b/include/configs/cm_fx6.h @@ -32,7 +32,6 @@ /* Serial console */ #define CONFIG_MXC_UART_BASE UART4_BASE -#define CONFIG_SYS_BAUDRATE_TABLE {9600, 19200, 38400, 57600, 115200} /* Environment */ diff --git a/include/configs/kontron_sl28.h b/include/configs/kontron_sl28.h index 438a189702d4..6769592101de 100644 --- a/include/configs/kontron_sl28.h +++ b/include/configs/kontron_sl28.h @@ -45,7 +45,6 @@ /* serial port */ #define CONFIG_SYS_NS16550_CLK (get_bus_freq(0) / 2) -#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } #define CONFIG_SYS_CLK_FREQ 100000000 #define COUNTER_FREQUENCY_REAL (CONFIG_SYS_CLK_FREQ / 4) diff --git a/include/configs/ls1012a_common.h b/include/configs/ls1012a_common.h index 1edea0a2b2f3..8a49f2d0075d 100644 --- a/include/configs/ls1012a_common.h +++ b/include/configs/ls1012a_common.h @@ -59,8 +59,6 @@ #define CONFIG_SYS_NS16550_REG_SIZE 1 #define CONFIG_SYS_NS16550_CLK (get_serial_clock()) -#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } - #define CONFIG_SYS_HZ 1000 #define CONFIG_HWCONFIG diff --git a/include/configs/ls1028a_common.h b/include/configs/ls1028a_common.h index 50edefb36324..1401264f9316 100644 --- a/include/configs/ls1028a_common.h +++ b/include/configs/ls1028a_common.h @@ -45,8 +45,6 @@ #define CONFIG_SYS_NS16550_REG_SIZE 1 #define CONFIG_SYS_NS16550_CLK (get_bus_freq(0) / 2) -#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } - /* Miscellaneous configurable options */ /* Physical Memory Map */ diff --git a/include/configs/ls1043a_common.h b/include/configs/ls1043a_common.h index f6909d05a043..14f72520034e 100644 --- a/include/configs/ls1043a_common.h +++ b/include/configs/ls1043a_common.h @@ -54,8 +54,6 @@ #define CONFIG_SYS_NS16550_REG_SIZE 1 #define CONFIG_SYS_NS16550_CLK (get_serial_clock()) -#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } - /* SD boot SPL */ #ifdef CONFIG_SD_BOOT diff --git a/include/configs/ls1046a_common.h b/include/configs/ls1046a_common.h index 1d8adf97d3c4..f0bde08f2460 100644 --- a/include/configs/ls1046a_common.h +++ b/include/configs/ls1046a_common.h @@ -54,8 +54,6 @@ #define CONFIG_SYS_NS16550_REG_SIZE 1 #define CONFIG_SYS_NS16550_CLK (get_serial_clock()) -#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } - /* SD boot SPL */ #ifdef CONFIG_SD_BOOT #define CONFIG_SPL_MAX_SIZE 0x1f000 /* 124 KiB */ diff --git a/include/configs/ls1088a_common.h b/include/configs/ls1088a_common.h index f39f0316c599..9ae0b8e0ae4f 100644 --- a/include/configs/ls1088a_common.h +++ b/include/configs/ls1088a_common.h @@ -63,8 +63,6 @@ #define CONFIG_SYS_NS16550_REG_SIZE 1 #define CONFIG_SYS_NS16550_CLK (get_bus_freq(0) / 2) -#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } - #if !defined(SPL_NO_IFC) || defined(CONFIG_TARGET_LS1088AQDS) /* IFC */ #define CONFIG_FSL_IFC diff --git a/include/configs/ls2080a_common.h b/include/configs/ls2080a_common.h index 770f2aaf6f99..6d9ae9d987ea 100644 --- a/include/configs/ls2080a_common.h +++ b/include/configs/ls2080a_common.h @@ -74,8 +74,6 @@ #define CONFIG_SYS_NS16550_REG_SIZE 1 #define CONFIG_SYS_NS16550_CLK (get_serial_clock()) -#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } - /* IFC */ #define CONFIG_FSL_IFC diff --git a/include/configs/lx2160a_common.h b/include/configs/lx2160a_common.h index 4db19e26c15a..dddac7b05c35 100644 --- a/include/configs/lx2160a_common.h +++ b/include/configs/lx2160a_common.h @@ -67,7 +67,6 @@ (void *)CONFIG_SYS_SERIAL1, \ (void *)CONFIG_SYS_SERIAL2, \ (void *)CONFIG_SYS_SERIAL3 } -#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } /* MC firmware */ #define CONFIG_SYS_LS_MC_DPC_MAX_LENGTH 0x20000 diff --git a/include/configs/mt7620.h b/include/configs/mt7620.h index b05ac0ade5b8..a2de03429218 100644 --- a/include/configs/mt7620.h +++ b/include/configs/mt7620.h @@ -24,9 +24,6 @@ #define CONFIG_SYS_MAXARGS 16 #define CONFIG_SYS_CBSIZE 1024 -/* Serial common */ -#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } - /* SPL */ #define CONFIG_SYS_UBOOT_START CONFIG_SYS_TEXT_BASE diff --git a/include/configs/s5p4418_nanopi2.h b/include/configs/s5p4418_nanopi2.h index c482de122bac..21feba0569e4 100644 --- a/include/configs/s5p4418_nanopi2.h +++ b/include/configs/s5p4418_nanopi2.h @@ -113,7 +113,6 @@ (void *)PHY_BASEADDR_UART1, \ (void *)PHY_BASEADDR_UART2, \ (void *)PHY_BASEADDR_UART3} -#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } /*----------------------------------------------------------------------- * PLL diff --git a/include/configs/stmark2.h b/include/configs/stmark2.h index 5516ecfcdf5c..a71de0545894 100644 --- a/include/configs/stmark2.h +++ b/include/configs/stmark2.h @@ -12,7 +12,6 @@ #define CONFIG_MCFUART #define CONFIG_SYS_UART_PORT 0 -#define CONFIG_SYS_BAUDRATE_TABLE { 9600 , 19200 , 38400 , 57600, 115200 } #define LDS_BOARD_TEXT \ board/sysam/stmark2/sbf_dram_init.o (.text*) diff --git a/include/configs/synquacer.h b/include/configs/synquacer.h index 04db908795c1..13e9c64387ed 100644 --- a/include/configs/synquacer.h +++ b/include/configs/synquacer.h @@ -49,8 +49,6 @@ #define CONFIG_SYS_MEMTEST_START (CONFIG_SYS_SDRAM_BASE + (512 * 1024)) #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + PHYS_SDRAM_SIZE) -#define CONFIG_SYS_BAUDRATE_TABLE {115200, 19200, 38400, 57600, 9600 } - #define CONFIG_SYS_CBSIZE 1024 #define CONFIG_SYS_MAXARGS 128 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) diff --git a/include/configs/tplink_wdr4300.h b/include/configs/tplink_wdr4300.h index 32689e1aecf7..f9a0b7d1aaa8 100644 --- a/include/configs/tplink_wdr4300.h +++ b/include/configs/tplink_wdr4300.h @@ -25,8 +25,6 @@ * Serial Port */ #define CONFIG_SYS_NS16550_CLK 40000000 -#define CONFIG_SYS_BAUDRATE_TABLE \ - {9600, 19200, 38400, 57600, 115200} #define CONFIG_BOOTCOMMAND \ "dhcp 192.168.1.1:wdr4300.fit && bootm $loadaddr" diff --git a/include/configs/vexpress_common.h b/include/configs/vexpress_common.h index 25088da8ed5f..48b74cc86078 100644 --- a/include/configs/vexpress_common.h +++ b/include/configs/vexpress_common.h @@ -123,7 +123,6 @@ #define CONFIG_PL01x_PORTS {(void *)CONFIG_SYS_SERIAL0, \ (void *)CONFIG_SYS_SERIAL1} -#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } #define CONFIG_SYS_SERIAL0 V2M_UART0 #define CONFIG_SYS_SERIAL1 V2M_UART1 diff --git a/include/configs/xtfpga.h b/include/configs/xtfpga.h index b69834a7fa19..ccc90a66f7d1 100644 --- a/include/configs/xtfpga.h +++ b/include/configs/xtfpga.h @@ -170,7 +170,6 @@ /* Input clk to NS16550 (in Hz; the SYS_CLK_FREQ is in kHz) */ #define CONFIG_SYS_NS16550_CLK CONFIG_SYS_CLK_FREQ -#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } /*======================*/ /* Ethernet Driver Info */ -- 2.17.1