[U-Boot] [PATCH] avr32: add ATAG_BOARDINFO

Andreas Bießmann biessmann at corscience.de
Wed Apr 13 14:49:20 CEST 2011


Dear Wolfgang Denk,

Am 13.04.2011 13:44, schrieb Wolfgang Denk:
> Dear =?UTF-8?q?Andreas=20Bie=C3=9Fmann?=,
> 
> In message <1302686741-11090-1-git-send-email-biessmann at corscience.de> you wrote:
>> This patch adds a new ATAG_BORADINFO to U-Boot. This tag is intended to hand
>> over the bd->bi_board_number to the linux kernel for early stage board
>> information like a board revision or other kind of board specific decisions
>> necessary before the linux peripherial drivers are up.
> 
> Is this ATAG_BOARDINFO already supported by the ARM Linux kernel?  I
> cannot find it there, nor can I find any postings referencing it on
> linux-arm-kernel

No, it is avr32!

Please see
http://lists.avr32linux.org/pipermail/kernel/2011-April/005593.html
and http://article.gmane.org/gmane.linux.kernel/1125654

> I think it's a fundamentally wrong approach to take, like the
> MACH-ID's have been right from day one.  By now we should have learned
> that lesson and not repeat it again.

Well, there is no fixed mechanism planed for using this information in
linux kernel. But we use it in our (not mainline) product. In one
comment in mentioned threads above I explain why this is needed. In
short I like to pin that ATAG key value to that function to have it
reserved if one other thinks to introduce another ATAG key not using
that one.

> ARM Linux is in the process of being converted to using the Device
> Tree for description of hardware specifics, so this is the way to go
> for new things.

Well, you may be right here, but I don't think we get so much AVR32 SoC
or boards in future as we have on ARM side.

> From my point of view, I would like to reject this patch.  If you
> however manage to get this accepted for mainline Linux, then maybe I
> reconsider.

For now this submission is mostly to reference from linux-list to have a
test basis for other users. I will resend or trigger the list, if my
patch in linux tree will be accepted.

regards

Andreas Bießmann


More information about the U-Boot mailing list