Patchwork [U-Boot,1/2,v2] tegra: display: add board pinmux

login
register
mail settings
Submitter Marc Dietrich
Date Nov. 27, 2012, 4:55 p.m.
Message ID <989998c93aee2057bf3ade9532201f798b84049e.1354034822.git.marvin24@gmx.de>
Download mbox | patch
Permalink /patch/202264/
State Accepted
Delegated to: Tom Warren
Headers show

Comments

Marc Dietrich - Nov. 27, 2012, 4:55 p.m.
Boards may require a different pinmux setup for DISPLAY than the default one.
Add a way to call into board specific code to set this up.

Signed-off-by: Marc Dietrich <marvin24@gmx.de>
---
changes in V2:
	- fix comment padding

 arch/arm/include/asm/arch-tegra/board.h |    1 +
 board/nvidia/common/board.c             |    7 +++++++
 2 files changed, 8 insertions(+)

Patch

diff --git a/arch/arm/include/asm/arch-tegra/board.h b/arch/arm/include/asm/arch-tegra/board.h
index be6bf25..7453dcd 100644
--- a/arch/arm/include/asm/arch-tegra/board.h
+++ b/arch/arm/include/asm/arch-tegra/board.h
@@ -44,5 +44,6 @@  void gpio_early_init(void);  /* overrideable GPIO config        */
 void pin_mux_usb(void);      /* overrideable USB pinmux setup   */
 void pin_mux_spi(void);      /* overrideable SPI pinmux setup   */
 void pin_mux_nand(void);     /* overrideable NAND pinmux setup  */
+void pin_mux_display(void);  /* overrideable DISPLAY pinmux setup */
 
 #endif
diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c
index 76ec687..819c120 100644
--- a/board/nvidia/common/board.c
+++ b/board/nvidia/common/board.c
@@ -87,6 +87,12 @@  void __pin_mux_nand(void)
 
 void pin_mux_nand(void) __attribute__((weak, alias("__pin_mux_nand")));
 
+void __pin_mux_display(void)
+{
+}
+
+void pin_mux_display(void) __attribute__((weak, alias("__pin_mux_display")));
+
 /*
  * Routine: power_det_init
  * Description: turn off power detects
@@ -126,6 +132,7 @@  int board_init(void)
 		debug("%s: Failed to init pwm\n", __func__);
 #endif
 #ifdef CONFIG_LCD
+	pin_mux_display();
 	tegra_lcd_check_next_stage(gd->fdt_blob, 0);
 #endif
 	/* boot param addr */