21 Feb, 2014

2 commits


20 Feb, 2014

2 commits

  • Conflicts:
    Makefile
    drivers/net/npe/Makefile

    These two conflicts arise from commit 0b2d3f20
    ("ARM: NET: Remove the IXP NPE ethernet driver") and are
    resolved by deleting the drivers/net/npe/Makefile file
    and removing the CONFIG_IXP4XX_NPE line from Makefile.

    Albert ARIBAUD
     
  • Now we are ready to switch over to real Kbuild.

    This commit disables temporary scripts:
    scripts/{Makefile.build.tmp, Makefile.host.tmp}
    and enables real Kbuild scripts:
    scripts/{Makefile.build,Makefile.host,Makefile.lib}.

    This switch is triggered by the line in scripts/Kbuild.include
    -build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build.tmp obj
    +build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj

    We need to adjust some build scripts for U-Boot.
    But smaller amount of modification is preferable.

    Additionally, we need to fix compiler flags which are
    locally added or removed.

    In Kbuild, it is not allowed to change CFLAGS locally.
    Instead, ccflags-y, asflags-y, cppflags-y,
    CFLAGS_$(basetarget).o, CFLAGS_REMOVE_$(basetarget).o
    are prepared for that purpose.

    Signed-off-by: Masahiro Yamada
    Tested-by: Gerhard Sittig

    Masahiro Yamada
     

19 Feb, 2014

1 commit


06 Feb, 2014

8 commits

  • The mv_udc is not marvell-specific anymore. The mv_udc is used to drive
    generic ChipIdea CI13xxx series OTG cores, so rename the driver to ci_udc
    instead.

    Signed-off-by: Marek Vasut
    Cc: Eric Nelson
    Cc: Stefano Babic

    Marek Vasut
     
  • The driver is no longer used, remove it.

    Signed-off-by: Marek Vasut
    Cc: Albert Aribaud
    Cc: Michael Schwingen
    Cc: Tom Rini

    Marek Vasut
     
  • Apparently debug memset (with a 0x55 value) has been overlooked in the
    f_thor code.

    Signed-off-by: Lukasz Majewski
    Cc: Marek Vasut

    Lukasz Majewski
     
  • Now it is possible to allocate static request - which receives data from
    the host (OUT transaction) to the size of THOR packet.

    Signed-off-by: Lukasz Majewski
    Cc: Marek Vasut

    Lukasz Majewski
     
  • The Samsung's UDC driver is not anymore copying data from USB requests to
    aligned internal buffers. Now it works directly in data allocated in the
    upper layers like UMS, DFU, THOR.

    This change is possible since those gadgets now must take care to allocate
    buffers aligned to cache line (CONFIG_SYS_CACHELINE_SIZE).

    This can be achieved by using DEFINE_CACHE_ALIGN_BUFFER() or
    ALLOC_CACHE_ALIGN_BUFFER() macros. Those take care to allocate buffer
    aligned to cache line in both starting address and its size.
    Sometimes it is enough to just use memalign() with size being a
    multiplication of cache line size.

    Test condition
    - test HW + measurement: Trats - Exynos4210 rev.1
    - test HW Trats2 - Exynos4412 rev.1
    400 MiB compressed rootfs image download with `thor 0 mmc 0`

    Measurement:
    Transmission speed: 27.04 MiB/s

    Signed-off-by: Lukasz Majewski
    Cc: Marek Vasut

    Lukasz Majewski
     
  • This patch removed obscure restriction on the HW setting of DMA transfers.
    Before this change each transaction sent up to 512 bytes (with packet count
    equal to 1) for non EP0 transfer.

    Now it is possible to setup DMA transaction up to DMA_BUFFER_SIZE.

    Test condition
    - test HW + measurement: Trats - Exynos4210 rev.1
    - test HW Trats2 - Exynos4412 rev.1
    400 MiB compressed rootfs image download with `thor 0 mmc 0`

    Measurement:
    Transmission speed: 20.74 MiB/s

    Signed-off-by: Lukasz Majewski
    Cc: Marek Vasut

    Lukasz Majewski
     
  • A set of cache operations (both invalidation and flush) were redundant
    in the S3C HS OTG Samsung driver:

    1. s3c_udc_ep0_zlp - to transmit EP0's ZLP packets one don't need to flush
    the cache (since it is the zero length transmission)

    2. s3c_udc_pre_setup and s3c_ep0_complete_out - cache invalidation is not
    needed when the buffer for OUT EP0 transmission is setup, since no data
    has yet arrived.

    Cache cleanups presented above don't contribute much to transmission speed
    up, hence shall be regarded as cosmetic changes.

    3. setdma_rx - here the s3c UDC driver's internal buffers were invalidated.
    This call is not needed anymore since we reuse the buffers passed from
    gadgets. This is a key contribution to transmission speed improvement.

    Test condition
    - test HW + measurement: Trats - Exynos4210 rev.1
    - test HW Trats2 - Exynos4412 rev.1
    400 MiB compressed rootfs image download with `thor 0 mmc 0`

    Measurements:

    Base values (without improvement):
    Transmission speed: 9.51 MiB/s

    After the change:
    Transmission speed: 10.15 MiB/s

    Signed-off-by: Lukasz Majewski
    Cc: Marek Vasut

    Lukasz Majewski
     
  • Calls to malloc() have been replaced by memalign. It now provides proper
    buffer alignment.

    Signed-off-by: Lukasz Majewski
    Cc: Marek Vasut

    Lukasz Majewski
     

13 Jan, 2014

4 commits

  • Arndale board has AX88760, which is USB 2.0 Hub & USB 2.0 Ethernet Combo
    controller, connected to HSIC Phy of USB host controller via USB3503 hub.

    This patch uses board specific board_usb_init function to perform reset
    sequence for USB3503 hub and enables the relevant config options for
    network to work.

    Signed-off-by: Inderpal Singh
    Signed-off-by: Chander Kashyap

    Inderpal Singh
     
  • The controller has 3 ports. The port0 is for USB 2.0 Phy, port1 and port2
    are for HSIC phys. The usb 2.0 phy is already being setup. This patch
    sets up the hsic phys.

    Signed-off-by: Inderpal Singh

    Inderpal Singh
     
  • The fifo size of ep0 is 64 bytes, and if the packet size grater than
    64 bytes, the driver would have to fill up the fifo multiple times,
    and before filling up the fifo, the driver should make sure the fifo
    is empty by checking fifo empty indication.

    However there is a hardware bug that the fifo empty indication is
    somehow a bit earlier than fifo reset. So if I don't add an extra
    delay here, the data might be corrupted. (i.e., 1 byte missing)

    After a couple of tests, it truns out that 1 usec is good enough.

    This workaround should be applied to all hardware revisions.

    Signed-off-by: Kuo-Jung Su
    CC: Marek Vasut

    Kuo-Jung Su
     
  • Since hardware revision 1.11.0, the following interrupt status
    registers are now W1C (i.e., write 1 clear):

    1. Interrupt Source Group 0 Register (0x144) (EP0 Abort: BIT5)
    2. Interrupt Source Group 2 Register (0x14C) (All bits)

    And before revision 1.11.0, these registers are all R/W.
    Which means software must write a 0 to clear the status.

    Signed-off-by: Kuo-Jung Su
    CC: Marek Vasut

    Kuo-Jung Su
     

19 Dec, 2013

5 commits


13 Dec, 2013

1 commit


06 Dec, 2013

2 commits

  • Albert ARIBAUD
     
  • In commit bb1f327 we removed the UHH reset to fix NFS root (over usb
    ethernet) problems with Beagleboard (3530 ES1.0). However, this
    seems to cause USB detection problems for Pandaboard, about (3/8).

    On further investigation, it seems that doing the UHH reset is not
    the cause of the original Beagleboard problem, but in the way the reset
    was done.

    This patch adds proper UHH RESET mechanism for OMAP3 and OMAP4/5 based
    on the UHH_REVISION register. This should fix the Beagleboard NFS
    problem as well as the Pandaboard USB detection problem.

    Reported-by: Tomi Valkeinen
    CC: Stefan Roese
    Reviewed-by: Stefan Roese
    Signed-off-by: Roger Quadros

    Roger Quadros
     

02 Dec, 2013

1 commit


12 Nov, 2013

1 commit


10 Nov, 2013

1 commit

  • Conflicts:
    arch/arm/cpu/arm926ejs/mxs/Makefile
    board/compulab/cm_t35/Makefile
    board/corscience/tricorder/Makefile
    board/ppcag/bg0900/Makefile
    drivers/bootcount/Makefile
    include/configs/omap4_common.h
    include/configs/pdnb3.h

    Makefile conflicts are due to additions/removals of
    object files on the ARM branch vs KBuild introduction
    on the main branch. Resolution consists in adjusting
    the list of object files in the main branch version.
    This also applies to two files which are not listed
    as conflicting but had to be modified:

    board/compulab/common/Makefile
    board/udoo/Makefile

    include/configs/omap4_common.h conflicts are due to
    the OMAP4 conversion to ti_armv7_common.h on the ARM
    side, and CONFIG_SYS_HZ removal on the main side.
    Resolution is to convert as this icludes removal of
    CONFIG_SYS_HZ.

    include/configs/pdnb3.h is due to a removal on ARM side.
    Trivial resolution is to remove the file.

    Note: 'git show' will also list two files just because
    they are new:

    include/configs/am335x_igep0033.h
    include/configs/omap3_igep00x0.h

    Albert ARIBAUD
     

09 Nov, 2013

5 commits

  • add the possibility to set the iSerialNumber board specific.
    Default value for iSerialNumber is 0x0. This value can
    changed board specific through the new function
    g_dnl_set_serialnumber() which must be called from the
    board specific function g_dnl_bind_fixup().

    Signed-off-by: Heiko Schocher
    Cc: Marek Vasut
    Cc: Lukasz Majewski
    Cc: Kyungmin Park
    Tested-by: Lukasz Majewski

    Heiko Schocher
     
  • submit_common_msg should report amount of data passed from/to device.
    Instead, it always returned size requested by Host.

    Signed-off-by: Mateusz Kulikowski

    Mateusz Kulikowski
     
  • 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
     
  • This patch prevents:
    - ums disk capacity miscalculation because of integer overflow

    Changes v2:
    - Prevents passing zero size disk capacity to ums gadget driver
    - Change function ums_get_capacity() to ums_disk_init() and do ums disk
    initialization before gadget init
    - Remove unnecessary code from mass storage driver

    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
     

05 Nov, 2013

2 commits


01 Nov, 2013

1 commit


25 Oct, 2013

1 commit


23 Oct, 2013

1 commit


21 Oct, 2013

2 commits