From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10866 invoked by alias); 8 Aug 2012 07:52:27 -0000 Received: (qmail 10857 invoked by uid 22791); 8 Aug 2012 07:52:26 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED 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; Wed, 08 Aug 2012 07:52:13 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 8C16A2F78005 for ; Wed, 8 Aug 2012 08:52:12 +0100 (BST) 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 7MmRCYccA4ox; Wed, 8 Aug 2012 08:52:12 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-bugs@ecos.sourceware.org Subject: [Bug 1000761] eCos support for MPC5xxx MCUs 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: ilijak@siva.com.mk X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: normal X-Bugzilla-Assigned-To: jifl@ecoscentric.com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: 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: Wed, 08 Aug 2012 07:52:00 -0000 Message-Id: <20120808075207.A88302FB082D@mail.ecoscentric.com> Mailing-List: contact ecos-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-bugs-owner@sourceware.org X-SW-Source: 2012/txt/msg01132.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000761 --- Comment #54 from Ilija Kocho 2012-08-08 08:51:55 BST --- Hello Stefan (In reply to comment #49) > Created an attachment (id=1869) --> (http://bugs.ecos.sourceware.org/attachment.cgi?id=1869) [details] > device drivers for MPC5xxx family Recently I was asked to convert MPC5xxx FlecCAN driver to a generic one (ref. Comment #39). I spent some time on that and submitted a collection of patches (ref. Comment #42). What remains is to join and test it with MPC5xxx HAL (and adding eventual changes being made to original MPC5xxx code in meantime). Integration of generic FlexCAN driver with MPC5xxx HAL should be easy, it's only necessary to provide device base address and interrupt number and priorities to the driver. This is typically done by means of var_io.h (or plf_io.h if they are platform specific). In order to isolate these device related data in a separate file you can create a file var_io_devs.h which shall be included in var_io.h. Then in var_io_devs.h you can put all similar definitions for other devices as well: Ethernet, SPI, serial, etc. You can look Kinetis var_io_devs.h for example. - Ethernet driver (devs/eth/freescale/enet) is already prepared as generic so it should be relatively easy to join it with MPC5xxx HAL. Here we wouldn't need additional driver packages like for FlexCAN because interrupt organization is same. - ESCI: Here you have 2 parts HAL (diagnostic) and devs (interrupt driven). The interrupt driven is designed as generic, similar to Ethernet. - In addition you may also consider the DSPI driver /devs/spi/freescale/dspi (that will also need eDMA library hal/misc/freescale/edma). Ilija -- 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.