From: Felipe Balbi <me@felipebalbi.com>
To: "Shilimkar, Santosh" <santosh.shilimkar@ti.com>
Cc: "me@felipebalbi.com" <me@felipebalbi.com>,
"Krishnamoorthy, Balaji T" <balajitk@ti.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"tony@atomide.com" <tony@atomide.com>,
"khilman@deeprootsystems.com" <khilman@deeprootsystems.com>,
"david-b@pacbell.net" <david-b@pacbell.net>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"linux-i2c@vger.kernel.org" <linux-i2c@vger.kernel.org>,
"sameo@openedhand.com" <sameo@openedhand.com>,
"wim@iguana.be" <wim@iguana.be>,
"timo.t.kokkonen@nokia.com" <timo.t.kokkonen@nokia.com>,
"ben-linux@fluff.org" <ben-linux@fluff.org>,
"lrg@slimlogic.co.uk" <lrg@slimlogic.co.uk>,
"broonie@opensource.wolfsonmicro.com"
<broonie@opensource.wolfsonmicro.com>,
"Nayak, Rajendra" <rnayak@ti.com>
Subject: Re: [RFC][PATCH 1/4] OMAP4: PMIC: Add support for twl6030 irq framework
Date: Tue, 21 Jul 2009 08:30:21 +0300 [thread overview]
Message-ID: <20090721053021.GB13013@gandalf> (raw)
In-Reply-To: <EAF47CD23C76F840A9E7FCE10091EFAB02B595037E@dbde02.ent.ti.com>
hi,
please send text mails and break your lines at 80 characters!
On Tue, Jul 21, 2009 at 10:45:04AM +0530, Shilimkar, Santosh wrote:
> Here is summary of Major difference between Triton(TWL4030) and
> Phoenix(TWL6030_ chips are:
> -GPIO, Keypad is not present in Phoenix
> -I2C Chips addresses of modules like RTC, BCI, ADC, USB, PMC Master/Slave
> have changed. Base address of these module register is also changed.
> -PIH and SIH, module interrupt status registers will be replaced by PIH
> (INT_STS_A, INT_STS_B and INT_STS_C) and module interrupt status registers
> -MADC to GPADC in Phoenix, 17 channels supported
> GPADC in Phoenix supports Realtime, Asynchronous SW request.
> -RTC register offsets have changed. Addition/removal of LDO/SMPS Voltage
> Regulators
all of this can be addressed without ifdeferry around the code. Just add
proper abstraction via platform_data, and that 'features' you see in
twl4030-core.c
> 2. Usage of compile time macros like "CONFIG_TWL4030" and CONFIG_TWL6030"
> should be avoided and you think it would break multi-omap.
>
> If we just go by definition " Multi-OMAP" is for different OMAP IC's. TWL4030
> and TWL6030 are external companion IC's to OMAP.
what will happen if you build on kernel image for booting omap3 and
omap4 ???
> Any ways, these compile time switches can be avoided if we make runtime
> provision for these TWL IC's like.
> "is_twl4030(), is_twl6030" etc like "cpu_is_24xx(),cpu_is_44xx()" etc.
or you just use the 'features' in the twl4030-core.c and based on that
pass a flag to the children notifying it's triton/gaia/reno/phoenix.
> Obviously this asks to make the driver register map (which is different in
> case of TWL6030 w.r.t TWL4030) to be held in some arrays and select the
> appropriate one run-time. But it's doable if it helps.
I'd say that's better than ifdeferry.
> The patch series was made under _assumption_ that either TWL4030 or TWL6030
> would be used. I am not sure whether there will boards where both will
> co-exist.
not in the same board, but think of building one kernel image for both
omap3 and omap4. Nobody will do that in real life for real products, but
it's really useful when it goes about testing code on several boards.
You don't have to spend time building several different kernel images,
you build only one that boots on all.
--
balbi
prev parent reply other threads:[~2009-07-21 5:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-20 13:36 [RFC][PATCH 1/4] OMAP4: PMIC: Add support for twl6030 irq framework balajitk
2009-07-20 19:07 ` Felipe Balbi
2009-07-21 5:15 ` Shilimkar, Santosh
2009-07-21 5:30 ` Felipe Balbi [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=20090721053021.GB13013@gandalf \
--to=me@felipebalbi.com \
--cc=balajitk@ti.com \
--cc=ben-linux@fluff.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=david-b@pacbell.net \
--cc=khilman@deeprootsystems.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=lrg@slimlogic.co.uk \
--cc=rnayak@ti.com \
--cc=sameo@openedhand.com \
--cc=santosh.shilimkar@ti.com \
--cc=timo.t.kokkonen@nokia.com \
--cc=tony@atomide.com \
--cc=wim@iguana.be \
/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;
as well as URLs for NNTP newsgroup(s).