summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-05-26 21:51:08 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:39:17 -0700
commit374f204d5bf0cb97e26928fb4ee0be6ea2801343 (patch)
tree2d8138241b627043a5cd3895bd4acab09fa05a27
parentae4d8bbda5d84c11af8c930f3d06da3128ffce61 (diff)
tegra2: config: Enable LCD
This enables an LCD display on Seaboard BUG=chromium-os:13228 TEST=Build, boot on Seaboard, see that LCD works Change-Id: Idd070c9a45f58082029e0f8d21ba4e0a877bdf65 Reviewed-on: http://gerrit.chromium.org/gerrit/1766 Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Anton Staaf <robotboy@chromium.org>
-rw-r--r--include/configs/seaboard.h14
-rw-r--r--include/configs/tegra2-common.h3
2 files changed, 14 insertions, 3 deletions
diff --git a/include/configs/seaboard.h b/include/configs/seaboard.h
index 3cec8fbde15..ebe56ee9495 100644
--- a/include/configs/seaboard.h
+++ b/include/configs/seaboard.h
@@ -56,8 +56,8 @@
#define CONFIG_CONSOLE_MUX
#define CONFIG_SYS_CONSOLE_IS_IN_ENV
#define CONFIG_STD_DEVICES_SETTINGS "stdin=serial,tegra-kbc\0" \
- "stdout=serial\0" \
- "stderr=serial\0"
+ "stdout=serial,lcd\0" \
+ "stderr=serial,lcd\0"
#define CONFIG_MACH_TYPE MACH_TYPE_SEABOARD
#define CONFIG_SYS_BOARD_ODMDATA 0x300d8011 /* lp1, 1GB */
@@ -176,6 +176,16 @@
0, 0, 0, 0, '?', 0, 0, 0 \
}
+/*
+ * LCDC configuration
+ */
+#define CONFIG_LCD
+#define CONFIG_VIDEO_TEGRA2
+
+/* TODO: This needs to be configurable at run-time */
+#define LCD_BPP LCD_COLOR16
+#define CONFIG_SYS_WHITE_ON_BLACK /*Console colors*/
+
#define CONFIG_EXTRA_ENV_SETTINGS \
CONFIG_EXTRA_ENV_SETTINGS_COMMON \
"board=seaboard\0" \
diff --git a/include/configs/tegra2-common.h b/include/configs/tegra2-common.h
index 727bee645ce..9eccd56daf9 100644
--- a/include/configs/tegra2-common.h
+++ b/include/configs/tegra2-common.h
@@ -190,9 +190,10 @@
"nfsserverip=172.22.72.144\0" \
"extra_bootargs=\0" \
"platform_extras=" TEGRA2_SYSMEM"\0" \
+ "videospec=tegrafb\0" \
"regen_all="\
"setenv common_bootargs console=${console} " \
- "${platform_extras} noinitrd; " \
+ "video=${videospec} ${platform_extras} noinitrd; " \
"setenv bootargs ${common_bootargs} ${extra_bootargs} " \
"${bootdev_bootargs}\0" \
"regen_net_bootargs=setenv bootdev_bootargs " \