All of lore.kernel.org
 help / color / mirror / Atom feed
From: Teresa Remmet <t.remmet@phytec.de>
To: u-boot@lists.denx.de
Cc: Stefano Babic <sbabic@denx.de>,
	Fabio Estevam <festevam@gmail.com>,
	"NXP i . MX U-Boot Team" <uboot-imx@nxp.com>,
	Peng Fan <peng.fan@nxp.com>,
	Jagan Teki <jagan@amarulasolutions.com>,
	Heiko Schocher <hs@denx.de>
Subject: [PATCH v2 4/9] board: phytec: phycore_imx8mp: Change debug UART
Date: Fri, 2 Jul 2021 11:19:43 +0000	[thread overview]
Message-ID: <20210702111948.2197868-5-t.remmet@phytec.de> (raw)
In-Reply-To: <20210702111948.2197868-1-t.remmet@phytec.de>

With the first redesign the debug UART had changed from
UART2 to UART1.
As the first hardware revision is considered as alpha and
will not be supported in future. The old setup will not
be preserved.

Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
---
 arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi | 4 ++--
 board/phytec/phycore_imx8mp/spl.c                   | 6 +++---
 include/configs/phycore_imx8mp.h                    | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi b/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi
index 6c1528934a98..32ed037e3721 100644
--- a/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi
+++ b/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi
@@ -18,7 +18,7 @@
 	u-boot,dm-spl;
 };
 
-&pinctrl_uart2 {
+&pinctrl_uart1 {
 	u-boot,dm-spl;
 };
 
@@ -54,7 +54,7 @@
 	u-boot,dm-spl;
 };
 
-&uart2 {
+&uart1 {
 	u-boot,dm-spl;
 };
 
diff --git a/board/phytec/phycore_imx8mp/spl.c b/board/phytec/phycore_imx8mp/spl.c
index f9fa8d1e1281..0bc4c7693b06 100644
--- a/board/phytec/phycore_imx8mp/spl.c
+++ b/board/phytec/phycore_imx8mp/spl.c
@@ -80,8 +80,8 @@ int board_fit_config_name_match(const char *name)
 #define WDOG_PAD_CTRL   (PAD_CTL_DSE6 | PAD_CTL_ODE | PAD_CTL_PUE | PAD_CTL_PE)
 
 static iomux_v3_cfg_t const uart_pads[] = {
-	MX8MP_PAD_UART2_RXD__UART2_DCE_RX | MUX_PAD_CTRL(UART_PAD_CTRL),
-	MX8MP_PAD_UART2_TXD__UART2_DCE_TX | MUX_PAD_CTRL(UART_PAD_CTRL),
+	MX8MP_PAD_UART1_RXD__UART1_DCE_RX | MUX_PAD_CTRL(UART_PAD_CTRL),
+	MX8MP_PAD_UART1_TXD__UART1_DCE_TX | MUX_PAD_CTRL(UART_PAD_CTRL),
 };
 
 static iomux_v3_cfg_t const wdog_pads[] = {
@@ -107,7 +107,7 @@ void board_init_f(ulong dummy)
 
 	arch_cpu_init();
 
-	init_uart_clk(1);
+	init_uart_clk(0);
 
 	board_early_init_f();
 
diff --git a/include/configs/phycore_imx8mp.h b/include/configs/phycore_imx8mp.h
index 04900498507a..e24f223c21d3 100644
--- a/include/configs/phycore_imx8mp.h
+++ b/include/configs/phycore_imx8mp.h
@@ -39,7 +39,7 @@
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"image=Image\0" \
-	"console=ttymxc1,115200\0" \
+	"console=ttymxc0,115200\0" \
 	"fdt_addr=0x48000000\0" \
 	"fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \
 	"mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \
@@ -87,7 +87,7 @@
 #define PHYS_SDRAM_SIZE			0x80000000
 
 /* UART */
-#define CONFIG_MXC_UART_BASE		UART2_BASE_ADDR
+#define CONFIG_MXC_UART_BASE		UART1_BASE_ADDR
 
 /* Monitor Command Prompt */
 #define CONFIG_SYS_CBSIZE		SZ_2K
-- 
2.25.1


  parent reply	other threads:[~2021-07-02 11:20 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-02 11:19 [PATCH v2 0/9] phyCORE-i.MX8MP Update Teresa Remmet
2021-07-02 11:19 ` [PATCH v2 1/9] arm: dts: imx8mp: Resync imx8mp device tree include Teresa Remmet
2021-07-05  4:54   ` Heiko Schocher
2021-07-02 11:19 ` [PATCH v2 2/9] arm: dts: imx8mp: Add common u-boot dtsi Teresa Remmet
2021-07-05  4:55   ` Heiko Schocher
2021-07-02 11:19 ` [PATCH v2 3/9] arm: dts: imx8mp-phyboard-pollux: Sync dts files with kernel Teresa Remmet
2021-07-05  4:59   ` Heiko Schocher
2021-07-02 11:19 ` Teresa Remmet [this message]
2021-07-05  4:58   ` [PATCH v2 4/9] board: phytec: phycore_imx8mp: Change debug UART Heiko Schocher
2021-07-06 12:16     ` Teresa Remmet
2021-07-02 11:19 ` [PATCH v2 5/9] board: phytec: phycore_imx8mp: Add fec support Teresa Remmet
2021-07-05  4:58   ` Heiko Schocher
2021-07-02 11:19 ` [PATCH v2 6/9] board: phytec: phycore_imx8mp: Set VDD_ARM to 0,95V Teresa Remmet
2021-07-02 11:19 ` [PATCH v2 7/9] board: phytec: phycore-imx8mp: Enable DVS1 control Teresa Remmet
2021-07-02 11:19 ` [PATCH v2 8/9] arm: dts: imx8mp-phyboard-pollux-rdk-u-boot: Add wdog pinctrl entry Teresa Remmet
2021-07-02 11:19 ` [PATCH v2 9/9] board: phytec: imx8mp-phycore: Switch to binman Teresa Remmet
2021-07-05  5:13   ` Heiko Schocher
2021-07-05  5:31   ` Jagan Teki
2021-07-06 12:24     ` Teresa Remmet
2021-07-07  4:47       ` Jagan Teki
2021-07-02 11:53 ` [PATCH v2 0/9] phyCORE-i.MX8MP Update Fabio Estevam

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=20210702111948.2197868-5-t.remmet@phytec.de \
    --to=t.remmet@phytec.de \
    --cc=festevam@gmail.com \
    --cc=hs@denx.de \
    --cc=jagan@amarulasolutions.com \
    --cc=peng.fan@nxp.com \
    --cc=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@nxp.com \
    /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.