Skip to contentSkip to conversation

Convert omap3_logic to ti_omap3_common.h

PATCH In review Adam Ford 2 participants 3 messages Sep 2, 2015 Arm (32-bit)

lore
Share & tools
lore

Adam Ford

author
#0 lore raw

PATCH 1/1 Convert omap3_logic to ti_omap3_common.h

Convert to using the common config files.

---

 arch/arm/cpu/armv7/omap3/Kconfig    |    3 ++
 board/logicpd/omap3som/omap3logic.c |   14 +++++++++
 include/configs/omap3_logic.h       |   59 +++++++----------------------------
 3 files changed, 28 insertions(+), 48 deletions(-)
arch/arm/cpu/armv7/omap3/Kconfig +3 -0
index f4fb6cb..cda38e1 100644
@@ -92,6 +92,9 @@ config TARGET_MCX
 
 config TARGET_OMAP3_LOGIC
 	bool "OMAP3 Logic"
+	select DM
+	select DM_SERIAL
+	select DM_GPIO
 
 config TARGET_OMAP3_MVBLX
 	bool "OMAP3 MVBLX"
board/logicpd/omap3som/omap3logic.c +14 -0
index 609edf1..babb0dc 100644
@@ -12,6 +12,8 @@
  * SPDX-License-Identifier:	GPL-2.0+
  */
 #include <common.h>
+#include <dm.h>
+#include <ns16550.h>
 #include <netdev.h>
 #include <flash.h>
 #include <nand.h>
@@ -33,6 +35,18 @@ DECLARE_GLOBAL_DATA_PTR;
  * machine IDs; row it selected based on CPU column is slected based
  * on hsusb0_data5 pin having a pulldown resistor
  */
+
+static const struct ns16550_platdata omap3logic_serial = {
+	OMAP34XX_UART1,
+	2,
+	V_NS16550_CLK
+};
+
+U_BOOT_DEVICE(omap3logic_uart) = {
+	"serial_omap",
+	&omap3logic_serial
+};
+
 static struct board_id {
 	char *name;
 	int machine_id;
include/configs/omap3_logic.h +11 -48

129 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 Convert omap3_logic to ti_omap3_common.h

Quoted 3 lines · Adam Ford

Convert to using the common config files.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150902/cd7e6050/attachment.sig>
#2 lore raw
In reply to Adam Ford
Quoted 4 lines · Adam Ford

Convert to using the common config files.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150902/af19ec85/attachment.sig>