From: "Hemanth V" <hemanthv@ti.com>
To: "Shilimkar, Santosh" <santosh.shilimkar@ti.com>,
"Pandita, Vikram" <vikram.pandita@ti.com>,
tony@atomide.com, khilman@deeprootsystems.com
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH 1/5] ARM: OMAP2/3/4: Split OMAP2_IO_ADDRESS to L3 and L4
Date: Mon, 24 Aug 2009 11:39:57 +0530 [thread overview]
Message-ID: <002c01ca2481$82c30340$LocalHost@wipultra793> (raw)
In-Reply-To: EAF47CD23C76F840A9E7FCE10091EFAB02BA29C290@dbde02.ent.ti.com
----- Original Message -----
From: "Shilimkar, Santosh" <santosh.shilimkar@ti.com>
>> ---
>> #define L3_IO_OFFSET 0x90000000
>> #define __L3_IO_ADDRESS(pa) ((pa) + L3_IO_OFFSET)/* Works for L3 */
>> #define __OMAP2_L3_IO_ADDRESS(pa) ((pa) + L3_IO_OFFSET)/* Works for L3
>> */
>> #define l3_io_v2p(va) ((va) - L3_IO_OFFSET)/* Works for L3 */
>>
>> #define IO_OFFSET 0xb2000000
>> #define __IO_ADDRESS(pa) ((pa) + IO_OFFSET)/* Works for L4 */
>> #define __OMAP2_IO_ADDRESS(pa) ((pa) + IO_OFFSET)/* Works for L4 */
>> #define io_v2p(va) ((va) - IO_OFFSET)/* Works for L4*/
>> ---
>>
>> This way you don't have to introduce new L4 macro at all => much lesser
>> code impact.
> Initially I thought about this but later preferred to split it. The only
> change what you are suggesting is instead of calling
> "OMAP2_L4_IO_ADDRESS", we keep >that as "OMAP2_IO_ADDRESS". But the idea
> was to differentiate between various IO accesses because at some point of
> time all these has to be removed in
> favor of ioremap() + read*()/write*() one by one and that time this would
> be beneficial.
Does that mean all drivers, including the ones in other trees like camera,
dss etc need to be modified if they are using IO_ADDRESS macros. The idea of
having a macro as below was to reduce this impact.
#define __IO_ADDRESS(pa) ((pa) >= L3_34XX_PHYS ? ((pa) + L3_IO_OFFSET) :
((pa) + IO_OFFSET))
next prev parent reply other threads:[~2009-08-24 6:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-23 13:34 [PATCH 1/5] ARM: OMAP2/3/4: Split OMAP2_IO_ADDRESS to L3 and L4 Santosh Shilimkar
2009-08-23 13:34 ` [PATCH 2/5] ARM: OMAP2/3/4: Remap L3, L4 to get more kernel io address space Santosh Shilimkar
2009-08-23 13:34 ` [PATCH 3/5] ARM: OMAP2/3/4: Move SRAM map to claim more io space Santosh Shilimkar
2009-08-23 13:34 ` [PATCH 4/5] ARM: OMAP2/3/4: Fix DEBUG_LL UART io address Santosh Shilimkar
2009-08-23 13:34 ` [PATCH 5/5] ARM: OMAP2/3/4: Add OMAP4 L3 and L4 peripherals Santosh Shilimkar
2009-10-07 22:23 ` [APPLIED] " Tony Lindgren
2009-10-07 22:23 ` [APPLIED] [PATCH 4/5] ARM: OMAP2/3/4: Fix DEBUG_LL UART io address Tony Lindgren
2009-10-07 22:22 ` [APPLIED] [PATCH 3/5] ARM: OMAP2/3/4: Move SRAM map to claim more io space Tony Lindgren
2009-08-23 15:02 ` [PATCH 1/5] ARM: OMAP2/3/4: Split OMAP2_IO_ADDRESS to L3 and L4 Pandita, Vikram
2009-08-24 4:17 ` Shilimkar, Santosh
2009-08-24 6:09 ` Hemanth V [this message]
2009-08-24 6:13 ` Shilimkar, Santosh
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='002c01ca2481$82c30340$LocalHost@wipultra793' \
--to=hemanthv@ti.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=santosh.shilimkar@ti.com \
--cc=tony@atomide.com \
--cc=vikram.pandita@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.