[U-Boot-Users] [PATCH]:Enable 2D Engine in SM501!

Wolfgang Denk wd at denx.de
Fri Aug 1 10:01:11 CEST 2008


In message <000201c8f384$4a3f3c70$30065e0a at 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 at 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.




More information about the U-Boot mailing list