OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | |
3 * Use of this source code is governed by a BSD-style license that can be | |
4 * found in the LICENSE file. | |
5 */ | |
6 | |
7 #define CONFIG_LCD | |
8 #define CONFIG_TEGRA2_LCD | |
9 #define LCD_BPP LCD_COLOR16 | |
10 #define LCD_FB_ADDR 0x1C022000 /* FB could be passed from bl */ | |
11 #define CONFIG_SYS_WHITE_ON_BLACK /*Console colors*/ | |
12 | |
13 #define TEGRA_GPIO_BACKLIGHT_CHROMEOS_1 TEGRA_GPIO_PD4 | |
14 #define TEGRA_GPIO_LVDS_SHUTDOWN_CHROMEOS_1 TEGRA_GPIO_PB2 | |
15 #define TEGRA_GPIO_BACKLIGHT_VDD_CHROMEOS_1 TEGRA_GPIO_PW0 | |
16 #define TEGRA_GPIO_EN_VDD_PNL_CHROMEOS_1 TEGRA_GPIO_PC6 | |
17 | |
18 #define TEGRA_GPIO_INIT_LCD_CHROMEOS_1 \ | |
19 TEGRA_GPIO_INIT(TEGRA_GPIO_BACKLIGHT_CHROMEOS_1, true) \ | |
20 TEGRA_GPIO_INIT(TEGRA_GPIO_LVDS_SHUTDOWN_CHROMEOS_1, true) \ | |
21 TEGRA_GPIO_INIT(TEGRA_GPIO_BACKLIGHT_VDD_CHROMEOS_1, false) \ | |
22 TEGRA_GPIO_INIT(TEGRA_GPIO_EN_VDD_PNL_CHROMEOS_1, true) | |
23 | |
24 #define TEGRA_CLOCK_INIT_LCD_CHROMEOS_1 \ | |
25 TEGRA_CLOCK("3d", "pll_m", 300000000, true) \ | |
26 TEGRA_CLOCK("2d", "pll_m", 300000000, true) \ | |
27 TEGRA_CLOCK("host1x", "pll_p", 144000000, true) \ | |
28 TEGRA_CLOCK("disp1", "pll_p", 216000000, true) \ | |
29 TEGRA_CLOCK("pwm", "clk_32k", 32768, true) | |
30 | |
31 #define TEGRA_RESOURCE_LCD_CHROMEOS_1 \ | |
32 TEGRA_RESOURCE("irq", 0x69, 1) \ | |
33 TEGRA_RESOURCE("regs", TEGRA_DISPLAY_BASE, TEGRA_DISPLAY_SIZE) \ | |
34 TEGRA_RESOURCE("fbmem", LCD_FB_ADDR, 0x4000000) \ | |
35 TEGRA_RESOURCE("pwm", TEGRA_PWFM2_BASE, TEGRA_PWFM2_SIZE) | |
36 | |
37 #define TEGRA_PANEL_MODE_CHROMEOS_1 \ | |
38 TEGRA_PANEL(pclk, 62200000) \ | |
39 TEGRA_PANEL(h_ref_to_sync, 11) \ | |
40 TEGRA_PANEL(v_ref_to_sync, 1) \ | |
41 TEGRA_PANEL(h_sync_width, 58) \ | |
42 TEGRA_PANEL(v_sync_width, 4) \ | |
43 TEGRA_PANEL(h_back_porch, 58) \ | |
44 TEGRA_PANEL(v_back_porch, 4) \ | |
45 TEGRA_PANEL(h_front_porch, 58) \ | |
46 TEGRA_PANEL(v_front_porch, 4) | |
OLD | NEW |