public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Alexander Holler <holler@ahsoftware.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] wandboard: Add board revision detection support
Date: Sun, 24 May 2015 20:03:12 +0200	[thread overview]
Message-ID: <55621260.6070008@ahsoftware.de> (raw)
In-Reply-To: <55620A81.6030700@ahsoftware.de>

Am 24.05.2015 um 19:29 schrieb Alexander Holler:
> Am 24.05.2015 um 16:27 schrieb Fabio Estevam:
>> Hi Stefano and Alexander,
>>
>> On Sun, May 24, 2015 at 4:43 AM, Stefano Babic <sbabic@denx.de> wrote:
>>
>>>> Wouldn't it be better to just enable CONFIG_CMD_GPIO and then change
>>>> the
>>>> boot-script in the config to something like "if gpio ..." instead of
>>>> adding something special?
>>>>
>>>> Assuming the gpio command works on imx, which I haven't tested or
>>>> looked
>>>> up.
>>>
>>> gpio works - this is really a good idea, moving the check into the
>>> script. Fabio, what do you mind ?
>>
>> I think the idea is good, thanks.
>>
>> I wanted to keep consistency with the mx6cuboxi implementation (which
>> was based on TI's implementation suggested by Tom during the review of
>> the mx6cuboxi patches).
>>
>> Also, the gpio script idea would work fine for selecting the dtb file,
>> but not inside checkboard() function, where I print the board revision
>> name.
>
> Printing the board revision in the script is as easy as selecting the dtb.
>
>> Other aspect I thought is the fact that in case we have another
>> revision of the board in the future, I think that C code is more
>> flexible for handling it.
>
> Not really. Then it it would need again a patch for the C source. Using
> the gpio command one could just change the check even by just changing
> uEnv.txt. Look at how long it now needed until someone did this patch
> (your patch) for u-boot.
>
>> So I like the idea of gpio script, but I would prefer to keep the
>> current implementation if possible due to the reasons stated above.
>
> I would suggest to change the stuff for mx6cuboxi to use the gpio
> command too instead of taking the same (imho wrong) approach.
>
> But enough said from me, I don't really care. ;)

Hmm, just one comment more.

If the gpio command would be enabled, it would even be possible to reset 
the BRCM- WLAN and Bluetooth modules by just adding some stuff to 
uEnv.txt. So at least WLAN would reliable work even after a reboot or 
reset, without the need for the rfkill-driver. Also the 
wandboard-rfkill-driver has more advantages, e.g. the rfkill. ;)

For those which don't know it, currently, without the 
wandboard-rfkill-driver, WLAN works only once after power up, but not 
after the reboot. Thats because the HW doesn't reset the brcm on reset, 
so after a reboot or reset uploading the firmware fails (because it is 
already uploaded due to the missing reset of the module).


> Regards,
>
> Alexander Holler
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

  reply	other threads:[~2015-05-24 18:03 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-21 22:24 [U-Boot] [PATCH v2] wandboard: Add board revision detection support Fabio Estevam
2015-05-22  7:49 ` Stefano Babic
2015-05-23  0:38 ` Vagrant Cascadian
2015-05-23 16:27   ` Alexander Holler
2015-05-24  7:43     ` Stefano Babic
2015-05-24 14:27       ` Fabio Estevam
2015-05-24 14:30         ` Stefano Babic
2015-05-24 17:29         ` Alexander Holler
2015-05-24 18:03           ` Alexander Holler [this message]
2015-05-24 18:47             ` Fabio Estevam
2015-05-24 22:22               ` Alexander Holler
2015-05-24 23:42                 ` Fabio Estevam
2015-05-25  9:41                   ` Wolfgang Denk
2015-05-25 11:25                     ` Fabio Estevam
2015-05-26 18:55                     ` Alexander Holler
2015-05-26 22:11                       ` Fabio Estevam
2015-05-24 19:03             ` Tom Rini
2015-05-24 18:44           ` Fabio Estevam
2015-06-08  6:35 ` Stefano Babic

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=55621260.6070008@ahsoftware.de \
    --to=holler@ahsoftware.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox