summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPuneet Saxena <puneets@nvidia.com>2012-01-20 15:31:55 +0530
committerPuneet Saxena <puneets@nvidia.com>2012-02-07 02:05:29 -0800
commitf116864a29c5b29ed5b63c6aafc93442ba35f483 (patch)
treeeb6d7b7521f88e75f13bb0ef8429a18708228c9b /drivers
parentfbe8695649c2302a6513ebb4a24b3ce2d17c9e96 (diff)
video: tegra: Change the clock settings for LCD driver
As clock source for graphics related clocks is different for Tegra2 and Tegra3, define it under platform specific directories. BUG=chromium-os:23496 TEST=Build ok for Cardhu, Waluigi and Seaboard. Tested on Waluigi. Original work by - Mayuresh Kulkarni <mkulkarni@nvidia.com> Change-Id: I6cee11df5e75eaf3836565c4fa4f3ab3e45d8cac Signed-off-by: Puneet Saxena <puneets@nvidia.com> Reviewed-on: https://gerrit.chromium.org/gerrit/14700
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/tegra.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/video/tegra.c b/drivers/video/tegra.c
index 38b3ba69c27..78f63604160 100644
--- a/drivers/video/tegra.c
+++ b/drivers/video/tegra.c
@@ -22,8 +22,6 @@
#include <common.h>
#include <lcd.h>
#include <fdt_decode.h>
-#include <asm/clocks.h>
-#include <asm/arch/clock.h>
#include <asm/arch/gpio.h>
#include <asm/arch/pinmux.h>
#include <asm/arch-tegra/power.h>
@@ -74,17 +72,6 @@ char lcd_cursor_enabled; /* set initial value to false */
ushort lcd_cursor_width;
ushort lcd_cursor_height;
-
-static void clk_init(void)
-{
- /* TODO: Put this into the FDT when we have clock support there */
- clock_start_periph_pll(PERIPH_ID_3D, CLOCK_ID_MEMORY, CLK_300M);
- clock_start_periph_pll(PERIPH_ID_2D, CLOCK_ID_MEMORY, CLK_300M);
- clock_start_periph_pll(PERIPH_ID_HOST1X, CLOCK_ID_PERIPH, CLK_144M);
- clock_start_periph_pll(PERIPH_ID_DISP1, CLOCK_ID_CGENERAL, CLK_600M);
- 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.
@@ -133,7 +120,7 @@ struct pingroup_config pinmux_cros_1[] = {
/* Initialize the Tegra LCD panel and controller */
void init_lcd(struct fdt_lcd *config)
{
- clk_init();
+ display_clk_init();
power_enable_partition(POWERP_3D);
tegra2_display_register(config);
}