Thread (17 messages) flat view 17 messages, 2 authors, 2011-04-01

Re: [PATCH 1/9] OMAP: DSS2: move dss device clock configuration

From: Archit Taneja <hidden>
Date: 2011-04-01 07:47:33
Also in: linux-omap

On Friday 01 April 2011 12:37 PM, Valkeinen, Tomi wrote:
On Fri, 2011-04-01 at 12:35 +0530, Archit Taneja wrote:
quoted
On Thursday 31 March 2011 03:40 PM, Valkeinen, Tomi wrote:
quoted
Clock configuration was defined inside dssdev.phy.dsi struct. The clock
config doesn't really belong there, and so it's moved to dssdev.clock
struct.

Now the explicit clock configuration could also be used for other
interfaces than DSI, although there's no support for it currently.

Signed-off-by: Tomi Valkeinen<redacted>
---
   arch/arm/mach-omap2/board-4430sdp.c       |   14 +++++++++-----
   arch/arm/plat-omap/include/plat/display.h |   28 ++++++++++++++++------------
   drivers/video/omap2/dss/dsi.c             |   14 +++++++-------
   3 files changed, 32 insertions(+), 24 deletions(-)
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c
index 05288c9..626b16b 100644
--- a/arch/arm/mach-omap2/board-4430sdp.c
+++ b/arch/arm/mach-omap2/board-4430sdp.c
<snip>
quoted
quoted
@@ -424,6 +412,22 @@ struct omap_dss_device {
   	} phy;

   	struct {
+		struct {
+			u16 lck_div;
+			u16 pck_div;
Is it possible to wrap these members around a channel member? The board
file can then fill up the lck_div and ppck_div based on what channel it
is using.
Hmm. What do you mean "wrap around"? The channel is defined a bit below
there.
I meant something like:
	
	...
	struct {
		struct {
			struct {
				u16 lck_div;
				u16 pck_div;
			} channel[MAX_CHANNELS];
		} dispc;

		...

		struct {

		} dsi;

	} clocks;
	...

Or something equivalent to the thing above, like using a pointer to an 
array.

Archit
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help