All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ti_omap3_common: Add CONFIG_SYS_NS16550_COMx entries
@ 2018-03-04 22:46 Adam Ford
  2018-03-19 22:35 ` [U-Boot] " Tom Rini
  0 siblings, 1 reply; 4+ messages in thread
From: Adam Ford @ 2018-03-04 22:46 UTC (permalink / raw)
  To: u-boot

Several boards do not use the default UART3, so they do a check
for ifdef CONFIG_SPL_BUILD and enable the pointer for
CONFIG_SYS_NS16550_COMx to point to OMAP34XX_UARTx.

Let's consoldate this all into one place, and remove them from the
individual boards.

Signed-off-by: Adam Ford <aford173@gmail.com>

diff --git a/include/configs/omap3_cairo.h b/include/configs/omap3_cairo.h
index 57ac3ec..c387602 100644
--- a/include/configs/omap3_cairo.h
+++ b/include/configs/omap3_cairo.h
@@ -196,18 +196,6 @@
 /* env defaults */
 #define CONFIG_BOOTFILE			"uImage"
 
-/* Override OMAP3 common serial console configuration from UART3
- * to UART2.
- *
- * Attention: for UART2, special MUX settings (MUX_DEFAULT(), MCBSP3)
- * are needed and peripheral clocks for UART2 must be enabled in
- * function per_clocks_enable().
- */
-#ifdef CONFIG_SPL_BUILD
-#undef CONFIG_SYS_NS16550_COM3
-#define CONFIG_SYS_NS16550_COM2		OMAP34XX_UART2
-#endif
-
 /* Provide the MACH_TYPE value the vendor kernel requires */
 #define CONFIG_MACH_TYPE	3063
 
diff --git a/include/configs/omap3_logic.h b/include/configs/omap3_logic.h
index c9a154c..9e8c6bf 100644
--- a/include/configs/omap3_logic.h
+++ b/include/configs/omap3_logic.h
@@ -17,12 +17,6 @@
 
 #include <configs/ti_omap3_common.h>
 
-#ifdef CONFIG_SPL_BUILD
-/* select serial console configuration for SPL */
-#define CONFIG_SYS_NS16550_COM1                OMAP34XX_UART1
-#endif
-
-
 /*
  * We are only ever GP parts and will utilize all of the "downloaded image"
  * area in SRAM which starts at 0x40200000 and ends at 0x4020FFFF (64KB) in
diff --git a/include/configs/ti_omap3_common.h b/include/configs/ti_omap3_common.h
index df6bca6..6b5ef1d 100644
--- a/include/configs/ti_omap3_common.h
+++ b/include/configs/ti_omap3_common.h
@@ -39,6 +39,8 @@
 
 /* Select serial console configuration */
 #ifdef CONFIG_SPL_BUILD
+#define CONFIG_SYS_NS16550_COM1		OMAP34XX_UART1
+#define CONFIG_SYS_NS16550_COM2		OMAP34XX_UART2
 #define CONFIG_SYS_NS16550_COM3		OMAP34XX_UART3
 #endif
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] ti_omap3_common: Add CONFIG_SYS_NS16550_COMx entries
  2018-03-04 22:46 [U-Boot] [PATCH] ti_omap3_common: Add CONFIG_SYS_NS16550_COMx entries Adam Ford
@ 2018-03-19 22:35 ` Tom Rini
  2018-07-23 15:53   ` Adam Ford
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Rini @ 2018-03-19 22:35 UTC (permalink / raw)
  To: u-boot

On Sun, Mar 04, 2018 at 04:46:53PM -0600, Adam Ford wrote:

> Several boards do not use the default UART3, so they do a check
> for ifdef CONFIG_SPL_BUILD and enable the pointer for
> CONFIG_SYS_NS16550_COMx to point to OMAP34XX_UARTx.
> 
> Let's consoldate this all into one place, and remove them from the
> individual boards.
> 
> Signed-off-by: Adam Ford <aford173@gmail.com>
> 
> diff --git a/include/configs/omap3_cairo.h b/include/configs/omap3_cairo.h
> index 57ac3ec..c387602 100644

Deferred because it relies on the CONFIG_SERIALn patch.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180319/57af6f41/attachment.sig>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] ti_omap3_common: Add CONFIG_SYS_NS16550_COMx entries
  2018-03-19 22:35 ` [U-Boot] " Tom Rini
@ 2018-07-23 15:53   ` Adam Ford
  2018-07-23 16:46     ` Tom Rini
  0 siblings, 1 reply; 4+ messages in thread
From: Adam Ford @ 2018-07-23 15:53 UTC (permalink / raw)
  To: u-boot

On Mon, Mar 19, 2018 at 5:35 PM Tom Rini <trini@konsulko.com> wrote:
>
> On Sun, Mar 04, 2018 at 04:46:53PM -0600, Adam Ford wrote:
>
> > Several boards do not use the default UART3, so they do a check
> > for ifdef CONFIG_SPL_BUILD and enable the pointer for
> > CONFIG_SYS_NS16550_COMx to point to OMAP34XX_UARTx.
> >
> > Let's consoldate this all into one place, and remove them from the
> > individual boards.
> >
> > Signed-off-by: Adam Ford <aford173@gmail.com>
> >
> > diff --git a/include/configs/omap3_cairo.h b/include/configs/omap3_cairo.h
> > index 57ac3ec..c387602 100644
>
> Deferred because it relies on the CONFIG_SERIALn patch.

Does it really depend on that patch?  The intent behind it was to
point all the NS16550_COMx to their respective OMAP34XX ports in the
common file, so the individual boards don't need to manually set them.
My understanding is that the serial port has an index which dictates
which of the COMx will be used in SPL so having all COMx ports
pointing to each of the OMAP34XX references shouldn't break anything.

adam
>
> --
> Tom

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] ti_omap3_common: Add CONFIG_SYS_NS16550_COMx entries
  2018-07-23 15:53   ` Adam Ford
@ 2018-07-23 16:46     ` Tom Rini
  0 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2018-07-23 16:46 UTC (permalink / raw)
  To: u-boot

On Mon, Jul 23, 2018 at 10:53:02AM -0500, Adam Ford wrote:
> On Mon, Mar 19, 2018 at 5:35 PM Tom Rini <trini@konsulko.com> wrote:
> >
> > On Sun, Mar 04, 2018 at 04:46:53PM -0600, Adam Ford wrote:
> >
> > > Several boards do not use the default UART3, so they do a check
> > > for ifdef CONFIG_SPL_BUILD and enable the pointer for
> > > CONFIG_SYS_NS16550_COMx to point to OMAP34XX_UARTx.
> > >
> > > Let's consoldate this all into one place, and remove them from the
> > > individual boards.
> > >
> > > Signed-off-by: Adam Ford <aford173@gmail.com>
> > >
> > > diff --git a/include/configs/omap3_cairo.h b/include/configs/omap3_cairo.h
> > > index 57ac3ec..c387602 100644
> >
> > Deferred because it relies on the CONFIG_SERIALn patch.
> 
> Does it really depend on that patch?  The intent behind it was to
> point all the NS16550_COMx to their respective OMAP34XX ports in the
> common file, so the individual boards don't need to manually set them.
> My understanding is that the serial port has an index which dictates
> which of the COMx will be used in SPL so having all COMx ports
> pointing to each of the OMAP34XX references shouldn't break anything.

Context-wise, yes, it depended on that other series in order to apply.
If you can re-spin it stand-alone that would be great, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180723/68e8c2e5/attachment.sig>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-07-23 16:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-04 22:46 [U-Boot] [PATCH] ti_omap3_common: Add CONFIG_SYS_NS16550_COMx entries Adam Ford
2018-03-19 22:35 ` [U-Boot] " Tom Rini
2018-07-23 15:53   ` Adam Ford
2018-07-23 16:46     ` Tom Rini

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.