LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 10-20-2011, 09:39 PM   #1
skorek
LQ Newbie
 
Registered: Feb 2011
Posts: 5

Rep: Reputation: 0
Memory mapped devices


Hi,
I am working on the board support package for a board based on Freescale SoC (P4080). The reference board has an enhanced local bus with a flash device and FPGA attached to it. Both of these devices are mapped into the memory when the board boots and the flash memory and FPGA's registers can be accessed from u-boot by reading memory. The new board will have additional device (FPGA) attached to that bus and I need to access that device.
My question is how do I control how the new FPGA's registers are mapped into the memory address space and at what address. How is that mapping controlled in u-boot or in the kernel?

I know that this is a very fundamental question. I would appreciate any pointers to get me in the right direction or to the right resources. Can you recommend any books that cover similar topics?

Thank you in advance.
 
Old 10-21-2011, 02:37 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
Is the register in IO or memory mapped space for new FPGA?
 
Old 10-24-2011, 07:59 AM   #3
skorek
LQ Newbie
 
Registered: Feb 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Yes, the FPGA's datasheet lists registers that are mapped.
I am not sure where do I specify the base address at which the FPGA's is is mapped.
So far, I think I have to create a device for FPGA in the Flat Device Tree and the kernel learns the base address from there. This means that the actual mapping has to take place before kernel is booted, so somewhere in u-boot maybe?
 
Old 10-24-2011, 02:27 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
About Flat Device Tree, communicating between U-boot and kernel, you can reference to following link, http://my.safaribooksonline.com/book...s/ch07lev1sec5
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Use /proc/[0-9]*/maps to see what's mapped, what's shared in memory waltinator Linux - Security 1 07-21-2010 09:12 AM
memory mapped i/o and i/o mapped i/o shilpa rangappa General 1 12-14-2009 10:27 PM
Network device Memory mapped or Port mapped ?? Bignon Linux - Hardware 0 10-20-2009 08:36 AM
fread and fwrite errors with mapped memory justaguy_75ae Programming 2 09-08-2009 01:44 PM
Memory Mapped file IO problems legogt Programming 0 08-01-2003 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 04:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration