All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: "Cousson, Benoit" <b-cousson@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	Paul Walmsley <paul@pwsan.com>,
	Kevin Hilman <khilman@deeprootsystems.com>,
	"Shilimkar, Santosh" <santosh.shilimkar@ti.com>
Subject: Re: [RFC 1/5] OMAP: mux: Add support for control module split in several partitions
Date: Mon, 27 Sep 2010 10:36:04 -0700	[thread overview]
Message-ID: <20100927173604.GY4211@atomide.com> (raw)
In-Reply-To: <4CA0D33C.303@ti.com>

* Cousson, Benoit <b-cousson@ti.com> [100927 10:15]:
> 
> OK for that one, that will save the extra id to store the partition
> in each static data, but then you will still have to store it during
> the init?

For mux.c internal data, we can have an array of struct omap_mux_partition
that contains the mux array for that partition:

struct omap_mux_partition {
	void __iomem	*base;	/* Partition virt base */
	struct omap_mux	*mux;	/* Partition specific mux array */
};
 
> >...
> >For omap2 and 3, we just call omap_mux_init once with the mux_pbase
> >as we currently already do. Then for omap4, we call omap_mux_init for
> >each partition.
> >
> >We also need to change omap_mux_read/write to allow specifying the
> >partition base address:
> 
> Then you need somehow a partition information from somewhere.
> I don't see how we can avoid the id at that point? We can store the
> base address instead, but then every mux entries will have it.

That should only need to be stored once for each partition in the
struct omap_mux_partition?
 
> The caller of the omap_mux_read still have to figure out what base
> address it has to use.
> That move the issue to the upper layer, but we still need that.

For the mux.c internal code, we can search through the array
of struct omap_mux_partition and the mux entries in each partition
for signal name or GPIO number.

> >All the other mux interface functions can stay the same, we just need
> >to modify the mux.c code to look for signal names or GPIO number in
> >each registered partition.
> 
> OK, now I think I understand your point... Please ignore the
> previous comments :-)
> 
> You will guess the partition by trying each array at a time, and the
> first one will win.
> 
> That seems pretty good in fact.
> 
> I just have to do it now...

OK cool, let me know if I can help with something.

Tony

  reply	other threads:[~2010-09-27 17:35 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-24  9:15 [RFC 0/5] OMAP4: mux: Add the OMAP4430 ES1 support Benoit Cousson
2010-09-24  9:15 ` [RFC 1/5] OMAP: mux: Add support for control module split in several partitions Benoit Cousson
2010-09-25  0:22   ` Tony Lindgren
2010-09-27 15:46     ` Tony Lindgren
2010-09-27 17:24       ` Cousson, Benoit
2010-09-27 17:36         ` Tony Lindgren [this message]
2010-09-27 20:03           ` Cousson, Benoit
2010-09-27 20:06             ` Tony Lindgren
2010-09-24  9:15 ` [RFC 2/5] OMAP: mux: Make low level function private Benoit Cousson
2010-09-24 23:09   ` Gadiyar, Anand
2010-09-24 23:50     ` Tim Nordell
2010-09-25  0:07       ` Anand Gadiyar
2010-09-25  6:48         ` Tim Nordell
2010-09-24  9:15 ` [RFC 3/5] OMAP4: mux: Add data for OMAP4430 ES1 Benoit Cousson
2010-09-24 23:18   ` Anand Gadiyar
2010-09-27  9:31     ` Cousson, Benoit
2010-09-24  9:15 ` [RFC 4/5] OMAP4: mux: Select CBL package for SDP4430 with ES1 Benoit Cousson
2010-09-24 23:14   ` Anand Gadiyar
2010-09-27  7:24     ` Cousson, Benoit
2010-09-24  9:15 ` [RFC 5/5] OMAP4: mux: Temporary initial SDP4430 mux settings Benoit Cousson
2010-10-18 18:09 ` [RFC 0/5] OMAP4: mux: Add the OMAP4430 ES1 support Menon, Nishanth
2010-10-18 20:51   ` Cousson, Benoit
2010-10-18 20:53     ` Menon, Nishanth
2010-10-18 20:57       ` Cousson, Benoit
2010-10-18 21:08         ` Menon, Nishanth
2010-10-18 23:00     ` Tony Lindgren
2010-10-18 23:12       ` Cousson, Benoit

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=20100927173604.GY4211@atomide.com \
    --to=tony@atomide.com \
    --cc=b-cousson@ti.com \
    --cc=khilman@deeprootsystems.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=paul@pwsan.com \
    --cc=santosh.shilimkar@ti.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.