| To: | linux-mips@linux-mips.org, loongson-dev <loongson-dev@googlegroups.com>, wuzhangjin@gmail.com, apatard@mandriva.com |
|---|---|
| Subject: | [PATCH 9/12] add video command line for gdium |
| From: | yajin <yajinzhou@vm-kernel.org> |
| Date: | Tue, 4 May 2010 17:55:35 +0800 |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
Gdium uses 1024x600 resolution. We need to pass an option to sm501 fb driver.
Signed-off-by: yajin <yajin@vm-kernel.org>
---
arch/mips/loongson/common/cmdline.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/arch/mips/loongson/common/cmdline.c
b/arch/mips/loongson/common/cmdline.c
index 1a06def..0c33f9f 100644
--- a/arch/mips/loongson/common/cmdline.c
+++ b/arch/mips/loongson/common/cmdline.c
@@ -50,4 +50,15 @@ void __init prom_init_cmdline(void)
strcat(arcs_cmdline, " root=/dev/hda1");
prom_init_machtype();
+
+ /* append machine specific command line */
+ switch (mips_machtype) {
+ case MACH_DEXXON_GDIUM2F10:
+ /* gdium has a 1024x600 screen */
+ if ((strstr(arcs_cmdline, "video=")) == NULL)
+ strcat(arcs_cmdline, " video=sm501fb:1024x600@60");
+ break;
+ default:
+ break;
+ }
}
--
1.5.6.5
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 8/12] gdium uses different freq of mclk&m1xclk of sm501, yajin |
|---|---|
| Next by Date: | [PATCH 10/12] add the sm501fb option to sm501 fb driver, yajin |
| Previous by Thread: | [PATCH 8/12] gdium uses different freq of mclk&m1xclk of sm501, yajin |
| Next by Thread: | [PATCH 10/12] add the sm501fb option to sm501 fb driver, yajin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |