Linux question

From: <hidden>
Date: 2006-01-11 19:12:43

<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><div>I am trying to write to the sdram but am not 100% sure if I can directly write to it with out doing a ioremap or not.&nbsp; I am working with a xilinx ml403 board and have a program we are writing that accepts a pointer to the sdram address that contains the data the program needs.&nbsp; Do I need to do ioremap(xilinx base address, size) and then just use that address pointer I received to pull the data out?</div><DIV>&nbsp;</DIV><DIV>Or do I need to manipulate the address I receive I beleive the address I will receive will be the physical sdram address linux sees.&nbsp; But not sure if i need to set anything else to do read and writes to it.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Any help or if anyone has an example code of reading and writing to an sdram I would greatly appreciate it.</DIV><DIV>&nbsp;</DIV><DIV>Attached is the code I wrote using ioremap that seems to work but it seems to be that I might just be writing to the hardware registers in the xilinx ddr controller.</DIV><DIV>&nbsp;</DIV><DIV>All the io to my custom hardware was tested and works fine with the ioremap function in the cpp file attached but again I feel I am writing to the hardware registers in the ddr controller and not the actual sdram.&nbsp; But I may be wrong just want to verify. </DIV><DIV>&nbsp;</DIV><DIV>Thanks<BR>Brett</DIV></FONT>

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help