ARM: tegra: match SoC name not board name in DT board files
Subsystems (3)
PATCH 1/1 ARM: tegra: match SoC name not board name in DT board files
board-dt-tegra*.c should support any board using Tegra when booted using device tree. Instead of explicitly listing all the supported boards, which requires a kernel change for each new board, list the supported SoC model instead.
Note that the board files do currently have explicit support for setting up each board's pinmux. However, it's fairly likely that at least the basic devices on any new board will work just fine as set up by the boot- loader, and the pinmux data should be moving into device tree soon anyway.
--- arch/arm/mach-tegra/board-dt-tegra20.c | 6 +----- arch/arm/mach-tegra/board-dt-tegra30.c | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-)
arch/arm/mach-tegra/board-dt-tegra20.c +1 -5
@@ -130,11 +130,7 @@ static void __init tegra_dt_init(void) }static const char *tegra20_dt_board_compat[] = { -"compulab,trimslice" , -"nvidia,harmony" , -"compal,paz00" , -"nvidia,seaboard" , -"nvidia,ventana" , +"nvidia,tegra20" ,NULL };
arch/arm/mach-tegra/board-dt-tegra30.c +1 -1
@@ -91,7 +91,7 @@ static void __init tegra30_dt_init(void) }static const char *tegra30_dt_board_compat[] = { -"nvidia,cardhu" , +"nvidia,tegra30" ,NULL };
Signature · 1 line
1.7.0.4
Olof Johansson
AppliedPATCH 1/1 ARM: tegra: match SoC name not board name in DT board files
Quoted 11 lines · Stephen Warren
board-dt-tegra*.c should support any board using Tegra when booted using device tree. Instead of explicitly listing all the supported boards, which requires a kernel change for each new board, list the supported SoC model instead.
Note that the board files do currently have explicit support for setting up each board's pinmux. However, it's fairly likely that at least the basic devices on any new board will work just fine as set up by the boot- loader, and the pinmux data should be moving into device tree soon anyway.
Signed-off-by Stephen Warren <[email protected]>
Thanks, applied.
-Olof