i.MX25: Define address mapping macros
Subsystems (3)
PATCH 1/1 i.MX25: Define address mapping macros
Add macros for mapping physical addresses of i.MX25 registers to virtual addresses
--- arch/arm/plat-mxc/include/mach/mx25.h | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-)
arch/arm/plat-mxc/include/mach/mx25.h +13 -0
@@ -27,6 +27,19 @@ IMX_IO_ADDRESS(x, MX25_AIPS2) ?: \ IMX_IO_ADDRESS(x, MX25_AVIC)) +/* +* define the address mapping macros: in physical address order +*/ + +#define MX25_AIPS1_IO_ADDRESS (x) \ + (((x) - MX25_AIPS1_BASE_ADDR) + MX25_AIPS1_BASE_ADDR_VIRT) + +#define MX25_AIPS2_IO_ADDRESS (x) \ + (((x) - MX25_AIPS2_BASE_ADDR) + MX25_AIPS2_BASE_ADDR_VIRT) + +#define MX25_AVIC_IO_ADDRESS (x) \ + (((x) - MX25_AVIC_BASE_ADDR) + MX25_AVIC_BASE_ADDR_VIRT) +#define MX25_UART1_BASE_ADDR 0x43f90000#define MX25_UART2_BASE_ADDR 0x43f94000
Signature · 1 line
1.6.5
PATCH 1/1 i.MX25: Define address mapping macros
Hello Matthias,
Quoted 2 lines · Matthias Kaehlcke
Add macros for mapping physical addresses of i.MX25 registers to virtual addresses
Where do you need them? MX25_IO_ADDRESS isn't enough?
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH 1/1 i.MX25: Define address mapping macros
Hi Uwe,
El Thu, Mar 25, 2010 at 10:36:17AM +0100 Uwe Kleine-K?nig ha dit:
Quoted 6 lines
Hello Matthias,
Quoted 2 lines · Matthias Kaehlcke
Add macros for mapping physical addresses of i.MX25 registers to virtual addresses
Where do you need them?
MX25_IO_ADDRESSisn't enough?
MX25_AIPS1_IO_ADDRESS is used in arch/arm/plat-mxc/include/mach/debug-macro.S:
#define UART_VADDR MX25_AIPS1_IO_ADDRESS(UART1_BASE_ADDR)
i added the other two for completeness
Signature · 10 lines
Matthias Kaehlcke
Embedded Linux Developer
Barcelona
We build too many walls and not enough bridges
(Isaac Newton)
.''`.
using free software / Debian GNU/Linux | http://debian.org : :' :
`. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4 `-PATCH 1/1 i.MX25: Define address mapping macros
Hi Matthias,
Quoted 5 lines · Matthias Kaehlcke
El Thu, Mar 25, 2010 at 10:36:17AM +0100 Uwe Kleine-K?nig ha dit:
Quoted 3 lines · Matthias Kaehlcke
Quoted 2 lines
Add macros for mapping physical addresses of i.MX25 registers to virtual addresses
Quoted 7 lines
Quoted 1 line
Where do you need them?
MX25_IO_ADDRESSisn't enough?
MX25_AIPS1_IO_ADDRESSis used inarch/arm/plat-mxc/include/mach/debug-macro.S:#define
UART_VADDRMX25_AIPS1_IO_ADDRESS(UART1_BASE_ADDR)i added the other two for completeness
See http://thread.gmane.org/gmane.linux.ports.arm.kernel/75691 for a different approach, and discussion of the general problem.
baruch
Signature · 3 lines
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -