[PATCH 01/02] USB driver bcm283x_dwcotg added.

Deval Shah deval.maker at gmail.com
Wed Aug 10 13:06:07 UTC 2016


I saw the files which you have attached. I found one quick mistake.

In your nexus-devices.h file "RTEMS_BSD_DRIVER_BCM283X_DWCOTG(0x20980000,
17);", base and irq used are wrong. I had corrected the irq in my other
commit. They will be 0x3F980000 (since you are using Raspberry pi 2) and 9.

It would be easier to use the macros. i.e.
RTEMS_BSD_DRIVER_BCM283X_DWCOTG(BCM2835_USB_BASE, BCM2835_IRQ_ID_USB);


ᐧ

On Wed, Aug 10, 2016 at 1:11 PM, Thomas Kim <thomas73.kim at gmail.com> wrote:

> Dear Deval Shah,
>
> Thank you very much for your reply.
> I checked this again.
> Because there is not your code in currrent git system, I patched your code
> in current libbsd code.
> As I know in current libbsd source tree, your nexus_devices.h should be
> sperated into rtems-bsd-nexus-bus.h. I attached this.
>
> First of all, I completed to test RTEMS testsuites/sample/ticker.exe on
> RPI2 B+ board.
> I am tring to test rtems-libbsd/rtemsbsd/testsuite/usb01.
> also, I try to test two cases in usb01/init.c
> case 1 does not include NEED_USB_EHCI. case 2 include NEED_USB_EHCI.
>
> #if defined(LIBBSP_ARM_LPC24XX_BSP_H) || defined(LIBBSP_ARM_LPC32XX_BSP_H)
>  #define NEED_USB_OHCI
> (CASE1) #elif defined(__GEN83xx_BSP_h) || defined(LIBBSP_POWERPC_QORIQ_
> BSP_H)
> (CASE2) #elif defined(__GEN83xx_BSP_h) || defined(LIBBSP_ARM_
> RASPBERRYPI_BSP_H)
>  #define NEED_USB_EHCI
> #endif
> SYSINIT_NEED_USB_CORE;
> #ifdef NEED_USB_OHCI
>  SYSINIT_NEED_USB_OHCI;
> #endif
> #ifdef NEED_USB_EHCI
>  SYSINIT_NEED_USB_EHCI;
> #endif
>
> also, I added "#define VERBOSE_SYSINIT 1" in init_main.c for checking
> SYS_INIT functional call.
>
> At this time, usb_quirk_init() only is called when I test two cases.
> I attached serial log file, too.
>
> Please let me know my missing point.
>
> Best Regards,
> JunBeom
>
> 2016-08-10 5:31 GMT+09:00 Deval Shah <deval.maker at gmail.com>:
>
>> Hello Thomas Kim,
>>
>> It is the same code which you downloaded will work for the raspberry pi.
>> You can test the libbsd version of raspberry pi by configuring waf with the
>> following arguments.
>>
>> waf configure --prefix=/opt/rtems/4.12/bsps \
>> --rtems=/opt/rtems/4.12/bsps \
>> --rtems-tools=/opt/rtems/4.12/tools \
>> --rtems-bsps=arm/raspberrypi
>>
>> You can find more at this link. https://git.rtems.org/rt
>> ems-libbsd/tree/README.waf
>>
>> Deval Shah
>>
>>>>
>> On Tue, Aug 9, 2016 at 11:48 AM, Thomas Kim <thomas73.kim at gmail.com>
>> wrote:
>>
>>> Dear Sir,
>>>
>>> I am sorry.
>>>
>>> I want to test this libbsd version for Rasberry Pi.
>>> When I check "git://git.rtems.org/rtems-libbsd.git", there is not any
>>> code for Rasberry pi.
>>>
>>> Please could you let me know git URL for downloading this libbsd version
>>> ?
>>>
>>> Best Regards,
>>> Thomas Kim
>>>
>>> 2016-08-09 14:52 GMT+09:00 Sebastian Huber <
>>> sebastian.huber at embedded-brains.de>:
>>>
>>>> From which FreeBSD version are these files?
>>>>
>>>> On 05/08/16 18:32, Deval Shah wrote:
>>>>
>>>>> ---
>>>>>   freebsd/sys/arm/broadcom/bcm2835/bcm283x_dwc_fdt.c | 127
>>>>> ++++++++++++
>>>>>   freebsd/sys/dev/usb/controller/dwc_otg_fdt.c       | 228
>>>>> +++++++++++++++++++++
>>>>>   freebsd/sys/dev/usb/controller/dwc_otg_fdt.h       |  39 ++++
>>>>>   libbsd.py                                          |   3 +
>>>>>   libbsd_waf.py                                      |   4 +-
>>>>>   rtemsbsd/include/bsp/nexus-devices.h               |  21 ++
>>>>>   6 files changed, 421 insertions(+), 1 deletion(-)
>>>>>   create mode 100644 freebsd/sys/arm/broadcom/bcm28
>>>>> 35/bcm283x_dwc_fdt.c
>>>>>   create mode 100644 freebsd/sys/dev/usb/controller/dwc_otg_fdt.c
>>>>>   create mode 100644 freebsd/sys/dev/usb/controller/dwc_otg_fdt.h
>>>>>
>>>>
>>>> --
>>>> 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.
>>>>
>>>> _______________________________________________
>>>> devel mailing list
>>>> devel at rtems.org
>>>> http://lists.rtems.org/mailman/listinfo/devel
>>>>
>>>
>>>
>>
>>
>> --
>> Deval Shah
>> Graduate Student,
>> B.E. (Hons.) Electrical and Electronics Engineering
>> BITS Pilani Hyderabad Campus <http://www.bits-pilani.ac.in/hyderabad/>
>>
>> Github Profile <https://github.com/deval-maker>
>>
>
>


-- 
Deval Shah
Graduate Student,
B.E. (Hons.) Electrical and Electronics Engineering
BITS Pilani Hyderabad Campus <http://www.bits-pilani.ac.in/hyderabad/>

Github Profile <https://github.com/deval-maker>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20160810/62fca08b/attachment.html>


More information about the devel mailing list