Please keep your replies on the list so that all may benefit.

On 05/13/2010 09:33 AM, Jose Vasconcellos wrote:
This allows setting the ATAG_REVISION so it gets passed to
the kernel. This is useful for systems that share the same id
but have some small hardware differences between board
revisions.

On Thu, May 13, 2010 at 9:47 AM, Gary Thomas<g...@mlbassoc.com>  wrote:
On 05/13/2010 08:02 AM, Jose Vasconcellos wrote:

This patch adds an exec option (-v) to set the board revision
via the ATAG_REVISION tag.

What's it used for?  (Why do you need this tag)

I think it would be better in this case to have this provided
automatically.  Whatever value you would be passing seems to
be specific to your target, so just define it as a platform
defined value and make the RedBoot exec code pass it.

Define it wherever you've defined HAL_PLATFORM_MACHINE_TYPE, e.g.

#define HAL_PLATFORM_REVISION 123

Then in the code
#if defined(HAL_PLATFORM_REVISION)
   ...
#endif

Otherwise, you pollute the command with options which do nothing
on most platforms and will just be confusing to users.

--
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

Reply via email to