lkml.org 
[lkml]   [2011]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v7 3/3] arm/tegra: device tree support for ventana board
On Fri, Oct 07, 2011 at 08:04:34PM +0200, Stephen Warren wrote:
> Peter De Schrijver wrote at Monday, October 03, 2011 7:19 AM:
>
> ...
> > diff --git a/arch/arm/boot/dts/tegra-ventana.dts b/arch/arm/boot/dts/tegra-ventana.dts
> ...
> > + chosen {
> > + bootargs = "vmalloc=192M video=tegrafb console=ttyS0,115200n8 root=/dev/ram rdinit=/sbin/init";
>
> It might be nice to make this identical to what Harmony and Seaboard have here.
>
> Still, it doesn't matter a lot, since I (and I imagine most people) have
> to edit this command-line to point at the correct partition for my disks
> anyway; eventually, U-Boot should be providing/re-writing this property
> too.
>
> ...
> > diff --git a/arch/arm/mach-tegra/board-dt.c b/arch/arm/mach-tegra/board-dt.c
> ...
> > - if (of_machine_is_compatible("nvidia,harmony"))
> > - harmony_pinmux_init();
> > - else if (of_machine_is_compatible("nvidia,seaboard"))
> > - seaboard_pinmux_init();
> > + for (i = 0; i < ARRAY_SIZE(pinmux_configs); i++) {
> > + if (of_machine_is_compatible(pinmux_configs[i].machine)) {
> > + pinmux_configs[i].init();
> > + break;
> > + }
> > + }
> > +
> > + if (i == ARRAY_SIZE(pinmux_configs))
> > + printk(KERN_WARNING "Unknown platform! Pinmuxing not initialized\n");
>
> Should that be WARN() instead of printk?

pr_warning() might be better. Or do we want a backtrace and a tainted kernel
in this case?

Cheers,

Peter.


\
 
 \ /
  Last update: 2011-10-10 10:03    [W:0.047 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site