Is there a method for initializing addtional BSD driver after calling rtems_bsd_initialize() ?

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Jan 18 08:40:51 UTC 2019


On 18/01/2019 08:47, JunBeom Kim (EmbedCoreTech) wrote:
>
> Dear Sir,
>
> I am tring to find how to initialize additional BSD driver after 
> calling rtems_bsd_initialize().
>
> For example for i.MX7D case.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> < original code from nexus-devices.h >
>
> RTEMS_BSD_DEFINE_NEXUS_DEVICE(ofwbus, 0, 0, NULL);
>
> SYSINIT_DRIVER_REFERENCE(simplebus, ofwbus);
>
> SYSINIT_DRIVER_REFERENCE(ffec, simplebus);
>
> SYSINIT_DRIVER_REFERENCE(ukphy, miibus);
>
> SYSINIT_DRIVER_REFERENCE(imx51_gpio, simplebus);
>
> SYSINIT_DRIVER_REFERENCE(sdhci_fsl, simplebus);
>
> RTEMS_BSD_DRIVER_MMC;
>
> < Modified code from nexus-devices.h >
>
> RTEMS_BSD_DEFINE_NEXUS_DEVICE(ofwbus, 0, 0, NULL);
>
> SYSINIT_DRIVER_REFERENCE(simplebus, ofwbus);
>
> //SYSINIT_DRIVER_REFERENCE(ffec, simplebus);
>
> //SYSINIT_DRIVER_REFERENCE(ukphy, miibus);
>
> SYSINIT_DRIVER_REFERENCE(imx51_gpio, simplebus);
>
> SYSINIT_DRIVER_REFERENCE(sdhci_fsl, simplebus);
>
> RTEMS_BSD_DRIVER_MMC;
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> It means that after BSD driver for SDHC only is initialized by calling 
> rtems_bsd_initialize(), I want to initialize BSD driver module about 
> ffec, ukphy in other thread.
>
> Is there a method for this ?
>

Yes, you can call the bus API functions for device probe, attach, 
detach, etc. yourself. See file rtems-kernel-bus-root.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.huber at embedded-brains.de
PGP     : Public key available on request.

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




More information about the users mailing list