From: Timur Tabi <timur@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] [v2] powerpc: 'monitor' environment variable contains full video configuration
Date: Tue, 15 Mar 2011 17:32:23 -0500 [thread overview]
Message-ID: <4D7FE8F7.8040602@freescale.com> (raw)
In-Reply-To: <20110315214758.46AF6134@gemini.denx.de>
Wolfgang Denk wrote:
> Please re-read the conversation then. Mind the context (U-Boot versus
> Linux). Mind what I wrote about defaults and users being able to
> chose the behaviour they want. And keep in mind what I wrote about
> enforcing desicions "in the best interest" of your users (who may
> happen to disagree).
After re-reading it, I've come to the conclusion is that as far as my patch is
concerned, I just need to make the following changes:
1) Modify video_get_params() (in videomodes.c) to parse the "video-mode
"environment variable, using the same format that Linux uses. Right now, it
parses the variable "video", so that variable is now deprecated.
2) Update the DIU driver to use this feature of videomodes.c. This means taking
the functionality of my function diu_get_video_params() and putting it into
video_get_params().
3) Remove the code that sets diubootargs. If the user wants to pass parameters
to Linux, he has to add "video=$video-mode console=tty0" to his command-line.
If "video-mode" is not set, then he must *not* add "video=$video-mode
console=tty0" to his command-line, otherwise the kernel will get confused.
There is no way to automate this for the user.
And that's it. If this is wrong, please be detailed in what I have wrong,
because I can't guess any more what you want.
So I have one concern:
My patch has a function called diu_get_video_params() which is like
video_get_params(), but it returns a lot more information. video_get_params()
is currently used by several other drivers, none of which I can test. I'm very
hesitant to rewrite video_get_params() so that it returns the same data that
diu_get_video_params() returns, because I can't test these other boards.
--
Timur Tabi
Linux kernel developer at Freescale
prev parent reply other threads:[~2011-03-15 22:32 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-14 20:19 [U-Boot] [PATCH] [v2] powerpc: 'monitor' environment variable contains full video configuration Timur Tabi
2011-03-14 23:33 ` Wolfgang Denk
2011-03-14 23:39 ` Tabi Timur-B04825
2011-03-15 9:05 ` Wolfgang Denk
2011-03-15 14:50 ` Timur Tabi
2011-03-15 15:15 ` Wolfgang Denk
2011-03-15 15:21 ` Timur Tabi
2011-03-15 15:47 ` Wolfgang Denk
2011-03-15 15:52 ` Timur Tabi
2011-03-15 19:02 ` Wolfgang Denk
2011-03-15 19:09 ` Timur Tabi
2011-03-15 19:38 ` Wolfgang Denk
2011-03-15 19:49 ` Timur Tabi
2011-03-15 20:41 ` Wolfgang Denk
2011-03-15 20:48 ` Timur Tabi
2011-03-15 21:47 ` Wolfgang Denk
2011-03-15 22:32 ` Timur Tabi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D7FE8F7.8040602@freescale.com \
--to=timur@freescale.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox