RE: [PATCH4/4] [POWERPC] Fix cpm_uart driver

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Scott Wood <scottwood@...>, Dan Malek <dan@...>
Cc: <linuxppc-embedded@...>, <linux-kernel@...>
Date: Wednesday, September 26, 2007 - 4:32 pm

> From: Scott Wood

arch/ppc maps the immr area 1:1 into kernel memory, so ioremap and
physical are the same.
See arch/ppc/syslib/m8260_setup.c, line 208 (function m8260_map_io)

Here quoted:
arch/ppc/syslib/m8260_setup.c
196 /* Map the IMMR, plus anything else we can cover
197  * in that upper space according to the memory controller
198  * chip select mapping.  Grab another bunch of space
199  * below that for stuff we can't cover in the upper.
200  */
201 static void __init
202 m8260_map_io(void)
203 {
204         uint addr;
205
206         /* Map IMMR region to a 256MB BAT */
207         addr = (cpm2_immr != NULL) ? (uint)cpm2_immr : CPM_MAP_ADDR;
208         io_block_mapping(addr, addr, 0x10000000, _PAGE_IO);
209
210         /* Map I/O region to a 256MB BAT */
211         io_block_mapping(IO_VIRT_ADDR, IO_PHYS_ADDR, 0x10000000,
_PAGE_IO);
212 }
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH4/4] [POWERPC] Fix cpm_uart driver, Jochen Friedrich, (Sun Sep 23, 4:17 pm)
Re: [PATCH4/4] [POWERPC] Fix cpm_uart driver, Scott Wood, (Mon Sep 24, 11:57 am)
Re: [PATCH4/4] [POWERPC] Fix cpm_uart driver, Jochen Friedrich, (Mon Sep 24, 1:06 pm)
Re: [PATCH4/4] [POWERPC] Fix cpm_uart driver, Scott Wood, (Mon Sep 24, 2:22 pm)
Re: [PATCH4/4] [POWERPC] Fix cpm_uart driver, Dan Malek, (Mon Sep 24, 3:16 pm)
Re: [PATCH4/4] [POWERPC] Fix cpm_uart driver, Scott Wood, (Mon Sep 24, 3:29 pm)
RE: [PATCH4/4] [POWERPC] Fix cpm_uart driver, Rune Torgersen, (Wed Sep 26, 4:32 pm)
Re: [PATCH4/4] [POWERPC] Fix cpm_uart driver, Scott Wood, (Wed Sep 26, 4:41 pm)
Re: [PATCH4/4] [POWERPC] Fix cpm_uart driver, Jochen Friedrich, (Tue Sep 25, 8:09 am)
Re: [PATCH4/4] [POWERPC] Fix cpm_uart driver, Scott Wood, (Tue Sep 25, 11:11 am)