From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 25 Nov 2004 07:24:05 +0000 (GMT) Received: from pimout3-ext.prodigy.net ([IPv6:::ffff:207.115.63.102]:1740 "EHLO pimout3-ext.prodigy.net") by linux-mips.org with ESMTP id ; Thu, 25 Nov 2004 07:24:00 +0000 Received: from 127.0.0.1 (adsl-68-124-224-225.dsl.snfc21.pacbell.net [68.124.224.225]) by pimout3-ext.prodigy.net (8.12.10 milter /8.12.10) with ESMTP id iAP7Nmmt041368 for ; Thu, 25 Nov 2004 02:23:53 -0500 Received: from [63.194.214.47] by 127.0.0.1 (ArGoSoft Mail Server Pro for WinNT/2000/XP, Version 1.8 (1.8.6.7)); Wed, 24 Nov 2004 23:23:42 -0800 Message-ID: <41A5886F.3000101@embeddedalley.com> Date: Wed, 24 Nov 2004 23:23:27 -0800 From: Pete Popov User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gilad Rom CC: linux-mips@linux-mips.org Subject: Re: =?windows-1255?Q?=FA=F9=E5=E1=E4=3A_Au1500_Chip_Select?= References: <20041125071225.ADA1AEB2D0@mail.romat.com> In-Reply-To: <20041125071225.ADA1AEB2D0@mail.romat.com> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=windows-1255; format=flowed Content-Transfer-Encoding: 8bit X-ArGoMail-Authenticated: ppopov@embeddedalley.com Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 6462 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ppopov@embeddedalley.com Precedence: bulk X-list: 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 > > > >