From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5660 invoked by alias); 14 Jun 2014 22:47:36 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 5647 invoked by uid 89); 14 Jun 2014 22:47:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f170.google.com Received: from mail-ig0-f170.google.com (HELO mail-ig0-f170.google.com) (209.85.213.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 14 Jun 2014 22:47:34 +0000 Received: by mail-ig0-f170.google.com with SMTP id h3so2668881igd.1 for ; Sat, 14 Jun 2014 15:47:32 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.51.17.97 with SMTP id gd1mr15182158igd.18.1402786051690; Sat, 14 Jun 2014 15:47:31 -0700 (PDT) Received: by 10.64.93.106 with HTTP; Sat, 14 Jun 2014 15:47:31 -0700 (PDT) In-Reply-To: <539B48F7.9060208@siva.com.mk> References: <5752197.rmWza1iyYx@inteldesktop.site> <00a901cf871c$da0330f0$8e0992d0$@itrgmbh.de> <4104928.CWXqrFU02v@inteldesktop.site> <539B48F7.9060208@siva.com.mk> Date: Sat, 14 Jun 2014 22:47:00 -0000 Message-ID: From: Jerzy Dyrda To: Ilija Kocho Cc: eCos Discussion , Richard Rauch Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Subject: [ECOS] Re: SDHC support. [Was Re: AW: [ECOS] Fwd: New features required on Cortex-M platform] X-SW-Source: 2014-06/txt/msg00007.txt.bz2 Hello Ilija, 2014-06-13 20:54 GMT+02:00 Ilija Kocho : > 3) SD bus support. I know that I can use SD card in SPI mode but on some >>> board like STM32F4DISCOVERY SD card i only available on SD bus. >>> It's high time to add this miss part of system. >> - SD card interface. Unfortunately this is very processor specific. Each >> Microcontroller has its own IP for accessing SD card. >> But only low level SD bus driver. Upper layer for MMC/SD card is common. > > This is MMC/SD disk driver for Freescale Kinetis and iMX. > https://sourceforge.net/projects/ecosfreescale/files/devs/SDHC/ > Upper layer (based on SPI MMC driver) and HW dependent (Freescale) parts > are placed in separate packages. > > Jerzy, can you see if STM support can be added? After first look I seems that yes. IMHO it's required some code re-factoring i.e. : 1) CYGPKG_DEVS_DISK_MMC_SDHC should be pushed into CYGPKG_DEVS_DISK_MMC package as a component similar to CYGPKG_DEVS_DISK_MMC_SPI component. 2) Using Freescale middle layer (sdhc.c) from platform specific package and pushing it to generic part. The aim of this layer is support for SDHC transaction what is generic. 3) And we should provide low level platform specific driver for SD bus not as Freescale in /devs/disk/mmc/sdhc/ but create new place /devs/sd/cortexm/stm similar to /devs/spi/cortexm/stm with simliar functionality i.e. xfer function supporting poling and DMA mode. 4) Regarding license most of code in platform specific part is a Freescale code. Can we use it? Best regards, jerzy -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss