]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
tegra: Enable LCD on TEC
authorThierry Reding <thierry.reding@avionic-design.de>
Fri, 23 Nov 2012 00:58:51 +0000 (00:58 +0000)
committerTom Warren <twarren@nvidia.com>
Wed, 16 Jan 2013 20:40:07 +0000 (13:40 -0700)
The TEC ships with a 7" LCD panel that provides a resolution of 800x480
pixels. Add a corresponding panel description to the device tree and
enable LCD support in the configuration.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Tom Warren <twarren@nvidia.com>
board/avionic-design/dts/tegra20-tec.dts
include/configs/tec.h

index 50ea3b51e4a7a575848bf97f968da47e4ebd3f27..cdb752776c40c48b98d13df1c382ebf5df622c71 100644 (file)
                };
        };
 
+       host1x {
+               status = "okay";
+
+               dc@54200000 {
+                       status = "okay";
+
+                       rgb {
+                               nvidia,panel = <&lcd_panel>;
+                               status = "okay";
+                       };
+               };
+       };
+
        clock@60006000 {
                clocks = <&clk_32k &osc>;
        };
                        compatible = "hynix,hy27uf4g2b", "nand-flash";
                };
        };
+
+       lcd_panel: panel {
+               clock = <33260000>;
+               xres = <800>;
+               yres = <480>;
+               left-margin = <120>;
+               right-margin = <120>;
+               hsync-len = <16>;
+               lower-margin = <15>;
+               upper-margin = <15>;
+               vsync-len = <15>;
+
+               nvidia,bits-per-pixel = <16>;
+               nvidia,pwm = <&pwm 0 500000>;
+               nvidia,backlight-enable-gpios = <&gpio 13 0>; /* PB5 */
+               nvidia,backlight-vdd-gpios = <&gpio 176 0>; /* PW0 */
+               nvidia,lvds-shutdown-gpios = <&gpio 10 0>; /* PB2 */
+               nvidia,panel-timings = <0 0 0 0>;
+       };
 };
index 200cf66647c02dcbdc331d28d2a838d197ea4721..815afa64a5cd491db623c8e23e35f55fbd1c63cb 100644 (file)
 /* High-level configuration options */
 #define V_PROMPT                       "Tegra20 (TEC) # "
 #define CONFIG_TEGRA_BOARD_STRING      "Avionic Design Tamonten Evaluation Carrier"
-#define CONFIG_SYS_BOARD_ODMDATA       0x2b0d8011
 
 /* Board-specific serial config */
 #define CONFIG_TEGRA_ENABLE_UARTD      /* UARTD: debug UART */
 #define CONFIG_SYS_NS16550_COM1                NV_PA_APB_UARTD_BASE
 
 #define CONFIG_BOARD_EARLY_INIT_F
+#define CONFIG_BOARD_LATE_INIT
 
 /* SD/MMC */
 #define CONFIG_MMC
        "ext2load mmc 0 0x17000000 /boot/uImage;"       \
        "bootm"
 
+#undef TEGRA_DEVICE_SETTINGS
+#define TEGRA_DEVICE_SETTINGS  \
+       "stdin=serial\0"        \
+       "stdout=serial,lcd\0"   \
+       "stderr=serial,lcd\0"
+
+/* LCD support */
+#define CONFIG_LCD
+#define CONFIG_PWM_TEGRA
+#define CONFIG_VIDEO_TEGRA
+#define LCD_BPP LCD_COLOR16
+#define CONFIG_SYS_WHITE_ON_BLACK
+
 #include "tegra-common-post.h"
 
 #endif /* __CONFIG_H */