Re: SDIO stack in RTEM

2017-04-03 Thread Sebastian Huber

On 03/04/17 12:34, faizan khan wrote:
I dont get it, RTEMs has a port of sdmmc stack 
https://git.rtems.org/rtems-libbsd 
 but not all the drivers are using 
it. For example I saw, stmf32 implement its own command sending 
mechanism. Shouldnt that be generic, the sending of commands. Only the 
lower controller level detail should change.


Yes, not all BSPs use this. The driver area in RTEMS is quite heterogeneous.



Also I don't get the connection with freebsd code, do we use that code 
directly in RTEMs, is all of that ported???


The libbsd can be used to import code from FreeBSD, see

https://git.rtems.org/rtems-libbsd/tree/libbsd.txt#n781

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: SDIO stack in RTEM

2017-04-03 Thread faizan khan
I dont get it, RTEMs has a port of sdmmc stack https://git.rtems.org/rtems-l
ibbsd but not all the drivers are using it. For example I saw, stmf32
implement its own command sending mechanism. Shouldnt that be generic, the
sending of commands. Only the lower controller level detail should change.

Also I don't get the connection with freebsd code, do we use that code
directly in RTEMs, is all of that ported???

Just want to understand the structure of RTEMs...

cheers,
Faizan

On Mon, Apr 3, 2017 at 10:43 AM, Sebastian Huber <
sebastian.hu...@embedded-brains.de> wrote:

> On 03/04/17 02:06, faizan khan wrote:
>
>> Is there an sdio stack in RTEM because I could not find out. If the sd
>> stack is not there then writing the sd driver for bbb will take a lot
>> longer...
>>
>
> The SD/MMC card stack is in libbsd (https://git.rtems.org/rtems-libbsd).
> I guess this is the right driver:
>
> https://github.com/freebsd/freebsd/blob/master/sys/arm/ti/ti_sdhci.c
>
> --
> Sebastian Huber, embedded brains GmbH
>
> Address : Dornierstr. 4, D-82178 Puchheim, Germany
> Phone   : +49 89 189 47 41-16
> Fax : +49 89 189 47 41-09
> E-Mail  : sebastian.hu...@embedded-brains.de
> PGP : Public key available on request.
>
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>
>
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: SDIO stack in RTEM

2017-04-02 Thread Sebastian Huber

On 03/04/17 02:06, faizan khan wrote:
Is there an sdio stack in RTEM because I could not find out. If the sd 
stack is not there then writing the sd driver for bbb will take a lot 
longer...


The SD/MMC card stack is in libbsd (https://git.rtems.org/rtems-libbsd). 
I guess this is the right driver:


https://github.com/freebsd/freebsd/blob/master/sys/arm/ti/ti_sdhci.c

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


SDIO stack in RTEM

2017-04-02 Thread faizan khan
Is there an sdio stack in RTEM because I could not find out. If the sd
stack is not there then writing the sd driver for bbb will take a lot
longer...

cheers,
Faizan
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel