Good day Martin,
Just as a test, why don't you map the space to all areas (Supervisor/User,
etc) and see if you have the same issue?...i.e. CMSR2 = $00000001
Cheers,
Sam
----- Original Message -----
From: "Martin Filtenborg" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, March 07, 2007 1:01 PM
Subject: [uClinux-dev] uCdimm 5282 - missing CS on IO
Hi all :)
I'm doing a driver-thing on an uCdimm5282+uCevolution combo. It's supposed
to access a 16-bit memory-mapped device via CS2, which is setup like this:
...
if(check_mem_region(0x20010000,0x00010000))
{
printk(KERN_ERR " - Dev_mem occupied, aborting!\n");
return -EBUSY;
}
request_mem_region(0x20010000,0x00010000,"Dev_mem");
printk (KERN_ERR "Dev: Setup CS\n");
CSAR2 = 0x2001; // Setup memory BA
CSMR2 = 0x00000037; // BAM=0, AM=0, SD=0, V=1
CSCR2 = 0x0180; // WS=0000, AA=1, PS=10(16 bit), BSTR=0, BSTW=0
...
In my dev_read() - assigned to the read-entry in file_operations - i then
do
...
temp = inw(0x20010000); // Grab actual sample
...
but nothing happens on the CS2-pin.
I can't figure out why...
The 5282 runs in master mode (the uCdimm contains off-chip memory), thus
chipselects are active - not GPIO
Being a kernel module, my code runs in supervisor mode
For CSMR2:
BAM = 0, meaning a 64K address range.
SD = 0, meaning address range is available as supervisor mode data
V = 1, meaning CS is valid/active
For CSCR2:
AA = 1, to allow function when external device is absent (early
development)
PS1-PS0 = 10 to get me a 16-bit-port
So - what am i missing? What does it take to get the CS2 going?
Thanks in advance,
Martin Filtenborg
-----------
Reference info:
Arcturus Networks uCdimm 5282 + uCevolution eval-board.
A fast 16-bit FIFO attached to CS2.
Stock uClinux 2.4.24 and m68k-elf-tools:
- uClinux-2.4.x-2004-11-19.tar.gz
- uClinux-dist-2004-05-28.tar.gz
as found on the accompanying CD.
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev