]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: gateworks: gw_ventana: move SPL uart config out of common
authorTim Harvey <tharvey@gateworks.com>
Tue, 8 Mar 2022 00:24:01 +0000 (16:24 -0800)
committerStefano Babic <sbabic@denx.de>
Tue, 12 Apr 2022 13:36:17 +0000 (15:36 +0200)
Since DM_SERIAL is used for U-Boot we no longer need legacy UART code in
common.c shared by the SPL and U-Boot. Move the legacy UART config to
the non-DM SPL.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
board/gateworks/gw_ventana/common.c
board/gateworks/gw_ventana/common.h
board/gateworks/gw_ventana/gw_ventana_spl.c

index 2be6518b63e02c5040be88191fd077db812ac1b4..6b8900e45ba75ee5240c8870fdb6e471a1b5fbf5 100644 (file)
 
 #include "common.h"
 
-/* UART2: Serial Console */
-static iomux_v3_cfg_t const uart2_pads[] = {
-       IOMUX_PADS(PAD_SD4_DAT7__UART2_TX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL)),
-       IOMUX_PADS(PAD_SD4_DAT4__UART2_RX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL)),
-};
-
-void setup_iomux_uart(void)
-{
-       SETUP_IOMUX_PADS(uart2_pads);
-}
-
 /* MMC */
 static iomux_v3_cfg_t const gw5904_emmc_pads[] = {
        IOMUX_PADS(PAD_SD3_DAT0__SD3_DATA0 | MUX_PAD_CTRL(USDHC_PAD_CTRL)),
index 526ff066b629e3079686e566c6f8c0735cb911f4..d7f60a0b5d9211c15e3af2c582948316e591e7ab 100644 (file)
@@ -79,8 +79,6 @@ struct ventana {
 
 extern struct ventana gpio_cfg[GW_UNKNOWN];
 
-/* configure uart iomux */
-void setup_iomux_uart(void);
 /* configure gpio iomux/defaults */
 void setup_iomux_gpio(int board, struct ventana_board_info *);
 /* late setup of GPIO (configuration per baseboard and env) */
index 60e2768d2eba3d8a4dd032aba757546981fe8356..2d6ef30b9b5a9bfdc67890bd8ec9a0eb2f634386 100644 (file)
@@ -671,6 +671,17 @@ static void ccgr_init(void)
        writel(0x000003FF, &ccm->CCGR6);
 }
 
+/* UART2: Serial Console */
+static const iomux_v3_cfg_t uart2_pads[] = {
+       IOMUX_PADS(PAD_SD4_DAT7__UART2_TX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL)),
+       IOMUX_PADS(PAD_SD4_DAT4__UART2_RX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL)),
+};
+
+void setup_iomux_uart(void)
+{
+       SETUP_IOMUX_PADS(uart2_pads);
+}
+
 /*
  * I2C pad configs:
  * I2C1: GSC