All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 8/9] mpc85xx, socrates: enable DM serial
Date: Wed, 16 Oct 2019 05:55:53 +0200	[thread overview]
Message-ID: <20191016035554.3912054-9-hs@denx.de> (raw)
In-Reply-To: <20191016035554.3912054-1-hs@denx.de>

switch to DM_SERIAL support.

Signed-off-by: Heiko Schocher <hs@denx.de>
---

Changes in v2: None

 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
-- 
2.21.0

  parent reply	other threads:[~2019-10-16  3:55 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-16  3:55 [U-Boot] [PATCH v2 0/9] powerpc: convert socrates board to DM Heiko Schocher
2019-10-16  3:55 ` [U-Boot] [PATCH v2 1/9] mpc85xx, socrates: suppress unknown flash warning Heiko Schocher
2019-10-16  3:55 ` [U-Boot] [PATCH v2 2/9] mpc85xx: add socrates dts from linux Heiko Schocher
2019-10-16  3:55 ` [U-Boot] [PATCH v2 3/9] mpc85xx, dts, socrates: add u-boot specific dtsi Heiko Schocher
2019-10-16  3:55 ` [U-Boot] [PATCH v2 4/9] mpc85xx, socrates: add DM support Heiko Schocher
2019-10-23 11:18   ` Priyanka Jain
2019-10-28  5:02     ` Heiko Schocher
2019-10-28  5:49       ` Heiko Schocher
2019-10-30 12:42         ` Heiko Schocher
2019-10-31  6:00           ` Priyanka Jain
2019-10-16  3:55 ` [U-Boot] [PATCH v2 5/9] mpc85xx, socrates: get rid of DM_USB warning Heiko Schocher
2019-10-16  3:55 ` [U-Boot] [PATCH v2 6/9] mpc85xx, socrates: disable VIDEO Heiko Schocher
2019-10-16  6:56   ` Priyanka Jain
2019-10-16  7:20     ` Heiko Schocher
2019-10-16 10:40       ` Heiko Schocher
2019-10-16 10:47         ` Priyanka Jain
2019-10-16 10:56           ` Heiko Schocher
2019-10-16  3:55 ` [U-Boot] [PATCH v2 7/9] mpc85xx, socrates: enable DM I2C Heiko Schocher
2019-10-16  3:55 ` Heiko Schocher [this message]
2019-10-16  3:55 ` [U-Boot] [PATCH v2 9/9] mpc85xx, socrates: add DM PCI support Heiko Schocher
2019-11-07  4:10 ` [U-Boot] [PATCH v2 0/9] powerpc: convert socrates board to DM Priyanka Jain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191016035554.3912054-9-hs@denx.de \
    --to=hs@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.