public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH]:Enable 2D Engine in SM501 to hurry up fresh speed!
Date: Wed, 30 Jul 2008 10:10:29 +0200	[thread overview]
Message-ID: <20080730081029.81F18248BF@gemini.denx.de> (raw)
In-Reply-To: Your message of "Wed, 30 Jul 2008 14:14:47 +0800." <008c01c8f20b$91240c80$30065e0a@SHZ.ST.COM>

In message <008c01c8f20b$91240c80$30065e0a@SHZ.ST.COM> you wrote:
> Hi all, 
> This patch is to enable 2D Engine in SM501 video chip to hurry up fresh speed. It change some 2D Engine registers and could obviously fasten screen scroll up. I think it's reasonable to do it for consumerism.

Your line is way too long.

What exactly is "fresh speed"? 

For "consumerism" ?


> commit 02e99b0a871f91fd3598024a2468a059971ef28d
> Parent: 699f05125509249072a0b865c8d35520d97cd501
> Author: Ryan Chen <ryan.chen@st.com>
> Date:   Wed Jul 30 09:45:01 2008 -0400
> 
>     Signed-off-by: Ryan Chen <ryan.chen@st.com>
>     
>     	modified:   drivers/video/sm501.c

Please format your patches using git-format-patch and make sure to
supply a reasonable comit message.


Your patch adds a lot of code that may or may not be needed on some
systems. Please make it optional using a CONFIG_ option.


> diff --git a/drivers/video/sm501.c b/drivers/video/sm501.c
> old mode 100644
> new mode 100755

Please do not set exec permissions on plain source files.

> index 23db02c..f20cf94
> --- a/drivers/video/sm501.c
> +++ b/drivers/video/sm501.c
> @@ -35,6 +35,7 @@
>  
>  #include <video_fb.h>
>  #include <sm501.h>
> +#include <asm/io.h>

What is this needed for?

...
> +/* Program new power mode. */
> +static void setPower(unsigned long nGates, unsigned long Clock)
> +{
> +	unsigned long gate_reg, clock_reg;
> +	unsigned long control_value;
> +	u32 i;
> +
> +	/*  Get current power mode. */
> +	control_value = FIELD_GET(read32(POWER_MODE_CTRL),
> +		POWER_MODE_CTRL,
> +		MODE);
> +
> +	switch (control_value)
> +	{

Coding Style:

	switch (control_value) {

> +	switch (bpp)
> +	{

Ditto...

> +#if defined CONFIG_MULTI_VIDEO_CARD
> +void *sm501_video_hw_init (void)
> +#else
>  void *video_hw_init (void)
> +#endif

This seems to be an unrelated change that should be plit into a
separate patch.


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
He had quite a powerful intellect, but it  was  as  powerful  like  a
locomotive,  and  ran on rails and was therefore almost impossible to
steer.                          - Terry Pratchett, _Lords and Ladies_

  reply	other threads:[~2008-07-30  8:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-30  6:14 [U-Boot-Users] [PATCH]:Enable 2D Engine in SM501 to hurry up fresh speed! Ryan CHEN
2008-07-30  8:10 ` Wolfgang Denk [this message]
2008-08-01  2:57   ` Ryan CHEN
2008-08-01  7:54     ` Wolfgang Denk
2008-08-01  7:58     ` Wolfgang Denk

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=20080730081029.81F18248BF@gemini.denx.de \
    --to=wd@denx.de \
    --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