Skip to contentSkip to conversation

Au1500 Chip Select

DISCUSSION Gilad Rom 2 participants 6 messages Nov 24, 2004 – Nov 25, 2004 MIPS

lore
Share & tools
lore

Gilad Rom

author
#0 lore raw

Hello,

I am trying to implement a simple program which Will be used to communicate with an I/O peripheral Over CS1 (Chip select 1) of the au1500.

Has anyone ever attempted this? Could someone Point me to some sample code, perhaps? I am grepping Through the kernel, yet having trouble locating Chip-select specific code for reference.

Thanks,
Gilad.

#1 lore raw
Quoted 4 lines · Gilad Rom

Hello,

I am trying to implement a simple program which
Will be used to communicate with an I/O peripheral Over CS1 (Chip select 1) of the au1500.

I'm not sure I understand what you're trying to do. The chip select is setup by the boot loader or kernel, and you don't touch it anymore. The CS will get asserted/deasserted based on the addresses you're trying to access.

Quoted 3 lines

Has anyone ever attempted this? Could someone Point me to some sample code, perhaps? I am grepping Through the kernel, yet having trouble locating
Chip-select specific code for reference.

Again, what sort of an example are you looking for? Setting up a chip select on the Au1x is nothing more than writing the appropriate values to the 3 chip select registers. Then you're done.

Pete

author
#2 lore raw

תשובה: Au1500 Chip Select

Well, what I did so far was setup mem_stcfg1/mem_staddr1. What I'm having trouble with is, what values do I need to Set in mem_staddr1, and then, how do I access That memory (mmap? Driver?).

Thanks.
Gilad.

-----הודעה מקורית-----
מאת: [email protected] [mailto:[email protected]] בשם Pete Popov נשלח: Wednesday, November 24, 2004 7:58 PM
אל: Gilad Rom
עותק: [email protected]
נושא: Re: Au1500 Chip Select

Quoted 5 lines · Gilad Rom

Hello,

I am trying to implement a simple program which Will be used to communicate with an I/O peripheral Over CS1 (Chip select 1) of the au1500.

I'm not sure I understand what you're trying to do. The chip select is setup by the boot loader or kernel, and you don't touch it anymore. The CS will get asserted/deasserted based on the addresses you're trying to access.

Quoted 3 lines

Has anyone ever attempted this? Could someone Point me to some sample code, perhaps? I am grepping Through the kernel, yet having trouble locating Chip-select specific code for reference.

Again, what sort of an example are you looking for? Setting up a chip select on the Au1x is nothing more than writing the appropriate values to the 3 chip select registers. Then you're done.

Pete

#3 lore raw

Re: תשובה: Au1500 Chip Select

Quoted 1 line · Gilad Rom

Well, what I did so far was setup mem_stcfg1/mem_staddr1. What I'm having trouble with is, what values do I need to Set in mem_staddr1,

Depends on the device attached to that CS and the physical address you want to assign to it.

Quoted 1 line

and then, how do I access That memory (mmap? Driver?).

Driver would be better.

Pete

Quoted 36 lines

Thanks.
Gilad.

-----הודעה מקורית-----
מאת: [email protected] [mailto:[email protected]] בשם Pete Popov נשלח: Wednesday, November 24, 2004 7:58 PM
אל: Gilad Rom
עותק: [email protected]
נושא: Re: Au1500 Chip Select

Quoted 3 lines · Gilad Rom

Hello,

I am trying to implement a simple program which Will be used to communicate with an I/O peripheral Over CS1 (Chip select 1) of the au1500.

I'm not sure I understand what you're trying to do. The chip select is setup by the boot loader or kernel, and you don't touch it anymore. The CS will get asserted/deasserted based on the addresses you're trying to access.

Quoted 1 line

Has anyone ever attempted this? Could someone Point me to some sample code, perhaps? I am grepping Through the kernel, yet having trouble locating Chip-select specific code for reference.

Again, what sort of an example are you looking for? Setting up a chip select on the Au1x is nothing more than writing the appropriate values to the 3 chip select registers. Then you're done.

Pete

author
#4 lore raw

תשובה: תשובה: Au1500 Chip Select

The device is a simple ALTERA chip, used for testing (for the mean time). I need to make sure that I can access it, and simply read data from it. Here's my question: Let's say I assign 0x1000 as the address portion (CSBA) Of MEM_STADDR1. What address should I mmap after that?
(Using mmap only for initial development, Once I realize all I need To do I'll write a driver).

Thanks,
Gilad.

-----הודעה מקורית-----
מאת: [email protected] [mailto:[email protected]] בשם Pete Popov נשלח: Thursday, November 25, 2004 9:23 AM
אל: Gilad Rom
עותק: [email protected]
נושא: Re: תשובה: Au1500 Chip Select

Quoted 3 lines · Gilad Rom

Well, what I did so far was setup mem_stcfg1/mem_staddr1. What I'm having trouble with is, what values do I need to Set in mem_staddr1,

Depends on the device attached to that CS and the physical address you want to assign to it.

Quoted 2 lines

and then, how do I access
That memory (mmap? Driver?).

Driver would be better.

Pete

Quoted 16 lines

Thanks.
Gilad.

-----הודעה מקורית-----
מאת: [email protected] [mailto:[email protected]] בשם Pete Popov נשלח: Wednesday, November 24, 2004 7:58 PM
אל: Gilad Rom
עותק: [email protected]
נושא: Re: Au1500 Chip Select

Quoted 2 lines · Gilad Rom

Hello,

Quoted 8 lines
Quoted 3 lines

I am trying to implement a simple program which Will be used to communicate with an I/O peripheral Over CS1 (Chip select 1) of the au1500.

I'm not sure I understand what you're trying to do. The chip select is setup by the boot loader or kernel, and you don't touch it anymore. The CS will get asserted/deasserted based on the addresses you're trying

to access.

Quoted 16 lines
Quoted 5 lines

Has anyone ever attempted this? Could someone Point me to some sample code, perhaps? I am grepping Through the kernel, yet having trouble locating Chip-select specific code for reference.

Again, what sort of an example are you looking for? Setting up a chip select on the Au1x is nothing more than writing the appropriate values to the 3 chip select registers. Then you're done.

Pete

#5 lore raw

Re: תשובה: תשובה: Au1500 Chip Select

Quoted 4 lines · Gilad Rom

The device is a simple ALTERA chip, used for testing (for the mean time). I need to make sure that I can access it, and simply read data from it. Here's my question: Let's say I assign 0x1000 as the address portion (CSBA) Of MEM_STADDR1. What address should I mmap after that?

I don't have the spec in front of me. It's whatever 0x1000 in the CS translates to as the physical address.

Pete

Quoted 73 lines

(Using mmap only for initial development, Once I realize all I need To do I'll write a driver).

Thanks,
Gilad.

-----הודעה מקורית-----
מאת: [email protected] [mailto:[email protected]] בשם Pete Popov נשלח: Thursday, November 25, 2004 9:23 AM
אל: Gilad Rom
עותק: [email protected]
נושא: Re: תשובה: Au1500 Chip Select

Quoted 1 line · Gilad Rom

Well, what I did so far was setup mem_stcfg1/mem_staddr1. What I'm having trouble with is, what values do I need to Set in mem_staddr1,

Depends on the device attached to that CS and the physical address you want to assign to it.

Quoted 2 lines

and then, how do I access
That memory (mmap? Driver?).

Driver would be better.

Pete

Quoted 15 lines

Thanks.
Gilad.

-----הודעה מקורית-----
מאת: [email protected] [mailto:[email protected]] בשם Pete Popov נשלח: Wednesday, November 24, 2004 7:58 PM
אל: Gilad Rom
עותק: [email protected]
נושא: Re: Au1500 Chip Select

Gilad Rom wrote:

Quoted 6 lines
Quoted 3 lines

Hello,

I am trying to implement a simple program which Will be used to communicate with an I/O peripheral Over CS1 (Chip select 1) of the au1500.

I'm not sure I understand what you're trying to do. The chip select is setup by the boot loader or kernel, and you don't touch it anymore. The CS will get asserted/deasserted based on the addresses you're trying

to access.

Quoted 11 lines
Quoted 2 lines

Has anyone ever attempted this? Could someone Point me to some sample code, perhaps? I am grepping Through the kernel, yet having trouble locating Chip-select specific code for reference.

Again, what sort of an example are you looking for? Setting up a chip select on the Au1x is nothing more than writing the appropriate values to the 3 chip select registers. Then you're done.

Pete