linux-mips
[Top] [All Lists]

תשובה: Au1500 Chip Select

To: "'Pete Popov'" <ppopov@embeddedalley.com>
Subject: תשובה: Au1500 Chip Select
From: "Gilad Rom" <gilad@romat.com>
Date: Thu, 25 Nov 2004 09:12:44 +0200
Cc: <linux-mips@linux-mips.org>
In-reply-to: <41A4CB92.7070403@embeddedalley.com>
Organization: Romat Telecom
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Thread-index: AcTSTzsocQOiwDNCTCaq1/6finhmfQAboTng
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



<Prev in Thread] Current Thread [Next in Thread>