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!
Date: Fri, 01 Aug 2008 10:01:11 +0200	[thread overview]
Message-ID: <20080801080111.D2525248BF@gemini.denx.de> (raw)
In-Reply-To: Your message of "Fri, 01 Aug 2008 11:11:28 +0800." <000201c8f384$4a3f3c70$30065e0a@SHZ.ST.COM>

In message <000201c8f384$4a3f3c70$30065e0a@SHZ.ST.COM> you wrote:
> Hi all,
> This patch is part 2 for [PATCH:Enable 2D Engine in SM501]. New macro "CONFIG_SM501_ENABLE_2DENGINE" be included to specify codes what enable SM501 2D engine. The macro need be declared in config header file.
> Why does it need to enable 2D engine? The reason is most of framebuffer contents need be moved in VRAM when screen scrolls up. The work be done by software in current U-Boot for SM501. The patch is to enable 2D engine to do it by hardware without CPU in
> terference.  
> 
> Signed-off-by: Ryan Chen <ryan.chen@st.com>

Please rework the commit message, and use shorter lines (maximum some
70+ characters per line).

There are also some coding style violations: trailing white
space, indentation/vertical alignment by spaces instead of TABs,

...
> +
> +#define POWER_MODE0_CLOCK                               0x000044
> +#define POWER_MODE0_CLOCK_PLL3_P1XCLK					31:31
> +#define POWER_MODE0_CLOCK_PLL3_P1XCLK_ENABLE			1
> +#define POWER_MODE0_CLOCK_PLL3_P1XCLK_DISABLE			0
> +#define POWER_MODE0_CLOCK_PLL3							30:30
> +#define POWER_MODE0_CLOCK_PLL3_ENABLE					1
> +#define POWER_MODE0_CLOCK_PLL3_DISABLE					0							
Corrupted alignment here?

> +#define POWER_MODE1_CLOCK                               0x00004C
> +#define POWER_MODE1_CLOCK_PLL3_P1XCLK					31:31
> +#define POWER_MODE1_CLOCK_PLL3_P1XCLK_ENABLE			1
> +#define POWER_MODE1_CLOCK_PLL3_P1XCLK_DISABLE			0
> +#define POWER_MODE1_CLOCK_PLL3							30:30
> +#define POWER_MODE1_CLOCK_PLL3_ENABLE					1
> +#define POWER_MODE1_CLOCK_PLL3_DISABLE					0							

Ditto here?

> +// 2D registers.

C++ comments are not allowed.

> +#define DE_REGISTER_OFFSET				0x100000
> +#define DE_SOURCE                                       0x000000

Check alignment.

...and so on.

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
I read part of it all the way through.

      reply	other threads:[~2008-08-01  8:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-01  3:11 [U-Boot-Users] [PATCH]:Enable 2D Engine in SM501! Ryan CHEN
2008-08-01  8:01 ` Wolfgang Denk [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=20080801080111.D2525248BF@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