From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 25 Nov 2004 07:12:48 +0000 (GMT) Received: from mail.romat.com ([IPv6:::ffff:212.143.245.3]:30986 "EHLO mail.romat.com") by linux-mips.org with ESMTP id convert rfc822-to-8bit; Thu, 25 Nov 2004 07:12:39 +0000 Received: from localhost (localhost.lan [127.0.0.1]) by mail.romat.com (Postfix) with ESMTP id ECB5AEB2D9; Thu, 25 Nov 2004 09:12:32 +0200 (IST) Received: from mail.romat.com ([127.0.0.1]) by localhost (mail.romat.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32991-06; Thu, 25 Nov 2004 09:12:25 +0200 (IST) Received: from gilad (unknown [192.168.1.167]) by mail.romat.com (Postfix) with ESMTP id ADA1AEB2D0; Thu, 25 Nov 2004 09:12:25 +0200 (IST) From: "Gilad Rom" To: "'Pete Popov'" Cc: Subject: =?windows-1255?B?+vnl4eQ6IEF1MTUwMCBDaGlwIFNlbGVjdA==?= Date: Thu, 25 Nov 2004 09:12:44 +0200 Organization: Romat Telecom MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1255" Content-Transfer-Encoding: 8BIT X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <41A4CB92.7070403@embeddedalley.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcTSTzsocQOiwDNCTCaq1/6finhmfQAboTng Message-Id: <20041125071225.ADA1AEB2D0@mail.romat.com> X-Virus-Scanned: by amavisd-new at romat.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: 6461 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: gilad@romat.com Precedence: bulk X-list: 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Gilad Rom" Subject: =?windows-1255?B?+vnl4eQ6IEF1MTUwMCBDaGlwIFNlbGVjdA==?= Date: Thu, 25 Nov 2004 09:12:44 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1255" Content-Transfer-Encoding: 8BIT In-Reply-To: <41A4CB92.7070403@embeddedalley.com> Message-ID: <20041125071225.ADA1AEB2D0@mail.romat.com> Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org To: 'Pete Popov' Cc: linux-mips@linux-mips.org Message-ID: <20041125071244.IUk29HgRVQ8sIOHfqvU9Y3I4lZzsWBAA_hAnOzxlF9Q@z> 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