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] [PATCH 2/4] MX51: Add IPU driver for video support
Date: Tue, 12 Oct 2010 13:30:53 +0200	[thread overview]
Message-ID: <20101012113053.685AB14F310@gemini.denx.de> (raw)
In-Reply-To: <1286875504-9058-3-git-send-email-sbabic@denx.de>

Dear Stefano Babic,

In message <1286875504-9058-3-git-send-email-sbabic@denx.de> you wrote:
> The patch is a porting of the IPU Linux driver
> developed by Freescale to have framebuffer
> functionalities in u-boot.
> Most features are dropped from the original driver and
> only LCD support is the goal of this porting.

I don't know how close this is to the original Linux driver;
eventually you should add a more precise reference to the original
version in the commit message here, too.

> --- /dev/null
> +++ b/drivers/video/ipu.h
> @@ -0,0 +1,316 @@
...
> +typedef unsigned char bool;
> +#define true 1
> +#define false 0

An, no.  Can we please drop that.

> +#define IDMA_CHAN_INVALID	0xFF
> +#define HIGH_RESOLUTION_WIDTH	1024
> +
> +struct clk {
> +	const char *name;
> +	int id;
> +	/* Source clock this clk depends on */
> +	struct clk *parent;
> +	/* Secondary clock to enable/disable with this clock */
> +	struct clk *secondary;
> +	/* Current clock rate */
> +	unsigned long rate;
> +	/* Reference count of clock enable/disable */
> +	__s8 usecount;
> +	/* Register bit position for clock's enable/disable control. */
> +	u8 enable_shift;
> +	/* Register address for clock's enable/disable control. */
> +	void *enable_reg;
> +	u32 flags;
> +	/* Function ptr to recalculate the clock's rate based on parent
> +	   clock's rate */
> +	void (*recalc) (struct clk *);
> +	/* Function ptr to set the clock to a new rate. The rate must match a
> +	   supported rate returned from round_rate. Leave blank if clock is not
> +	   programmable */
> +	int (*set_rate) (struct clk *, unsigned long);
> +	/* Function ptr to round the requested clock rate to the nearest
> +	   supported rate that is less than or equal to the requested rate. */
> +	unsigned long (*round_rate) (struct clk *, unsigned long);
> +	/* Function ptr to enable the clock. Leave blank if clock can not
> +	   be gated. */
> +	int (*enable) (struct clk *);
> +	/* Function ptr to disable the clock. Leave blank if clock can not
> +	   be gated. */
> +	void (*disable) (struct clk *);
> +	/* Function ptr to set the parent clock of the clock. */
> +	int (*set_parent) (struct clk *, struct clk *);

Incorrect multi-line comment style. Please fix globally. [or is the
whole file a verbatim copy of the Linux file?]


> +/* @} */
> +/* @name YUV Planar Formats */
> +/* @{ */

Oops. What's that?


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 distrust all systematisers, and avoid them. The will  to  a  system
shows a lack of honesty.
- Friedrich Wilhelm Nietzsche _G?tzen-D?mmerung [The Twilight of  the
Idols]_ ``Maxims and Missiles'' no. 26

  parent reply	other threads:[~2010-10-12 11:30 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-12  9:25 [U-Boot] MX51 LCD Support Stefano Babic
2010-10-12  9:25 ` [U-Boot] [PATCH 1/4] Add linux framebuffer header Stefano Babic
2010-10-12  9:25   ` [U-Boot] [PATCH 2/4] MX51: Add IPU driver for video support Stefano Babic
2010-10-12  9:25     ` [U-Boot] [PATCH 3/4] MX51: Add " Stefano Babic
2010-10-12  9:25       ` [U-Boot] [PATCH 4/4] MX51: Add video support to vision2 board Stefano Babic
2010-10-12 11:37         ` Wolfgang Denk
2010-10-12 15:07           ` stefano babic
2010-10-12 15:14             ` Wolfgang Denk
2010-10-13 10:17         ` [U-Boot] [PATCH V2 " Stefano Babic
2010-10-21 22:25           ` Anatolij Gustschin
2010-10-12 11:34       ` [U-Boot] [PATCH 3/4] MX51: Add video support Wolfgang Denk
2010-10-12 14:57         ` stefano babic
2010-10-12 15:12           ` Wolfgang Denk
2010-10-13  8:53             ` Stefano Babic
2010-10-13 10:17       ` [U-Boot] [PATCH V2 " Stefano Babic
2010-10-21 22:18         ` Anatolij Gustschin
2010-10-12 11:30     ` Wolfgang Denk [this message]
2010-10-12 12:17       ` [U-Boot] [PATCH 2/4] MX51: Add IPU driver for " Stefano Babic
2010-10-13 10:16     ` [U-Boot] [PATCH V2 " Stefano Babic
2010-10-20 21:45       ` Anatolij Gustschin
2010-10-20 22:10         ` Stefano Babic
2010-10-21  7:35           ` Anatolij Gustschin
2010-10-21 22:13       ` Anatolij Gustschin
2010-10-12 11:22   ` [U-Boot] [PATCH 1/4] Add linux framebuffer header Wolfgang Denk
2010-10-13 10:14   ` [U-Boot] [PATCH V2 1/4] Add linux framebuffer header include/linux/fb.h Stefano Babic
2010-10-21 22:09     ` Anatolij Gustschin
2010-10-21 22:35     ` Timur Tabi
2010-10-22  6:23       ` Stefano Babic
2010-10-22 12:59         ` Timur Tabi
2010-10-22 13:11           ` Wolfgang Denk
2010-10-21  8:34 ` [U-Boot] [PATCH V2 4/4] MX51: Add video support to vision2 board Stefano Babic
2010-10-21 22:22   ` Anatolij Gustschin

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=20101012113053.685AB14F310@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