All of lore.kernel.org
 help / color / mirror / Atom feed
* Au1500 Chip Select
@ 2004-11-24 14:32 ` Gilad Rom
  0 siblings, 0 replies; 9+ messages in thread
From: Gilad Rom @ 2004-11-24 14:32 UTC (permalink / raw)
  To: linux-mips

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.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Au1500 Chip Select
@ 2004-11-24 14:32 ` Gilad Rom
  0 siblings, 0 replies; 9+ messages in thread
From: Gilad Rom @ 2004-11-24 14:32 UTC (permalink / raw)
  To: linux-mips

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.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Au1500 Chip Select
  2004-11-24 14:32 ` Gilad Rom
  (?)
@ 2004-11-24 17:57 ` Pete Popov
  2004-11-25  7:12     ` Gilad Rom
  -1 siblings, 1 reply; 9+ messages in thread
From: Pete Popov @ 2004-11-24 17:57 UTC (permalink / raw)
  To: Gilad Rom; +Cc: linux-mips

Gilad Rom wrote:

> 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.

> 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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* תשובה: Au1500 Chip Select
@ 2004-11-25  7:12     ` Gilad Rom
  0 siblings, 0 replies; 9+ messages in thread
From: Gilad Rom @ 2004-11-25  7:12 UTC (permalink / raw)
  To: 'Pete Popov'; +Cc: linux-mips

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.

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

Gilad Rom wrote:

> 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.

> 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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* תשובה: Au1500 Chip Select
@ 2004-11-25  7:12     ` Gilad Rom
  0 siblings, 0 replies; 9+ messages in thread
From: Gilad Rom @ 2004-11-25  7:12 UTC (permalink / raw)
  To: 'Pete Popov'; +Cc: linux-mips

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.

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

Gilad Rom wrote:

> 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.

> 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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: תשובה: Au1500 Chip Select
  2004-11-25  7:12     ` Gilad Rom
  (?)
@ 2004-11-25  7:23     ` Pete Popov
  2004-11-25  7:32         ` Gilad Rom
  -1 siblings, 1 reply; 9+ messages in thread
From: Pete Popov @ 2004-11-25  7:23 UTC (permalink / raw)
  To: Gilad Rom; +Cc: linux-mips

Gilad Rom wrote:
> 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.

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

Driver would be better.

Pete

> Thanks.
> Gilad.
> 
> -----הודעה מקורית-----
> מאת: linux-mips-bounce@linux-mips.org
> [mailto:linux-mips-bounce@linux-mips.org] בשם Pete Popov
> נשלח: Wednesday, November 24, 2004 7:58 PM
> אל: Gilad Rom
> עותק: linux-mips@linux-mips.org
> נושא: Re: Au1500 Chip Select
> 
> Gilad Rom wrote:
> 
> 
>>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.
> 
> 
>>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
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* תשובה: תשובה: Au1500 Chip Select
@ 2004-11-25  7:32         ` Gilad Rom
  0 siblings, 0 replies; 9+ messages in thread
From: Gilad Rom @ 2004-11-25  7:32 UTC (permalink / raw)
  To: 'Pete Popov'; +Cc: linux-mips

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.

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

Gilad Rom wrote:
> 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.

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

Driver would be better.

Pete

> Thanks.
> Gilad.
> 
> -----הודעה מקורית-----
> מאת: linux-mips-bounce@linux-mips.org
> [mailto:linux-mips-bounce@linux-mips.org] בשם Pete Popov
> נשלח: Wednesday, November 24, 2004 7:58 PM
> אל: Gilad Rom
> עותק: linux-mips@linux-mips.org
> נושא: Re: Au1500 Chip Select
> 
> Gilad Rom wrote:
> 
> 
>>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.
> 
> 
>>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
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* תשובה: תשובה: Au1500 Chip Select
@ 2004-11-25  7:32         ` Gilad Rom
  0 siblings, 0 replies; 9+ messages in thread
From: Gilad Rom @ 2004-11-25  7:32 UTC (permalink / raw)
  To: 'Pete Popov'; +Cc: linux-mips

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.

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

Gilad Rom wrote:
> 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.

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

Driver would be better.

Pete

> Thanks.
> Gilad.
> 
> -----הודעה מקורית-----
> מאת: linux-mips-bounce@linux-mips.org
> [mailto:linux-mips-bounce@linux-mips.org] בשם Pete Popov
> נשלח: Wednesday, November 24, 2004 7:58 PM
> אל: Gilad Rom
> עותק: linux-mips@linux-mips.org
> נושא: Re: Au1500 Chip Select
> 
> Gilad Rom wrote:
> 
> 
>>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.
> 
> 
>>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
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: תשובה: תשובה: Au1500 Chip Select
  2004-11-25  7:32         ` Gilad Rom
  (?)
@ 2004-11-25  7:54         ` Pete Popov
  -1 siblings, 0 replies; 9+ messages in thread
From: Pete Popov @ 2004-11-25  7:54 UTC (permalink / raw)
  To: Gilad Rom; +Cc: linux-mips

Gilad Rom wrote:
> 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

> (Using mmap only for initial development, Once I realize all I need
> To do I'll write a driver).
> 
> Thanks,
> Gilad.
> 
> -----הודעה מקורית-----
> מאת: linux-mips-bounce@linux-mips.org
> [mailto:linux-mips-bounce@linux-mips.org] בשם Pete Popov
> נשלח: Thursday, November 25, 2004 9:23 AM
> אל: Gilad Rom
> עותק: linux-mips@linux-mips.org
> נושא: Re: תשובה: Au1500 Chip Select
> 
> Gilad Rom wrote:
> 
>>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.
> 
> 
>>and then, how do I access
>>That memory (mmap? Driver?).
> 
> 
> Driver would be better.
> 
> Pete
> 
> 
>>Thanks.
>>Gilad.
>>
>>-----הודעה מקורית-----
>>מאת: linux-mips-bounce@linux-mips.org
>>[mailto:linux-mips-bounce@linux-mips.org] בשם Pete Popov
>>נשלח: Wednesday, November 24, 2004 7:58 PM
>>אל: Gilad Rom
>>עותק: linux-mips@linux-mips.org
>>נושא: Re: Au1500 Chip Select
>>
>>Gilad Rom wrote:
>>
>>
>>
>>>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.
> 
>>
>>>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
>>
>>
>>
>>
> 
> 
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-11-25  7:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-24 14:32 Au1500 Chip Select Gilad Rom
2004-11-24 14:32 ` Gilad Rom
2004-11-24 17:57 ` Pete Popov
2004-11-25  7:12   ` תשובה: " Gilad Rom
2004-11-25  7:12     ` Gilad Rom
2004-11-25  7:23     ` Pete Popov
2004-11-25  7:32       ` תשובה: " Gilad Rom
2004-11-25  7:32         ` Gilad Rom
2004-11-25  7:54         ` Pete Popov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.