[U-Boot] [PATCH v2] wandboard: Add board revision detection support

Wolfgang Denk wd at denx.de
Mon May 25 11:41:04 CEST 2015


Dear Fabio,

In message <CAOMZO5DFpUjmgF_SoRNaGtxExzBQ1-bVTFVTBnTMy40QpDwXZw at mail.gmail.com> you wrote:
> 
> "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."
> 
> This sounds like a real hack for me, sorry.

Consider it as an example for being able to do many different things
that have not even been thought of at the time of implementations. to
try out things.  Maybe we decide later to implement the features a C
code, but for testing or working aound problems is is always nice to
have scripting capabilities.

> Your suggestion would not work if we use Falcon mode, for example.

Well, with Falcon mode you usually prepare the specific images to use
in full U-Boot context, so the selection would be made when we have
the feature available. Or am I missing something?

> U-boot needs to care about board revision to load the correct dtb file.

Actually this is nothing that affects U-Boot code.  It is part of the
U-Boot functionality, but that does not mean it has to be implemented
as part of the U-Boot code.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If there was anything that depressed him more than his own  cynicism,
it was that quite often it still wasn't as cynical as real life.
                                 - Terry Pratchett, _Guards! Guards!_


More information about the U-Boot mailing list