<div>Hi,</div>
<div>&nbsp;</div>
<div>You could call <strong>io_block_mapping</strong> function from your setup.c file that will add the entry into MMU.</div>
<div>&nbsp;</div>
<div>regards</div>
<div>Bhupi</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 7/11/07, <b class="gmail_sendername">Nicolas Mederle</b> &lt;<a href="mailto:mederle_nicolas@yahoo.fr">mederle_nicolas@yahoo.fr</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>&nbsp;&nbsp; I am porting linux on a custom board equipped with a PPC750, and I<br>will like to have some advices on the MMU. I used the powerpc arch, and
<br>I built my device tree.<br>&nbsp;&nbsp; I will like to know in which files we can configure the<br>authorizations access for the I/O registers. When I use the function<br>md_ppc.progress, I have a data access fault. I modified the head. S
<br>files, for add the BAT config. But I think that it is not correct, and<br>that it is possible to do it elsewhere (platform_init?). Moreover the<br>kernel modify the MMU config, it removes the BATs, and configures the<br>
Registers Segments. So, must I remake the configuration? Or is it<br>possible to indicate, at the beginning, which space is reserved for I/O?<br>&nbsp;&nbsp; I studied several patch (sandpoint, PrPMC2800) but none configures<br>really the MMU for I/O registers. In the same way, I read several books,
<br>but I am not able to have information that I seek, therefore I am really<br>blocked. I warmly thank you for the assistance which you will be able to<br>bring to me.<br><br>&nbsp;&nbsp; Mapping :&nbsp;&nbsp;&nbsp;&nbsp; 0x0000 0000&nbsp;&nbsp;&nbsp;&nbsp;-&gt;&nbsp;&nbsp;0x0FFF FFFF&nbsp;&nbsp; :&nbsp;&nbsp; RAM
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x2000 0000&nbsp;&nbsp; -&gt;&nbsp;&nbsp; 0x201F FFFF&nbsp;&nbsp; :&nbsp;&nbsp; ASIC (<br>UART, DMA, GPIO, PIC...)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x8000 0000&nbsp;&nbsp; -&gt;&nbsp;&nbsp; 0x8FFF FFFF&nbsp;&nbsp; :&nbsp;&nbsp; PCI<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0xF000 0000&nbsp;&nbsp; -&gt;&nbsp;&nbsp; 0xFFFF FFFF&nbsp;&nbsp; :&nbsp;&nbsp; Flash
<br>&nbsp;&nbsp; The kernel is load at 0x0, an the system is a Run In Memory.<br>Currently, I don&#39;t use the flash.<br><br><br>Best regards,<br>Nicolas MEDERLE<br><br>--<br>Cordialement,<br><br>Nicolas MEDERLE.<br><br>_______________________________________________
<br>Linuxppc-embedded mailing list<br><a href="mailto:Linuxppc-embedded@ozlabs.org">Linuxppc-embedded@ozlabs.org</a><br><a href="https://ozlabs.org/mailman/listinfo/linuxppc-embedded">https://ozlabs.org/mailman/listinfo/linuxppc-embedded
</a><br></blockquote></div><br>