Skip to contentSkip to conversation

board: tqma6: non-functional changes

PATCH New Max Merchel 1 participant 5 messages Nov 24, 2025

lore
Share & tools
lore
#0 lore raw

v2 cover board: tqma6: non-functional changes

Hi all,

this series brings non-functional changes to the TQMa6.

Best regards,
Max

---

changes v2:
- changed only commit
board: [cosmetic] tqma6: adjust SPDX tag
- correct copyright year
- add forgotten file: board/tq/tqma6/tqma6_bb.h

Max Merchel (3):
tqma6: Remove empty function tqma6_iomuxc_spi()
board: [cosmetic] tqma6: adjust SPDX tag
board: tqma6: update MAINTAINERS

Paul Gerber (1):
board: tqma6: style fixes

 board/tq/tqma6/Kconfig       | 23 +++++++++++++++--------
 board/tq/tqma6/MAINTAINERS   |  3 ++-
 board/tq/tqma6/Makefile      |  7 +++++--
 board/tq/tqma6/clocks.cfg    |  7 +++++--
 board/tq/tqma6/tqma6.c       | 16 +++++-----------
 board/tq/tqma6/tqma6_bb.h    |  7 ++++---
 board/tq/tqma6/tqma6_mba6.c  | 10 ++++++----
 board/tq/tqma6/tqma6_wru4.c  | 13 +++++--------
 board/tq/tqma6/tqma6dl.cfg   |  6 ++++--
 board/tq/tqma6/tqma6q.cfg    |  6 ++++--
 board/tq/tqma6/tqma6s.cfg    |  6 ++++--
 include/configs/tqma6.h      |  6 ++++--
 include/configs/tqma6_mba6.h |  6 ++++--
 include/configs/tqma6_wru4.h |  2 +-
 14 files changed, 68 insertions(+), 50 deletions(-)
Signature · 1 line
2.43.0
#1 lore raw

PATCH v2 1/4 tqma6: Remove empty function tqma6_iomuxc_spi()

The function tqma6_iomuxc_spi() was removed in the commit "tqma6: Remove non-DM board code".
The original function was overwritten with an empty function in the WRU4 baseboard and should also have been removed. Therefore, the function and its call are being removed.

Fixes 93552cc442de ("tqma6: Remove non-DM board code")
---
 board/tq/tqma6/tqma6.c      | 3 ---
 board/tq/tqma6/tqma6_wru4.c | 5 -----
 2 files changed, 8 deletions(-)
board/tq/tqma6/tqma6.c +0 -3
index 40369f03e72..a7317b9e761 100644
@@ -48,9 +48,6 @@ int board_init(void)
 	/* address of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
 
-#ifndef CONFIG_DM_SPI
-	tqma6_iomuxc_spi();
-#endif
 	tqma6_bb_board_init();
 
 	return 0;
board/tq/tqma6/tqma6_wru4.c +0 -5
index 21c710188e0..aa53212e0e8 100644
@@ -254,11 +254,6 @@ static void gpio_init(void)
 		gpio_direction_output(GPIO_UART3_PWRON, 0);
 }
 
-void tqma6_iomuxc_spi(void)
-{
-	/* No SPI on this baseboard */
-}
-
 int tqma6_bb_board_early_init_f(void)
 {
 	setup_iomuxc_uart4();
Signature · 1 line
2.43.0
#2 lore raw

PATCH v2 2/4 board: tqma6: style fixes

In reply to Max Merchel

From: Paul Gerber <[email protected]>

fix checkpatch warnings

- WARNING: break is not useful after a return
- WARNING: Comparisons should place the constant
on the right side of the test
- WARNING: please write a help paragraph that fully describes the config symbol with at least 2 lines

---
 board/tq/tqma6/Kconfig      | 23 +++++++++++++++--------
 board/tq/tqma6/tqma6.c      |  5 -----
 board/tq/tqma6/tqma6_mba6.c |  2 +-
 3 files changed, 16 insertions(+), 14 deletions(-)
board/tq/tqma6/Kconfig +15 -8
index b42c8e24ade..599b3a72f70 100644
@@ -13,26 +13,29 @@ choice
 	prompt "TQMa6 SoC variant"
 	default TQMA6Q
 	help
-	  select the TQMa6 module variant. The variants differing in the used
+	  select the TQMa6 module variant. The variants only differ in the used
 	  i.MX6 CPU type and DRAM
 
 config TQMA6Q
 	bool "TQMa6Q / TQMa6D"
 	depends on MX6Q
 	help
-	  select TQMa6Q / TQMa6D with i.MX6Q/D and 1GiB DRAM
+	  select TQMa6Q / TQMa6D variant with i.MX6Q resp. i.MX6D
+	  with 1GiB DRAM
 
 config TQMA6DL
 	bool "TQMa6DL"
 	depends on MX6DL
 	help
-	  select TQMa6DL with i.MX6DL and 1GiB DRAM
+	  select TQMa6DL variant with i.MX6DL
+	  with 1GiB DRAM
 
 config TQMA6S
 	bool "TQMa6S"
 	depends on MX6S
 	help
-	  select TQMa6S with i.MX6S and 512 MiB DRAM
+	  select TQMa6S variant with i.MX6S
+	  with 512 MiB DRAM
 
 endchoice
 
@@ -46,12 +49,14 @@ choice
 config TQMA6X_MMC_BOOT
 	bool "MMC / SD Boot"
 	help
-	  Boot from eMMC / SD Card
+	  Boot from
+	  eMMC / SD Card
 
 config TQMA6X_SPI_BOOT
 	bool "SPI NOR Boot"
 	help
-	  Boot from on board SPI NOR flash
+	  Boot from
+	  board SPI NOR flash
 
 endchoice
 
@@ -59,7 +64,8 @@ choice
 	prompt "TQMa6 base board variant"
 	default MBA6
 	help
-	  Select base board for TQMa6
+	  Select the baseboard variant for the TQMa6 module.
+	  By default the MBA6 starterkit is used.
 
 config MBA6
 	bool "TQMa6 on MBa6 Starterkit"
@@ -80,7 +86,8 @@ config MBA6
 config WRU4
 	bool "OHB WRU-IV"
 	help
-	  Select the OHB Systems AG WRU-IV baseboard.
+	  Select the
+	  OHB Systems AG WRU-IV baseboard.
 
 endchoice
 
board/tq/tqma6/tqma6.c +0 -5
index a7317b9e761..83db2d1ad38 100644
@@ -37,7 +37,6 @@ int dram_init(void)
 
 static const uint16_t tqma6_emmc_dsr = 0x0100;
 
-
 int board_early_init_f(void)
 {
 	return tqma6_bb_board_early_init_f();
@@ -60,16 +59,12 @@ static const char *tqma6_get_boardname(void)
 	switch ((cpurev & 0xFF000) >> 12) {
 	case MXC_CPU_MX6SOLO:
 		return "TQMa6S";
-		break;
 	case MXC_CPU_MX6DL:
 		return "TQMa6DL";
-		break;
 	case MXC_CPU_MX6D:
 		return "TQMa6D";
-		break;
 	case MXC_CPU_MX6Q:
 		return "TQMa6Q";
-		break;
 	default:
 		return "??";
 	};
board/tq/tqma6/tqma6_mba6.c +1 -1
index b8f76591006..630ffdd63a9 100644
@@ -74,7 +74,7 @@ int board_mmc_get_env_dev(int devno)
 	 * the boot device first ...
 	 * Note: SDHC3 == idx2
 	 */
-	return (2 == devno) ? 0 : 1;
+	return (devno == 2) ? 0 : 1;
 }
 
 int board_phy_config(struct phy_device *phydev)
Signature · 1 line
2.43.0
#3 lore raw

PATCH v2 3/4 board: [cosmetic] tqma6: adjust SPDX tag

In reply to Max Merchel

While at it, adjust the TQ-Systems copyright info to include consistent company information, the mail address to reach all developers at TQ-Systems for questions regarding U-Boot support for our SOM and remove author's company mail address not suitable for plain text mail.

---
 board/tq/tqma6/Makefile      | 7 +++++--
 board/tq/tqma6/clocks.cfg    | 7 +++++--
 board/tq/tqma6/tqma6.c       | 8 +++++---
 board/tq/tqma6/tqma6_bb.h    | 7 ++++---
 board/tq/tqma6/tqma6_mba6.c  | 8 +++++---
 board/tq/tqma6/tqma6_wru4.c  | 8 +++++---
 board/tq/tqma6/tqma6dl.cfg   | 6 ++++--
 board/tq/tqma6/tqma6q.cfg    | 6 ++++--
 board/tq/tqma6/tqma6s.cfg    | 6 ++++--
 include/configs/tqma6.h      | 6 ++++--
 include/configs/tqma6_mba6.h | 6 ++++--
 include/configs/tqma6_wru4.h | 2 +-
 12 files changed, 50 insertions(+), 27 deletions(-)
board/tq/tqma6/Makefile +5 -2
index 7271297c707..f1b39844ac6 100644
@@ -1,6 +1,9 @@
-# SPDX-License-Identifier: GPL-2.0+
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (c) 2014 TQ-Systems GmbH <[email protected]>,
+# D-82229 Seefeld, Germany.
+# Author: Markus Niebel
 #
-# Copyright (C) 2014, Markus Niebel <[email protected]>
 
 obj-y  := tqma6.o
 
board/tq/tqma6/clocks.cfg +5 -2
index 1f2001c75f0..c2e6d12b924 100644
@@ -1,7 +1,10 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * Copyright (C) 2013 Boundary Devices
- * Copyright (C) 2013, 2014 Markus Niebel <[email protected]>
+ *
+ * Copyright (c) 2013-2014 TQ-Systems GmbH <[email protected]>,
+ * D-82229 Seefeld, Germany.
+ * Author: Markus Niebel
  *
  * Refer doc/imx/mkimage/imximage.txt for more details about how-to configure
  * and create imximage boot image
board/tq/tqma6/tqma6.c +5 -3
index 83db2d1ad38..75d36240a1e 100644
@@ -1,10 +1,12 @@
-// SPDX-License-Identifier: GPL-2.0+
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (C) 2012 Freescale Semiconductor, Inc.
  * Author: Fabio Estevam <[email protected]>
  *
- * Copyright (C) 2013, 2014 TQ-Systems (ported SabreSD to TQMa6x)
- * Author: Markus Niebel <[email protected]>
+ * ported SabreSD to TQMa6x
+ * Copyright (c) 2013-2014 TQ-Systems GmbH <[email protected]>,
+ * D-82229 Seefeld, Germany.
+ * Author: Markus Niebel
  */
 
 #include <init.h>
board/tq/tqma6/tqma6_bb.h +4 -3
index a2f871af1f8..e17e6ad3f57 100644
@@ -1,7 +1,8 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
- * Copyright (C) 2013, 2014 TQ-Systems
- * Author: Markus Niebel <[email protected]>
+ * Copyright (c) 2013-2014 TQ-Systems GmbH <[email protected]>,
+ * D-82229 Seefeld, Germany.
+ * Author: Markus Niebel
  */
 
 #ifndef __TQMA6_BB__
board/tq/tqma6/tqma6_mba6.c +5 -3
index 630ffdd63a9..46989102fec 100644
@@ -1,10 +1,12 @@
-// SPDX-License-Identifier: GPL-2.0+
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (C) 2012 Freescale Semiconductor, Inc.
  * Author: Fabio Estevam <[email protected]>
  *
- * Copyright (C) 2013, 2014 TQ-Systems (ported SabreSD to TQMa6x)
- * Author: Markus Niebel <[email protected]>
+ * ported SabreSD to TQMa6x
+ * Copyright (c) 2013-2014 TQ-Systems GmbH <[email protected]>,
+ * D-82229 Seefeld, Germany.
+ * Author: Markus Niebel
  */
 
 #include <init.h>
board/tq/tqma6/tqma6_wru4.c +5 -3
index aa53212e0e8..7acefc7b064 100644
@@ -1,10 +1,12 @@
-// SPDX-License-Identifier: GPL-2.0+
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (C) 2012 Freescale Semiconductor, Inc.
  * Author: Fabio Estevam <[email protected]>
  *
- * Copyright (C) 2013, 2014 TQ-Systems (ported SabreSD to TQMa6x)
- * Author: Markus Niebel <[email protected]>
+ * ported SabreSD to TQMa6x
+ * Copyright (c) 2013-2014 TQ-Systems GmbH <[email protected]>,
+ * D-82229 Seefeld, Germany.
+ * Author: Markus Niebel
  *
  * Copyright (C) 2015 Stefan Roese <[email protected]>
  */
board/tq/tqma6/tqma6dl.cfg +4 -2
index 8cd1885b43f..f7289adb40a 100644
@@ -1,6 +1,8 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
- * Copyright (C) 2014 - 2015 Markus Niebel <[email protected]>
+ * Copyright (c) 2014-2015 TQ-Systems GmbH <[email protected]>,
+ * D-82229 Seefeld, Germany.
+ * Author: Markus Niebel
  *
  * Refer doc/imx/mkimage/imximage.txt for more details about how-to configure
  * and create imximage boot image
board/tq/tqma6/tqma6q.cfg +4 -2
index a345c4de93d..ad862535c50 100644
@@ -1,6 +1,8 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
- * Copyright (C) 2013, 2014 Markus Niebel <[email protected]>
+ * Copyright (c) 2013-2014 TQ-Systems GmbH <[email protected]>,
+ * D-82229 Seefeld, Germany.
+ * Author: Markus Niebel
  *
  * Refer doc/imx/mkimage/imximage.txt for more details about how-to configure
  * and create imximage boot image
board/tq/tqma6/tqma6s.cfg +4 -2
index 02f7e109100..e50fe3f57d7 100644
@@ -1,6 +1,8 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
- * Copyright (C) 2013, 2014 Markus Niebel <[email protected]>
+ * Copyright (c) 2013-2014 TQ-Systems GmbH <[email protected]>,
+ * D-82229 Seefeld, Germany.
+ * Author: Markus Niebel
  *
  * Refer doc/imx/mkimage/imximage.txt for more details about how-to configure
  * and create imximage boot image
include/configs/tqma6.h +4 -2
index 329fe3c86ed..43ff0ad17c4 100644
@@ -1,6 +1,8 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
- * Copyright (C) 2013, 2014, 2017 Markus Niebel <[email protected]>
+ * Copyright (c) 2013-2014, 2017 TQ-Systems GmbH <[email protected]>,
+ * D-82229 Seefeld, Germany.
+ * Author: Markus Niebel
  *
  * Configuration settings for the TQ-Systems TQMa6<Q,D,DL,S> module.
  */
include/configs/tqma6_mba6.h +4 -2
index b5871424bc6..9b9f4150951 100644
@@ -1,6 +1,8 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
- * Copyright (C) 2013 - 2017 Markus Niebel <[email protected]>
+ * Copyright (c) 2013-2017 TQ-Systems GmbH <[email protected]>,
+ * D-82229 Seefeld, Germany.
+ * Author: Markus Niebel
  *
  * Configuration settings for the TQ-Systems TQMa6<Q,D,DL,S> module on
  * MBa6 starter kit
include/configs/tqma6_wru4.h +1 -1
index 5e21463305a..110bd895a8a 100644
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * Copyright (C) 2015 Stefan Roese <[email protected]>
  */
Signature · 1 line
2.43.0
#4 lore raw

PATCH v2 4/4 board: tqma6: update MAINTAINERS

In reply to Max Merchel

- change maintainer e-Mail address
(old is not suitable for plain text mail)
- add TQ mailing list

---
 board/tq/tqma6/MAINTAINERS | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
board/tq/tqma6/MAINTAINERS +2 -1
index c4fb6ec206d..1d3f7d2cf63 100644
@@ -1,5 +1,6 @@
 TQ-SYSTEMS TQMA6 BOARD
-M:	Markus Niebel <[email protected]>
+M:	Markus Niebel <[email protected]>
+L:	TQ-Systems OSS Team <[email protected]>
 S:	Maintained
 F:	board/tq/tqma6/
 F:	include/configs/tqma6.h
Signature · 1 line
2.43.0