All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom <Tom.Rix@windriver.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] vxworks: Add CONFIG_VXWORKS_PREBOOT
Date: Wed, 23 Sep 2009 08:00:37 -0500	[thread overview]
Message-ID: <4ABA1BF5.6080704@windriver.com> (raw)
In-Reply-To: <200909231448.39960.niklausgiger@gmx.ch>

Niklaus Giger wrote:
> Am Mittwoch 23 September 2009 13:39:55 schrieb Tom:
>> Niklaus Giger wrote:
>>> The option CONFIG_VXWORKS_PREBOOT allows a board specific
>>> vxworks_preboot to be run just before jumping into the
>>> vxWorks images. This can be used to alter a register
>>> which is used differently by U-boot and vxWorks.
> <..>
>>>  	puts ("## vxWorks terminated\n");
>>> diff --git a/include/vxworks.h b/include/vxworks.h
>>> index 1633904..df2b580 100644
>>> --- a/include/vxworks.h
>>> +++ b/include/vxworks.h
>>> @@ -50,4 +50,8 @@ int do_bootvx(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
>>>  #define CONFIG_SYS_VXWORKS_SERVERNAME	"srv"
>>>  #endif
>>>  
>>> +#ifdef CONFIG_VXWORKS_PREBOOT
>>> +    void vxworks_preboot(void);
>>> +#endif
>>> +
>> Where is vxworks_preboot defined ?
> This patch should only give the basis for its use.
> 
> I use it in one of my Netstal boards MCU25. Patch will come soon, as I am cleaning 
> them up at the moment. But the relevant snippet is here:
> 
> board/netstal/mcu25/mcu25.c
> 
> void vxworks_preboot(void) {
>     if (sys_install_requested())
>         mtdcr(CPC0_CR1, CPCO_CR1_USE_EXTERNAL);
> }
> 
> Is this okay for you? Or do you have more questions? 
> 

This is a good change.

IMO, it would be better if this patch was included with your upcoming
changes as the context of its use would be clear and it would
eliminate that the possibility that this change happened without
follow-up changes.

Tom


> Best regards
> 
> Niklaus
>> Tom
>>
>>>  #endif
>> _______________________________________________
>> U-Boot mailing list
>> U-Boot at lists.denx.de
>> http://lists.denx.de/mailman/listinfo/u-boot
>>
> 

  reply	other threads:[~2009-09-23 13:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-23  6:22 [U-Boot] [PATCH] vxworks: Add CONFIG_VXWORKS_PREBOOT Niklaus Giger
2009-09-23 11:39 ` Tom
2009-09-23 12:48   ` Niklaus Giger
2009-09-23 13:00     ` Tom [this message]
2009-09-23 12:56 ` Stefan Roese
2009-09-23 13:02 ` Wolfgang Denk

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=4ABA1BF5.6080704@windriver.com \
    --to=tom.rix@windriver.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.