Unifying device tree filenames, and U-Boot SoC name
I just posted a patch which causes U-Boot to define some variables describing which board you're running on:
http://lists.denx.de/pipermail/u-boot/2012-May/124556.html
In particular, see the description of that first patch for motivation
re: U-Boot scripts.
The one issue here is that the U-Boot SoC name for Tegra20 is tegra2 (hence it will define board_soc=tegra2), whereas the kernel's device tree files are all tegra-*.dts not tegra2-*.dts.
I propose we fix this by:
a) In the kernel, renaming tegra*-${board}.dts to tegra20-${board}.dts (or tegra30-${board}.dts). This appears to better match what most other ARM sub-arches are doing anyway.
b) In U-Boot, rename the tegra2 support to tegra20 so that U-Boot ends up setting board_soc=tegra20, so this matches the .dts/.dtb filenames. This would involve renaming arch/arm/cpu/armv7/tegra2/ to ./arch/arm/cpu/armv7/tegra20/ and editing boards.cfg to match, and possibly other related changes.
This sounds like churn, but I think we could easily fold this into Allen's series that moves the tegra2 directory in order to put it in a common place for separate SPL/non-SPL builds to avoid doing this kind of thing multiple times.
Does anyone think this is a good/bad/... idea? Thanks.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 24 lines · Stephen Warren
I just posted a patch which causes U-Boot to define some variables describing which board you're running on:
http://lists.denx.de/pipermail/u-boot/2012-May/124556.html
In particular, see the description of that first patch for motivation
re: U-Boot scripts.The one issue here is that the U-Boot SoC name for Tegra20 is tegra2 (hence it will define board_soc=tegra2), whereas the kernel's device tree files are all tegra-*.dts not tegra2-*.dts.
I propose we fix this by:
a) In the kernel, renaming tegra*-${board}.dts to tegra20-${board}.dts (or tegra30-${board}.dts). This appears to better match what most other ARM sub-arches are doing anyway.
b) In U-Boot, rename the tegra2 support to tegra20 so that U-Boot ends up setting board_soc=tegra20, so this matches the .dts/.dtb filenames. This would involve renaming
arch/arm/cpu/armv7/tegra2/to./arch/arm/cpu/armv7/tegra20/and editing boards.cfg to match, and possibly other related changes.
Quoted 6 lines
This sounds like churn, but I think we could easily fold this into Allen's series that moves the tegra2 directory in order to put it in a common place for separate SPL/non-SPL builds to avoid doing this kind of thing multiple times.
Does anyone think this is a good/bad/... idea? Thanks.
I like it. It's better to have the names consistent.
Thierry
Hi Stephen,
Quoted 25 lines · Thierry Reding
Quoted 24 lines · Stephen Warren
I just posted a patch which causes U-Boot to define some variables describing which board you're running on:
http://lists.denx.de/pipermail/u-boot/2012-May/124556.html
In particular, see the description of that first patch for motivation
re: U-Boot scripts.The one issue here is that the U-Boot SoC name for Tegra20 is tegra2 (hence it will define board_soc=tegra2), whereas the kernel's device tree files are all tegra-*.dts not tegra2-*.dts.
I propose we fix this by:
a) In the kernel, renaming tegra*-${board}.dts to tegra20-${board}.dts (or tegra30-${board}.dts). This appears to better match what most other ARM sub-arches are doing anyway.
b) In U-Boot, rename the tegra2 support to tegra20 so that U-Boot ends up setting board_soc=tegra20, so this matches the .dts/.dtb filenames. This would involve renaming
arch/arm/cpu/armv7/tegra2/to./arch/arm/cpu/armv7/tegra20/and editing boards.cfg to match, and possibly other related changes.
Quoted 9 lines
Quoted 6 lines
This sounds like churn, but I think we could easily fold this into Allen's series that moves the tegra2 directory in order to put it in a common place for separate SPL/non-SPL builds to avoid doing this kind of thing multiple times.
Does anyone think this is a good/bad/... idea? Thanks.
I like it. It's better to have the names consistent.
Sounds good to me, too.
Quoted 3 lines
Thierry
Regards,
Simon
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot
A message that is not in the archive (sent off-list or not yet received): CAPnjgZ3rcprV5Es3Omcnwr8EdvP+1E94U__Ou_9wzw1048beNQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 16 lines · Simon Glass
Hi Stephen,
On Mon, May 21, 2012 at 7:22 AM, Thierry Reding <[email protected]<mailto:[email protected]>> wrote:
Quoted 12 lines · Stephen Warren
b) In U-Boot, rename the tegra2 support to tegra20 so that U-Boot ends up setting board_soc=tegra20, so this matches the .dts/.dtb filenames. This would involve renaming
arch/arm/cpu/armv7/tegra2/to./arch/arm/cpu/armv7/tegra20/and editing boards.cfg to match, and possibly other related changes.This sounds like churn, but I think we could easily fold this into Allen's series that moves the tegra2 directory in order to put it in a common place for separate SPL/non-SPL builds to avoid doing this kind of thing multiple times.
Quoted 5 lines
Quoted 1 line
Does anyone think this is a good/bad/... idea? Thanks.
I like it. It's better to have the names consistent.
Sounds good to me, too.
I'm fine with the proposal, I'll roll it into my SPL patch series which I need to post a new version of anyway.
-Allen
Signature · 1 line
nvpublic