From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29883 invoked by alias); 17 Feb 2011 10:43:57 -0000 Received: (qmail 29861 invoked by uid 22791); 17 Feb 2011 10:43:56 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 17 Feb 2011 10:43:52 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 167042F7800A for ; Thu, 17 Feb 2011 10:43:50 +0000 (GMT) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0skB9Hr+WD7r; Thu, 17 Feb 2011 10:43:48 +0000 (GMT) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-patches@ecos.sourceware.org Subject: [Bug 1000910] New port: Ethernet over SPI driver for ENC424J600 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Patches and contributions X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: ilijas@siva.com.mk X-Bugzilla-Status: MODIFIED X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Attachment #1033 is obsolete In-Reply-To: References: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 17 Feb 2011 10:43:00 -0000 Message-Id: <20110217104348.DFB962F78001@mail.ecoscentric.com> Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2011-02/txt/msg00063.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000910 Ilija Stanislevik changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #1033|0 |1 is obsolete| | --- Comment #11 from Ilija Stanislevik 2011-02-17 10:43:46 GMT --- Created an attachment (id=1132) --> (http://bugs.ecos.sourceware.org/attachment.cgi?id=1132) Patch to ecos.db, ChangeLog and STM3210eval HAL STM3210e_eval HAL: STM3210e_eval HAL defined resources used for SPI Ethernet driver are now parented in SPI Ethernet driver. User enters port and pin to which interrupt from SPI Ethernet controller is connected. Default values are intentionally made unacceptable, so the user is given a chance to think and enter data which match his hardware situation. Interrupt vector is automatically calculated based on pin entered. User can select to which of the STM32's SPI buses is connected the Ethernet chip. Only the buses which are enabled in SPI driver are available for selection. This option requires at least one SPI bus to be enabled. If none is enabled, the "requires" mechanism automatically enables bus 1. I find this safe enough because if there is only this SPI device in the system, it is highly likely that it is connected to bus 1. If someone adds more SPI devices, or a device to another SPI bus, he/she will be aware of the possibilities and will enable and select correct buses. Using the same logic, the chip select number defaults to 0 (indicating the first cs from the list defined in SPI driver), which I made the lowest legal_value. I wasn't able to establish a hard upper limit, so I put one which I deem fair enough. SPI bus pin toggle rate is required to be 50MHz, which accommodates for enc424j600's SPI 14MHZ rate. -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.