All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Murphy <dmurphy@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] arm: dra7xx: Update the EXTRA_ENV_SETTINGS
Date: Wed, 5 Jun 2013 07:27:05 -0500	[thread overview]
Message-ID: <51AF2E99.7080706@ti.com> (raw)
In-Reply-To: <20130604213525.GH10720@bill-the-cat>

On 06/04/2013 04:35 PM, Tom Rini wrote:
> On Tue, Jun 04, 2013 at 10:26:06AM -0500, Dan Murphy wrote:
>> Update the EXTRA_ENV_SETTING for the dra7xx.
>> The console needs to be set to ttyO0 and the
>> findfdt needs to be updated to load the
>> dra7xx-evm.dtb file.
>>
>> Signed-off-by: Dan Murphy <dmurphy@ti.com>
>> ---
>> v2 - Updated with side bar maintainer comments.
>>  include/configs/omap5_common.h |   12 ++++++++++--
>>  1 files changed, 10 insertions(+), 2 deletions(-)
>>
>> diff --git a/include/configs/omap5_common.h b/include/configs/omap5_common.h
>> index deb5e9f..c5061dd 100644
>> --- a/include/configs/omap5_common.h
>> +++ b/include/configs/omap5_common.h
>> @@ -142,9 +142,15 @@
>>  #define PARTS_DEFAULT
>>  #endif
>>  
>> +#ifdef CONFIG_DRA7XX
>> +#define CONFIG_CONSOLE_DEV		"ttyO0"
>> +#else
>> +#define CONFIG_CONSOLE_DEV		"ttyO2"
>> +#endif
>> +
>>  #define CONFIG_EXTRA_ENV_SETTINGS \
>>  	"loadaddr=0x82000000\0" \
>> -	"console=ttyO2,115200n8\0" \
>> +	"console=" CONFIG_CONSOLE_DEV ",115200n8\0" \
> Sorry, when we chatted on IRC I was being a bit more literal than you
> did.  I want dra7xx_evm.h to have '#define CONSOLEDEV "ttyO0"' and
> omap5_uevm.h to have '#define CONSOLEDEV "ttyO2"' and omap5_common.h to
> have:
> "console=" CONSOLEDEV ",115200n8\0" \
OK I got it.  Change a comin.
>> @@ -174,7 +180,9 @@
>>  		"bootz ${loadaddr} - ${fdtaddr}\0" \
>>  	"findfdt="\
>>  		"if test $board_name = omap5_uevm; then " \
>> -			"setenv fdtfile omap5-uevm.dtb; fi;\0 " \
>> +			"setenv fdtfile omap5-uevm.dtb; fi; " \
>> +		"if test $board_name = dra7xx; then " \
>> +			"setenv fdtfile dra7-evm.dtb; fi;\0 " \
> This part is fine, thanks.  If you've got time, add something like:
> if test -z $fdtfile; then
>   echo "WARNING: Could not determine device tree to use"
> fi
>
> After testing I got the syntax right, thanks!
>

What does the -z do?  Could not find any info on that.

-- 
------------------
Dan Murphy

  reply	other threads:[~2013-06-05 12:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-04 15:26 [U-Boot] [PATCH v2] arm: dra7xx: Update the EXTRA_ENV_SETTINGS Dan Murphy
2013-06-04 21:35 ` Tom Rini
2013-06-05 12:27   ` Dan Murphy [this message]
2013-06-05 12:39     ` Tom Rini

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=51AF2E99.7080706@ti.com \
    --to=dmurphy@ti.com \
    --cc=u-boot@lists.denx.de \
    /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 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.