From 380ebeba0ad7b7188c573703e87843d0f90bbb7d Mon Sep 17 00:00:00 2001 From: Puneet Saxena Date: Tue, 24 Jan 2012 12:23:13 +0530 Subject: video: tegra: Handle pinmux setting differenly for Tegra2 an Tegra3 For Tegra2, pinmuxing is done in each driver, For Tegra3 it is done at boot up time. Handling it conditionally for Tegra2 and Tegra3. BUG=chromium-os:23496 TEST=Build ok for Cardhu, Waluigi and Seaboard. Tested on Waluigi. Change-Id: I95e2dc4d46c0c47037611ff9177f2d8823c11d1f Signed-off-by: Puneet Saxena Reviewed-on: https://gerrit.chromium.org/gerrit/14695 --- drivers/video/tegra.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/video/tegra.c b/drivers/video/tegra.c index 2bdb392a7a..13574877c2 100644 --- a/drivers/video/tegra.c +++ b/drivers/video/tegra.c @@ -85,6 +85,7 @@ static void clk_init(void) clock_start_periph_pll(PERIPH_ID_PWM, CLOCK_ID_SFROM32KHZ, CLK_32768); } +#if defined(CONFIG_TEGRA2) /* * The PINMUX macro is used per board to setup the pinmux configuration. */ @@ -127,6 +128,7 @@ struct pingroup_config pinmux_cros_1[] = { PINMUX(LVS, DISPA, NORMAL, NORMAL), PINMUX(SLXD, SPDIF, NORMAL, NORMAL), }; +#endif /* Initialize the Tegra LCD panel and controller */ void init_lcd(struct fdt_lcd *config) @@ -271,8 +273,10 @@ static int handle_stage(const void *blob) return -1; } +#if defined(CONFIG_TEGRA2) /* TODO: put pinmux into the FDT */ pinmux_config_table(pinmux_cros_1, ARRAY_SIZE(pinmux_cros_1)); +#endif fdt_setup_gpio(&config.panel_vdd); fdt_setup_gpio(&config.lvds_shutdown); -- cgit v1.2.3