For users of the Atmel AT91SAM7 and AT91SAM9 ARM CPU chips. Atmel has taken a new direction by combining on chip flash and ram with the ARM CPU on a single die. This provides low cost devices for small systems using the ARM CPU.
This group is to exchange information to help users get started and learn how to use the devices.
Virtual address of NCS2 - James Li - Feb 24 14:04:43 2009
Hi All,
I am working on at91sam9261ek board and I need your help on finding the
virtual address of NCS2.
What I am doing now is to write a display driver for 240x64 dots LCD
display. The old LCD coming with the board is disabled and DM9000 is
also disabled since the new LCD is connected to the EBI with NCS2 as the
/cs signal. I finished writing the driver in u-boot without problem. I
can display what I want to. Now I am trying to add the driver in the
kernel. But I couldn't figure out the virtual address of NCS2 which
physical address is 0x30000000.
Could anyone give me a hint?
Any advice is appreciated.
Thanks in advance,
James

(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )
Re: Virtual address of NCS2 - billy_embedded - Feb 25 3:40:27 2009
hi,James.
I want to know that what's the OS you are developing.
if you use Windows Ce ,maybe I know this problem.
but I know nothing about Linux.
Billy.

(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )
Re: Virtual address of NCS2 - Virupax SS - Feb 25 12:23:27 2009
James
AS far as i know u have to use the ioremap() or phy_to_virtu() function
in the kernel which will take physical address and returns virtual
address of the physical address.
regards
Virupax
"James Li"
Sent by: A...@yahoogroups.com
02/25/2009 12:21 AM
Please respond to
A...@yahoogroups.com
To
cc
Subject
[AT91SAM] Virtual address of NCS2
Hi All,
I am working on at91sam9261ek board and I need your help on finding the
virtual address of NCS2.
What I am doing now is to write a display driver for 240x64 dots LCD
display. The old LCD coming with the board is disabled and DM9000 is also
disabled since the new LCD is connected to the EBI with NCS2 as the /cs
signal. I finished writing the driver in u-boot without problem. I can
display what I want to. Now I am trying to add the driver in the kernel.
But I couldn’t figure out the virtual address of NCS2 which physical
address is 0x30000000.
Could anyone give me a hint?
Any advice is appreciated.
Thanks in advance,
James
______________________________
controlSUITE software. Comprehensive. Intuitive. Optimized.
Real-world software for real-time control. Details Here!

(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )RE: Virtual address of NCS2 - James Li - Feb 25 13:08:50 2009
Thank you very much Virupax.
The following was what I did and it worked:
1. register a platform_device passing the physical address
2. In the driver, call request_mem_region
3. call ioremap()
4. access virtual address
5. call release_mem_region when done
Check /proc/iomem to see if physical address range is there. Otherwise
request_mem_region will fail.
Thanks again for your help,
Regards,
James
________________________________
From: A...@yahoogroups.com [mailto:A...@yahoogroups.com] On Behalf
Of Virupax SS
Sent: Wednesday, February 25, 2009 1:31 AM
To: A...@yahoogroups.com
Subject: Re: [AT91SAM] Virtual address of NCS2
James
AS far as i know u have to use the ioremap() or phy_to_virtu()
function in the kernel which will take physical address and returns
virtual address of the physical address.
regards
Virupax
"James Li"
Sent by: A...@yahoogroups.com
02/25/2009 12:21 AM
Please respond to
A...@yahoogroups.com
To
cc
Subject
[AT91SAM] Virtual address of NCS2
Hi All,
I am working on at91sam9261ek board and I need your help on finding the
virtual address of NCS2.
What I am doing now is to write a display driver for 240x64 dots LCD
display. The old LCD coming with the board is disabled and DM9000 is
also disabled since the new LCD is connected to the EBI with NCS2 as the
/cs signal. I finished writing the driver in u-boot without problem. I
can display what I want to. Now I am trying to add the driver in the
kernel. But I couldn't figure out the virtual address of NCS2 which
physical address is 0x30000000.
Could anyone give me a hint?
Any advice is appreciated.
Thanks in advance,
James

(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )