From: tony@atomide.com (Tony Lindgren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/4] omap: Clean the serial port defines
Date: Wed, 20 Jan 2010 15:10:44 -0800 [thread overview]
Message-ID: <20100120231044.GE23467@atomide.com> (raw)
In-Reply-To: <FCCFB4CDC6E5564B9182F639FC356087030070F290@dbde02.ent.ti.com>
Hi,
* Pandita, Vikram <vikram.pandita@ti.com> [100118 16:37]:
<snip>
> Is it possible to use the same approach as mach-omap2/ for physical address assignments?
> I like that approach.
> Refer this part from mach-omap2:
> + serial_platform_data0[0].mapbase = omap2_globals->uart1_phys;
> + serial_platform_data1[0].mapbase = omap2_globals->uart2_phys;
> + serial_platform_data2[0].mapbase = omap2_globals->uart3_phys;
>
> > .irq = INT_UART1,
> > .flags = UPF_BOOT_AUTOCONF,
> > .iotype = UPIO_MEM,
It would be possible if we had omap1_globals. But we don't have it as
the address space is so similar across all omap1 processors.
> > .macro busyuart,rd,rx
> >-1001: ldrb \rd, [\rx, #(0x5 << 2)] @ OMAP-1510 and friends
> >- and \rd, \rd, #0x60
> >- teq \rd, #0x60
> >- beq 1002f
> >- ldrb \rd, [\rx, #(0x5 << 0)] @ OMAP-730 only
> >- and \rd, \rd, #0x60
> >- teq \rd, #0x60
> >+1001: ldrb \rd, [\rx, #(UART_LSR << OMAP_PORT_SHIFT)]
>
> Zoom2/3 kind of boards have external debug Serial port.
> For those boards and maybe others, the shift value is 1 and not OMAP_PORT_SHIFT(2).
OK, thanks for pointing that out. Let's add the shift as a variable
in debug-macro.S, see the next patch in the series.
> This solution is not extensible to zoom2/3 boards with external debug board uarts.
> How do we address that?
It should be doable, we need to initialize zoom external uart physical
and virtual address in uncompress.h, and also initialize the shift for
it.
> >diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c
> <snip>
> >@@ -269,11 +278,15 @@ static struct omap_globals omap343x_globals = {
> > .ctrl = OMAP2_L4_IO_ADDRESS(OMAP343X_CTRL_BASE),
> > .prm = OMAP2_L4_IO_ADDRESS(OMAP3430_PRM_BASE),
> > .cm = OMAP2_L4_IO_ADDRESS(OMAP3430_CM_BASE),
> >+ .uart1_phys = OMAP3_UART1_BASE,
> >+ .uart2_phys = OMAP3_UART2_BASE,
> >+ .uart3_phys = OMAP3_UART3_BASE,
>
> OMAP3630 also has 4 UARTS and this same global is getting used for both 34xx and 36xx.
> This is not right.
>
> For 3630 uart4_phys = 0x49042000
OK, updated.
> >+#define OMAP3_UART1_BASE 0x4806a000
> >+#define OMAP3_UART2_BASE 0x4806c000
> >+#define OMAP3_UART3_BASE 0x49020000
>
> Need to add 0x4904 2000 for 3630 UART4
OK, added now. Care to look and ack the attached updated patch?
Regards,
Tony
next prev parent reply other threads:[~2010-01-20 23:10 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-16 1:35 [PATCH 0/4] omap multiboot improvments for merge window after 2.6.34 Tony Lindgren
2010-01-16 1:35 ` [PATCH 1/4] omap: Clean the serial port defines Tony Lindgren
2010-01-16 7:48 ` Shilimkar, Santosh
2010-01-16 19:25 ` Tony Lindgren
2010-01-16 19:33 ` Shilimkar, Santosh
2010-01-16 20:03 ` Tony Lindgren
2010-01-19 0:39 ` Pandita, Vikram
2010-01-20 23:10 ` Tony Lindgren [this message]
2010-01-16 1:35 ` [PATCH 2/4] omap: Make uncompress code and DEBUG_LL code generic Tony Lindgren
2010-01-16 9:35 ` Russell King - ARM Linux
2010-01-16 19:18 ` Tony Lindgren
2010-01-16 19:33 ` Russell King - ARM Linux
2010-01-16 20:00 ` Tony Lindgren
2010-01-19 1:50 ` Pandita, Vikram
2010-01-22 3:07 ` [PATCH 2/4] omap: Make uncompress code and DEBUG_LL code generic, v2 Tony Lindgren
2010-01-22 14:48 ` Pandita, Vikram
2010-01-22 20:55 ` Tony Lindgren
2010-01-22 20:58 ` Pandita, Vikram
2010-01-22 21:10 ` Tony Lindgren
2010-01-22 23:10 ` Pandita, Vikram
2010-01-23 17:13 ` Tony Lindgren
2010-01-21 19:03 ` [PATCH 2/4] omap: Make uncompress code and DEBUG_LL code generic Tony Lindgren
2010-01-16 11:04 ` Shilimkar, Santosh
2010-01-16 19:20 ` Tony Lindgren
2010-01-16 19:34 ` Shilimkar, Santosh
2010-01-19 1:26 ` Pandita, Vikram
2010-01-19 17:19 ` Kevin Hilman
2010-01-26 17:22 ` Tony Lindgren
2010-01-16 1:35 ` [PATCH 3/4] omap: Remove old DEBUG_LL serial port options Tony Lindgren
2010-01-16 1:35 ` [PATCH 4/4] omap: Make get_irqnr_and_base common for mach-omap2 multiboot Tony Lindgren
2010-01-16 11:24 ` Shilimkar, Santosh
2010-01-16 11:55 ` Russell King - ARM Linux
2010-01-16 19:12 ` Tony Lindgren
2010-01-22 20:39 ` [PATCH 4/4] omap: Make get_irqnr_and_base common for mach-omap2 multiboot, v2 Tony Lindgren
2010-01-22 20:56 ` Russell King - ARM Linux
2010-01-22 21:09 ` Tony Lindgren
2010-01-22 21:16 ` Tony Lindgren
2010-01-16 20:15 ` [PATCH 0/4] omap multiboot improvments for merge window after 2.6.34 Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100120231044.GE23467@atomide.com \
--to=tony@atomide.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).