Am Fri, 15 Jul 2011 09:39:36 -0700
schrieb Stephen Warren <swar...@nvidia.com>:

> Marc Dietrich wrote at Friday, July 15, 2011 4:24 AM:
> > UART-A is connected to JP1 and used by the bootloader for debugging
> > output while UART-D is connected to the mini-pcie expansion slot.
> > 
> > Signed-off-by: Marc Dietrich <marvi...@gmx.de>
> > ---
> >  arch/arm/mach-tegra/board-paz00.c |   11 +++++++++++
> >  1 files changed, 11 insertions(+), 0 deletions(-)
> > 
> > diff --git a/arch/arm/mach-tegra/board-paz00.c
> > b/arch/arm/mach-tegra/board-paz00.c index 1b076f6..931b06e 100644
> > --- a/arch/arm/mach-tegra/board-paz00.c
> > +++ b/arch/arm/mach-tegra/board-paz00.c
> > @@ -47,7 +47,17 @@
> >  #include "gpio-names.h"
> > 
> >  static struct plat_serial8250_port debug_uart_platform_data[] = {
> > +/* serial port on JP1 */
> >     {
> 
> Shouldn't the indentation of the comment be aligned to the brace?

ok, seems to be the common kernel style. Will be fixed in V2.

> I'm not sure if the order of entries in the array matters. It'd
> presumably be safer to add the new UART entry to the end of the array
> so that any existing index-based number isn't changed.

yeah, it will change the numbering, but none I know of used the serial
interface of the mini-pcie and it makes some sense to have the
bootloader output on number 0.

> > +           .membase        = IO_ADDRESS(TEGRA_UARTA_BASE),
> > +           .mapbase        = TEGRA_UARTA_BASE,
> > +           .irq            = INT_UARTA,
> > +           .flags          = UPF_BOOT_AUTOCONF,
> > +           .iotype         = UPIO_MEM,
> > +           .regshift       = 2,
> > +           .uartclk        = 216000000,
> > +   }, {
> > +/* serial port on mini-pcie */
> >             .membase        = IO_ADDRESS(TEGRA_UARTD_BASE),
> >             .mapbase        = TEGRA_UARTD_BASE,
> >             .irq            = INT_UARTD,
> > @@ -137,6 +147,7 @@ static void __init tegra_paz00_fixup(struct
> > machine_desc *desc,
> > 
> >  static __initdata struct tegra_clk_init_table
> > paz00_clk_init_table[] = { /* name
> > parent              rate            enabled */
> > +   { "uarta",      "pll_p",        216000000,      true },
> >     { "uartd",      "pll_p",        216000000,      true },
> >     { NULL,         NULL,
> > 0,          0}, };
> > --
> > 1.7.4.1
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to