14 Apr, 2015

3 commits


06 Mar, 2015

1 commit


08 May, 2014

5 commits


05 May, 2014

2 commits

  • Preprocessor definitions and hardcoded implementation selection in
    g_dnl core were replaced by a linker list made of (usb_function_name,
    bind_callback) pairs.

    Signed-off-by: Mateusz Zalega
    Acked-by: Lukasz Majewski
    Acked-by: Marek Vasut

    Mateusz Zalega
     
  • Former usb_cable_connected() patch broke compilation of boards which do
    not support this feature.

    I've renamed usb_cable_connected() to g_dnl_usb_cable_connected() and added
    its default implementation to gadget downloader driver code. There's
    only one driver of this kind and it's unlikely there'll be another, so
    there's no point in keeping it in /common.

    Previously this function was declared in usb.h. I've moved it, since
    it's more appropriate to keep it in g_dnl.h - usb.h seems to be intended
    for USB host implementation.

    Existing code, confronted with default -EOPNOTSUPP return value,
    continues as if the cable was connected.

    CONFIG_USB_CABLE_CHECK was removed.

    Change-Id: Ib9198621adee2811b391c64512f14646cefd0369
    Signed-off-by: Mateusz Zalega
    Acked-by: Marek Vasut
    Acked-by: Lukasz Majewski

    Mateusz Zalega
     

13 Jan, 2014

1 commit


09 Nov, 2013

3 commits

  • This patch allows exiting from UMS mode to u-boot prompt
    by detaching usb cable or by pressing ctrl+c.

    Add new config: CONFIG_USB_CABLE_CHECK. If defined then board
    file should provide function: usb_cable_connected() (include/usb.h)
    that return 1 if cable is connected and 0 otherwise.

    Changes v2:
    - add a note to the README

    Signed-off-by: Przemyslaw Marczak
    Cc: Marek Vasut

    Przemyslaw Marczak
     
  • Before this change ums command only allowed use of mmc 0.
    Now this argument can be set.

    Changes:
    - remove mmc device number checking because it is always positive number
    - remove printing "no such device" - it is done by find_mmc_device()

    Change-Id: I767e45151ad515c7bef19e6c13087374f5e23c11
    Signed-off-by: Przemyslaw Marczak
    Cc: Marek Vasut

    Przemyslaw Marczak
     
  • This patch introduces some cleanups to ums code. Changes:

    ums common:
    - introduce UMS_START_SECTOR and UMS_NUM_SECTORS as defined in
    usb_mass_storage.h both default values as 0 if board config
    doesn't define them

    common cleanup changes:
    - change name of struct "ums_board_info" to "ums"
    - "ums_device" fields are moved to struct ums and "dev_num" is removed
    - change function name: board_ums_init to ums_init
    - remove "extern" prefixes from usb_mass_storage.h

    cmd_usb_mass_storage:
    - change error() to printf() if need to print info message
    - change return values to command_ret_t type at ums command code
    - add command usage string

    Changes v2:
    ums common:
    - always returns number of read/write sectors
    - coding style clean-up
    ums gadget:
    - calculate amount of read/write from device returned value.

    Signed-off-by: Przemyslaw Marczak
    Cc: Marek Vasut

    Przemyslaw Marczak
     

21 Oct, 2013

1 commit

  • This commit unifies board-specific USB initialization implementations
    under one symbol (usb_board_init), declaration of which is available in
    usb.h.

    New API allows selective initialization of USB controllers whenever needed.

    Signed-off-by: Mateusz Zalega
    Signed-off-by: Kyungmin Park
    Reviewed-by: Lukasz Majewski
    Cc: Marek Vasut
    Cc: Lukasz Majewski

    Mateusz Zalega
     

24 Sep, 2013

1 commit


24 Jul, 2013

1 commit


19 Mar, 2013

1 commit

  • This patch adds the USB Mass Storage Gadget to u-boot
    New command called "ums" is implemented to provide access
    to on-device embedded persistent memory.

    USB Mass Storage is supposed to work on top of the USB
    Gadget framework

    Signed-off-by: Lukasz Majewski
    Signed-off-by: Piotr Wilczek
    Signed-off-by: Kyungmin Park
    CC: Marek Vasut

    Lukasz Majewski