]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: mx6sllevk: select DM_SERIAL
authorPeng Fan <peng.fan@nxp.com>
Mon, 7 Nov 2022 08:00:11 +0000 (16:00 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 31 Jan 2023 11:11:34 +0000 (12:11 +0100)
Select DM_SERIAL

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/dts/imx6sll-evk-u-boot.dtsi [new file with mode: 0644]
board/freescale/mx6sllevk/mx6sllevk.c
configs/mx6sllevk_defconfig
configs/mx6sllevk_plugin_defconfig

diff --git a/arch/arm/dts/imx6sll-evk-u-boot.dtsi b/arch/arm/dts/imx6sll-evk-u-boot.dtsi
new file mode 100644 (file)
index 0000000..14d0b58
--- /dev/null
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright 2019, 2021 NXP
+ */
+
+&pinctrl_uart1 {
+       u-boot,dm-pre-reloc;
+};
index d9574623300b0a9ac02526cdb3b1b1167bcd7bce..10a00095affb39f2d4b53809a23aef8e135b34a7 100644 (file)
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#define UART_PAD_CTRL  (PAD_CTL_PKE | PAD_CTL_PUE |            \
-       PAD_CTL_PUS_100K_UP | PAD_CTL_SPEED_MED |               \
-       PAD_CTL_DSE_40ohm   | PAD_CTL_SRE_FAST  | PAD_CTL_HYS)
-
 int dram_init(void)
 {
        gd->ram_size = imx_ddr_size();
@@ -35,20 +31,10 @@ int dram_init(void)
        return 0;
 }
 
-static iomux_v3_cfg_t const uart1_pads[] = {
-       MX6_PAD_UART1_TXD__UART1_DCE_TX | MUX_PAD_CTRL(UART_PAD_CTRL),
-       MX6_PAD_UART1_RXD__UART1_DCE_RX | MUX_PAD_CTRL(UART_PAD_CTRL),
-};
-
 static iomux_v3_cfg_t const wdog_pads[] = {
        MX6_PAD_WDOG_B__WDOG1_B | MUX_PAD_CTRL(NO_PAD_CTRL),
 };
 
-static void setup_iomux_uart(void)
-{
-       imx_iomux_v3_setup_multiple_pads(uart1_pads, ARRAY_SIZE(uart1_pads));
-}
-
 #ifdef CONFIG_DM_PMIC_PFUZE100
 int power_init_board(void)
 {
@@ -94,8 +80,6 @@ int power_init_board(void)
 
 int board_early_init_f(void)
 {
-       setup_iomux_uart();
-
        return 0;
 }
 
index 39a15ae830ec6c06df3a96d6a3997bc8b5ff3ad4..ea46071626a12e9f3c3281159b1c93d917df31ef 100644 (file)
@@ -51,6 +51,7 @@ CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_PFUZE100=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
+CONFIG_DM_SERIAL=y
 CONFIG_MXC_UART=y
 CONFIG_IMX_THERMAL=y
 CONFIG_USB=y
index 47d82540aca351f13ad3194938398838c134573a..885dda716c1920f0914a3341e0cd5ee88f30e953 100644 (file)
@@ -52,6 +52,7 @@ CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_PFUZE100=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
+CONFIG_DM_SERIAL=y
 CONFIG_MXC_UART=y
 CONFIG_IMX_THERMAL=y
 CONFIG_USB=y