Skip to contentSkip to conversation

arm: omap3: Add uart4 omap3 adddress

PATCH In review Michael Trimarchi 2 participants 7 messages Nov 18, 2013 – Dec 4, 2013 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: omap3: Add uart4 omap3 adddress

This patch add the OMAP34XX_UART4 memory address

---
 arch/arm/include/asm/arch-omap3/omap3.h | 1 +
 1 file changed, 1 insertion(+)
arch/arm/include/asm/arch-omap3/omap3.h +1 -0
index 7fb549a..65a5995 100644
@@ -55,6 +55,7 @@ struct control_prog_io {
 #define OMAP34XX_UART1			(OMAP34XX_L4_IO_BASE + 0x6a000)
 #define OMAP34XX_UART2			(OMAP34XX_L4_IO_BASE + 0x6c000)
 #define OMAP34XX_UART3			(OMAP34XX_L4_PER + 0x20000)
+#define OMAP34XX_UART4			(OMAP34XX_L4_PER + 0x42000)
 
 /* General Purpose Timers */
 #define OMAP34XX_GPT1			0x48318000
Signature · 1 line
1.8.1.2
#1 lore raw

PATCH 1/1 arm: omap3: Add uart4 omap3 adddress

Quoted 12 lines · Michael Trimarchi

This patch add the OMAP34XX_UART4 memory address

---
 arch/arm/include/asm/arch-omap3/omap3.h | 1 +
 1 file changed, 1 insertion(+)
arch/arm/include/asm/arch-omap3/omap3.h +0 -0
index 7fb549a..65a5995 100644

arch/arm/include/asm/arch-omap3/omap3.h struct control_prog_io { · line 61

Quoted 7 lines
arch/arm/include/asm/arch-omap3/omap3.h +1 -0
@@ -55,6 +55,7 @@ struct control_prog_io {
 #define OMAP34XX_UART1			(OMAP34XX_L4_IO_BASE + 0x6a000)
 #define OMAP34XX_UART2			(OMAP34XX_L4_IO_BASE + 0x6c000)
 #define OMAP34XX_UART3			(OMAP34XX_L4_PER + 0x20000)
+#define OMAP34XX_UART4			(OMAP34XX_L4_PER + 0x42000)
 
 /* General Purpose Timers */
 #define OMAP34XX_GPT1			0x48318000

What needs this? Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20131118/7deebd1c/attachment.pgp>
#2 lore raw

PATCH 1/1 arm: omap3: Add uart4 omap3 adddress

Hi Tom

Quoted 18 lines · Tom Rini
Quoted 17 lines · Michael Trimarchi

This patch add the OMAP34XX_UART4 memory address

---
 arch/arm/include/asm/arch-omap3/omap3.h | 1 +
 1 file changed, 1 insertion(+)
arch/arm/include/asm/arch-omap3/omap3.h +1 -0
index 7fb549a..65a5995 100644
@@ -55,6 +55,7 @@ struct control_prog_io {
 #define OMAP34XX_UART1                       (OMAP34XX_L4_IO_BASE + 0x6a000)
 #define OMAP34XX_UART2                       (OMAP34XX_L4_IO_BASE + 0x6c000)
 #define OMAP34XX_UART3                       (OMAP34XX_L4_PER + 0x20000)
+#define OMAP34XX_UART4                       (OMAP34XX_L4_PER + 0x42000)
 
Quoted 5 lines

arch/arm/include/asm/arch-omap3/omap3.h struct control_prog_io { · line 61

Quoted 2 lines
arch/arm/include/asm/arch-omap3/omap3.h +0 -0
 /* General Purpose Timers */
 #define OMAP34XX_GPT1                        0x48318000

What needs this? Thanks!

I have a board the use uart4 as a console. I'm working to have it as an option in omap3 code.

Michael

Quoted 2 lines

--
Tom

#3 lore raw

PATCH 1/1 arm: omap3: Add uart4 omap3 adddress

Quoted 21 lines · Michael Trimarchi

Hi Tom

Quoted 18 lines · Tom Rini
Quoted 17 lines · Michael Trimarchi

This patch add the OMAP34XX_UART4 memory address

---
 arch/arm/include/asm/arch-omap3/omap3.h | 1 +
 1 file changed, 1 insertion(+)
arch/arm/include/asm/arch-omap3/omap3.h +1 -0
index 7fb549a..65a5995 100644
@@ -55,6 +55,7 @@ struct control_prog_io {
 #define OMAP34XX_UART1                       (OMAP34XX_L4_IO_BASE + 0x6a000)
 #define OMAP34XX_UART2                       (OMAP34XX_L4_IO_BASE + 0x6c000)
 #define OMAP34XX_UART3                       (OMAP34XX_L4_PER + 0x20000)
+#define OMAP34XX_UART4                       (OMAP34XX_L4_PER + 0x42000)
 
Quoted 7 lines
Quoted 4 lines

arch/arm/include/asm/arch-omap3/omap3.h struct control_prog_io { · line 61

Quoted 2 lines
arch/arm/include/asm/arch-omap3/omap3.h +0 -0
 /* General Purpose Timers */
 #define OMAP34XX_GPT1                        0x48318000

What needs this? Thanks!

I have a board the use uart4 as a console. I'm working to have it as an option in omap3 code.

Are you going to post the board?

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20131118/7f406198/attachment.pgp>
#4 lore raw

PATCH 1/1 arm: omap3: Add uart4 omap3 adddress

Hi Tom

Quoted 27 lines · Tom Rini
Quoted 26 lines · Michael Trimarchi

Hi Tom

Quoted 22 lines · Tom Rini
Quoted 12 lines · Michael Trimarchi

This patch add the OMAP34XX_UART4 memory address

---
 arch/arm/include/asm/arch-omap3/omap3.h | 1 +
 1 file changed, 1 insertion(+)
arch/arm/include/asm/arch-omap3/omap3.h +0 -0
index 7fb549a..65a5995 100644

arch/arm/include/asm/arch-omap3/omap3.h struct control_prog_io { · line 61

Quoted 7 lines
arch/arm/include/asm/arch-omap3/omap3.h +1 -0
@@ -55,6 +55,7 @@ struct control_prog_io {
 #define OMAP34XX_UART1                       (OMAP34XX_L4_IO_BASE + 0x6a000)
 #define OMAP34XX_UART2                       (OMAP34XX_L4_IO_BASE + 0x6c000)
 #define OMAP34XX_UART3                       (OMAP34XX_L4_PER + 0x20000)
+#define OMAP34XX_UART4                       (OMAP34XX_L4_PER + 0x42000)
 
 /* General Purpose Timers */
 #define OMAP34XX_GPT1                        0x48318000

What needs this? Thanks!

Quoted 4 lines
Quoted 2 lines

I have a board the use uart4 as a console. I'm working to have it as an option in omap3 code.

Are you going to post the board?

The product name is Morrison and I'm working on it. We are on pcb design and I'm working
on the first sample trying to fix some problems. It is based on DM47xx cpu and I don't know if
I will post the patches soon on it. This patch doesn't introduce any regression right now

Quoted 3 lines

--
Tom

Michael

#5 lore raw

PATCH 1/1 arm: omap3: Add uart4 omap3 adddress

Hi

Quoted 33 lines · Michael Trimarchi

Hi Tom

Quoted 30 lines · Tom Rini
Quoted 28 lines · Michael Trimarchi

Hi Tom

Quoted 18 lines · Tom Rini
Quoted 17 lines · Michael Trimarchi

This patch add the OMAP34XX_UART4 memory address

---
 arch/arm/include/asm/arch-omap3/omap3.h | 1 +
 1 file changed, 1 insertion(+)
arch/arm/include/asm/arch-omap3/omap3.h +1 -0
index 7fb549a..65a5995 100644
@@ -55,6 +55,7 @@ struct control_prog_io {
 #define OMAP34XX_UART1                       (OMAP34XX_L4_IO_BASE + 0x6a000)
 #define OMAP34XX_UART2                       (OMAP34XX_L4_IO_BASE + 0x6c000)
 #define OMAP34XX_UART3                       (OMAP34XX_L4_PER + 0x20000)
+#define OMAP34XX_UART4                       (OMAP34XX_L4_PER + 0x42000)
 
Quoted 4 lines

arch/arm/include/asm/arch-omap3/omap3.h struct control_prog_io { · line 61

Quoted 2 lines
arch/arm/include/asm/arch-omap3/omap3.h +0 -0
 /* General Purpose Timers */
 #define OMAP34XX_GPT1                        0x48318000

What needs this? Thanks!

I have a board the use uart4 as a console. I'm working to have it as an option in omap3 code.

Quoted 9 lines
Quoted 1 line

Are you going to post the board?

The product name is Morrison and I'm working on it. We are on pcb design and I'm working
on the first sample trying to fix some problems. It is based on DM47xx cpu and I don't know if
I will post the patches soon on it. This patch doesn't introduce any regression right now

This is an idea of what can be the uart clock enable for uart4.

arch/arm/cpu/armv7/omap3/clock.c +9 -1
index 1bc27bd..1ff54db 100644
@@ -677,16 +677,24 @@ void per_clocks_enable(void)
        sr32(&prcm_base->iclken_per, 3, 1, 0x1);        /* ICKen GPT2 */
        sr32(&prcm_base->fclken_per, 3, 1, 0x1);        /* FCKen GPT2 */
 
-#ifdef CONFIG_SYS_NS16550
+#ifdef CONFIG_SYS_NS16550_COM1
        /* Enable UART1 clocks */
        sr32(&prcm_base->fclken1_core, 13, 1, 0x1);
        sr32(&prcm_base->iclken1_core, 13, 1, 0x1);
+#endif
 
+#ifdef CONFIG_SYS_NS16550_COM3
        /* UART 3 Clocks */
        sr32(&prcm_base->fclken_per, 11, 1, 0x1);
        sr32(&prcm_base->iclken_per, 11, 1, 0x1);
 #endif
 
+#ifdef CONFIG_SYS_NS16550_COM4
+       /* UART 4 Clocks */
+       sr32(&prcm_base->fclken_per, 18, 1, 0x1);
+       sr32(&prcm_base->iclken_per, 18, 1, 0x1);
+#endif
+
 #ifdef CONFIG_OMAP3_GPIO_2
        sr32(&prcm_base->fclken_per, 13, 1, 1);
        sr32(&prcm_base->iclken_per, 13, 1, 1);
Quoted 3 lines
Quoted 3 lines

--
Tom

Michael

#6 lore raw
In reply to Michael Trimarchi
Quoted 3 lines · Michael Trimarchi

This patch add the OMAP34XX_UART4 memory address

Applied to u-boot-ti/master, thanks!

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