All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ARM: mxs: Add mx28evk_auart_console target
@ 2013-08-16 16:24 Andreas Wass
  2013-08-16 17:00 ` Otavio Salvador
  2013-08-16 23:28 ` Marek Vasut
  0 siblings, 2 replies; 8+ messages in thread
From: Andreas Wass @ 2013-08-16 16:24 UTC (permalink / raw)
  To: u-boot

The target uses AUART 3 instead of the DUART for console output.

Signed-off-by: Andreas Wass <andreas.wass@dalelven.com>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Marek Vasut <marex@denx.de>
---
 boards.cfg            | 1 +
 include/configs/mxs.h | 7 ++++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/boards.cfg b/boards.cfg
index 454da7f..79d6cd8 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -203,6 +203,7 @@ mx23evk                      arm         arm926ejs   mx23evk             freesca
 m28evk                       arm         arm926ejs   m28evk              denx           mxs		m28evk
 mx28evk                      arm         arm926ejs   mx28evk             freescale      mxs		mx28evk:ENV_IS_IN_MMC
 mx28evk_nand                 arm         arm926ejs   mx28evk             freescale      mxs		mx28evk:ENV_IS_IN_NAND
+mx28evk_auart_console        arm         arm926ejs   mx28evk             freescale      mxs		mx28evk:MXS_AUART,MXS_AUART_BASE=MXS_UARTAPP3_BASE,ENV_IS_IN_MMC
 sc_sps_1                     arm         arm926ejs   sc_sps_1            schulercontrol mxs
 nhk8815                      arm         arm926ejs   nhk8815             st             nomadik
 nhk8815_onenand              arm         arm926ejs   nhk8815             st             nomadik       nhk8815:BOOT_ONENAND
diff --git a/include/configs/mxs.h b/include/configs/mxs.h
index a684166..124dc1e 100644
--- a/include/configs/mxs.h
+++ b/include/configs/mxs.h
@@ -119,11 +119,16 @@
 /* GPIO */
 #define CONFIG_MXS_GPIO
 
-/* DUART Serial Driver */
+/*
+ * DUART Serial Driver.
+ * Conflicts with AUART driver which can be set by board.
+ */
+#ifndef CONFIG_MXS_AUART
 #define CONFIG_PL011_SERIAL
 #define CONFIG_PL011_CLOCK		24000000
 #define CONFIG_PL01x_PORTS		{ (void *)MXS_UARTDBG_BASE }
 #define CONFIG_CONS_INDEX		0
+#endif
 /* Default baudrate can be overriden by board! */
 #ifndef CONFIG_BAUDRATE
 #define CONFIG_BAUDRATE			115200
-- 
1.8.1.4

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

* [U-Boot] [PATCH] ARM: mxs: Add mx28evk_auart_console target
  2013-08-16 16:24 [U-Boot] [PATCH] ARM: mxs: Add mx28evk_auart_console target Andreas Wass
@ 2013-08-16 17:00 ` Otavio Salvador
  2013-08-16 17:06   ` Andreas Wass
  2013-08-16 23:28 ` Marek Vasut
  1 sibling, 1 reply; 8+ messages in thread
From: Otavio Salvador @ 2013-08-16 17:00 UTC (permalink / raw)
  To: u-boot

On Fri, Aug 16, 2013 at 1:24 PM, Andreas Wass <andreas.wass@dalelven.com> wrote:
> The target uses AUART 3 instead of the DUART for console output.
>
> Signed-off-by: Andreas Wass <andreas.wass@dalelven.com>
> Cc: Fabio Estevam <fabio.estevam@freescale.com>
> Cc: Marek Vasut <marex@denx.de>

Why to use AUART for console? can you elaborate it a little more?

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

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

* [U-Boot] [PATCH] ARM: mxs: Add mx28evk_auart_console target
  2013-08-16 17:00 ` Otavio Salvador
@ 2013-08-16 17:06   ` Andreas Wass
  2013-08-16 17:10     ` Fabio Estevam
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Wass @ 2013-08-16 17:06 UTC (permalink / raw)
  To: u-boot

Dear Otavio,

Some boards don't have the DUART easily available (see STKa28 by TQ-group for instance) while a regular rs232 port is easily accessed. 

The purpose of this patch is more of a demonstration how to use the AUART driver and was requested by Fabio during the submission of the AUART driver. 

Best regards
Andreas Wass

16 aug 2013 kl. 19:00 skrev "Otavio Salvador" <otavio@ossystems.com.br>:

> On Fri, Aug 16, 2013 at 1:24 PM, Andreas Wass <andreas.wass@dalelven.com> wrote:
>> The target uses AUART 3 instead of the DUART for console output.
>> 
>> Signed-off-by: Andreas Wass <andreas.wass@dalelven.com>
>> Cc: Fabio Estevam <fabio.estevam@freescale.com>
>> Cc: Marek Vasut <marex@denx.de>
> 
> Why to use AUART for console? can you elaborate it a little more?
> 
> -- 
> Otavio Salvador                             O.S. Systems
> http://www.ossystems.com.br        http://projetos.ossystems.com.br
> Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

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

* [U-Boot] [PATCH] ARM: mxs: Add mx28evk_auart_console target
  2013-08-16 17:06   ` Andreas Wass
@ 2013-08-16 17:10     ` Fabio Estevam
  2013-08-16 17:13       ` Otavio Salvador
  0 siblings, 1 reply; 8+ messages in thread
From: Fabio Estevam @ 2013-08-16 17:10 UTC (permalink / raw)
  To: u-boot

On Fri, Aug 16, 2013 at 2:06 PM, Andreas Wass <Andreas.Wass@dalelven.com> wrote:
> Dear Otavio,
>
> Some boards don't have the DUART easily available (see STKa28 by TQ-group for instance) while a regular rs232 port is easily accessed.
>
> The purpose of this patch is more of a demonstration how to use the AUART driver and was requested by Fabio during the submission of the AUART driver.

Yes, correct.

With this target in place, we can have a user of the mxs auart driver
that Andreas submitted recently.

Regards,

Fabio Estevam

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

* [U-Boot] [PATCH] ARM: mxs: Add mx28evk_auart_console target
  2013-08-16 17:10     ` Fabio Estevam
@ 2013-08-16 17:13       ` Otavio Salvador
  0 siblings, 0 replies; 8+ messages in thread
From: Otavio Salvador @ 2013-08-16 17:13 UTC (permalink / raw)
  To: u-boot

On Fri, Aug 16, 2013 at 2:10 PM, Fabio Estevam <festevam@gmail.com> wrote:
> On Fri, Aug 16, 2013 at 2:06 PM, Andreas Wass <Andreas.Wass@dalelven.com> wrote:
>> Dear Otavio,
>>
>> Some boards don't have the DUART easily available (see STKa28 by TQ-group for instance) while a regular rs232 port is easily accessed.
>>
>> The purpose of this patch is more of a demonstration how to use the AUART driver and was requested by Fabio during the submission of the AUART driver.
>
> Yes, correct.
>
> With this target in place, we can have a user of the mxs auart driver
> that Andreas submitted recently.

I see.

Good :-)

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

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

* [U-Boot] [PATCH] ARM: mxs: Add mx28evk_auart_console target
  2013-08-16 16:24 [U-Boot] [PATCH] ARM: mxs: Add mx28evk_auart_console target Andreas Wass
  2013-08-16 17:00 ` Otavio Salvador
@ 2013-08-16 23:28 ` Marek Vasut
  2013-08-17  8:07   ` Andreas Wass
  1 sibling, 1 reply; 8+ messages in thread
From: Marek Vasut @ 2013-08-16 23:28 UTC (permalink / raw)
  To: u-boot

Dear Andreas Wass,

> The target uses AUART 3 instead of the DUART for console output.
> 
> Signed-off-by: Andreas Wass <andreas.wass@dalelven.com>
> Cc: Fabio Estevam <fabio.estevam@freescale.com>
> Cc: Marek Vasut <marex@denx.de>
> ---

I wonder, why dont you add support for the TQ SoM in the first place?

Best regards,
Marek Vasut

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

* [U-Boot] [PATCH] ARM: mxs: Add mx28evk_auart_console target
  2013-08-16 23:28 ` Marek Vasut
@ 2013-08-17  8:07   ` Andreas Wass
  2013-08-18 20:20     ` Marek Vasut
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Wass @ 2013-08-17  8:07 UTC (permalink / raw)
  To: u-boot

Dear Marek

> I wonder, why dont you add support for the TQ SoM in the first place?

I have plans to do it but I only have access to the board at work and
I currently am very busy so have limited time testing the board setup, so I don't
know when in time I will be able to submit such a patch.

Regards
Andreas

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

* [U-Boot] [PATCH] ARM: mxs: Add mx28evk_auart_console target
  2013-08-17  8:07   ` Andreas Wass
@ 2013-08-18 20:20     ` Marek Vasut
  0 siblings, 0 replies; 8+ messages in thread
From: Marek Vasut @ 2013-08-18 20:20 UTC (permalink / raw)
  To: u-boot

Hi Andreas,

> Dear Marek
> 
> > I wonder, why dont you add support for the TQ SoM in the first place?
> 
> I have plans to do it but I only have access to the board at work and
> I currently am very busy so have limited time testing the board setup, so I
> don't know when in time I will be able to submit such a patch.

Sucks, but ok.

Best regards,
Marek Vasut

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

end of thread, other threads:[~2013-08-18 20:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-16 16:24 [U-Boot] [PATCH] ARM: mxs: Add mx28evk_auart_console target Andreas Wass
2013-08-16 17:00 ` Otavio Salvador
2013-08-16 17:06   ` Andreas Wass
2013-08-16 17:10     ` Fabio Estevam
2013-08-16 17:13       ` Otavio Salvador
2013-08-16 23:28 ` Marek Vasut
2013-08-17  8:07   ` Andreas Wass
2013-08-18 20:20     ` Marek Vasut

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.