[U-Boot] Common arch-specific header files for SOCs

Mike Frysinger vapier at gentoo.org
Wed Aug 31 06:36:50 CEST 2011


On Tuesday, August 30, 2011 17:13:51 Simon Glass wrote:
> The arch/arm/include/asm/arch symlink needs to point to arch-tegra2 in
> my case, which is fine, but I also want to be able to include common
> files.
> 
> #include <asm/arch/clock.h>
> 
> This points to arch/arm/include/asm/arch-tegra2/clock.h but this would
> not be available from a tegra3 architecture, for example.

$ cat arch/arm/include/asm/arch-tegra3/clock.h
#include <asm/arch-tegra2/clock.h>

> Any other suggestions? It almost feels like we need an 'SOC family'
> field in boards.cfg (as distinct from SOC). Then we could perhaps have
> this work automatically.

maybe create asm/arch-tegra/ for the common stuff and have the other tegras 
include that for common stuff ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110831/e2c527cc/attachment.pgp 


More information about the U-Boot mailing list