06 Aug, 2013

1 commit


03 Aug, 2013

3 commits

  • In case only the CONFIG_SYS_I2C_SPEED is set in configuration file,
    the CONFIG_SYS_I2C_SOFT_SPEED is defined as CONFIG_SYS_I2C_SPEED.
    The CONFIG_SYS_I2C_SOFT_SPEED is then used throughout the driver.

    Unfortunatelly, due to a typo in the driver, instead of defining
    CONFIG_SYS_I2C_SOFT_SPEED, an CONFIG_SYS_SOFT_I2C_SPEED was defined
    and therefore the driver failed to compile. The same applies for
    CONFIG_SYS_I2C_SOFT_SLAVE , where the swap happens as well.

    This patch fixes the issue.

    Signed-off-by: Marek Vasut
    Cc: Heiko Schocher

    Marek Vasut
     
  • Now that nothing uses CONFIG_ARCH_DEVICE_TREE, stop defining it.

    Signed-off-by: Stephen Warren
    Acked-by: Simon Glass

    Stephen Warren
     
  • Aside from microblaze, all other SoCs/boards/vendors store their DT files
    in board/$vendor/dts/$soc-$board.dts. Move microblaze-generic.dts to this
    location for consistency.

    Signed-off-by: Stephen Warren
    Acked-by: Simon Glass
    Acked-by: Michal Simek

    Stephen Warren
     

01 Aug, 2013

1 commit


30 Jul, 2013

9 commits

  • This commit adds some prototypes into include/mtd/cfi_flash.h.
    These functions are defined with a weak attribute in
    drivers/mtd/cfi_flash.c.
    This means they can be overrided by board-specific ones
    if necessary.

    When defining such functions under board/ directory or
    somewhere, cfi_flash.h should be included.
    This makes sure that board-specfic cfi functions
    are defined in a correct prototype.

    Signed-off-by: Masahiro Yamada
    Signed-off-by: Stefan Roese

    Masahiro Yamada
     
  • This patch extends dfu code to support transmission with -R switch
    specified at dfu-util.

    When -R is specified, the extra USB_REQ_DFU_DETACH request is sent after
    successful data transmission. Then dfu resources are released and reset
    command is issued.

    Signed-off-by: Lukasz Majewski
    Signed-off-by: Kyungmin Park

    Lukasz Majewski
     
  • The requests sent to the controller are not properly cache aligned
    most of the time, thus implement a simple bounce buffer to avoid
    problem with cache.

    Signed-off-by: Marek Vasut
    Cc: Fabio Estevam
    Cc: Lei Wen
    Cc: Otavio Salvador
    Cc: Stefano Babic

    Marek Vasut
     
  • Allocate the qTD items all at once instead of allocating them
    separately. Moreover, make sure each qTD is properly aligned
    to 32-bytes boundary and that cache can be safely flushed over
    each qTD touple.

    Signed-off-by: Marek Vasut
    Cc: Fabio Estevam
    Cc: Lei Wen
    Cc: Otavio Salvador
    Cc: Stefano Babic

    Marek Vasut
     
  • Both the endpoint queue head and the endpoint item list is a controller
    specific thing. Move them both into controller private data.

    Signed-off-by: Marek Vasut
    Cc: Fabio Estevam
    Cc: Lei Wen
    Cc: Otavio Salvador
    Cc: Stefano Babic

    Marek Vasut
     
  • The usb_lowlevel_init() call already fills and passes back struct
    ehci_ctrl , which readily contains correctly determined address of
    the port register block address computed from values from controller
    configuration registers. Leverage this and make use of this value
    as this makes the code mode universal, but also gets us rid of the
    CONFIG_USB_REG_BASE configuration option.

    Moreover, this patch cleans up the usb_gadget_register_driver() call
    a little by correcting the error handling. Note the usb_lowlevel_init()
    and mvudc_probe() are now called in reversed order, but this has no
    impact on the code.

    Signed-off-by: Marek Vasut
    Cc: Fabio Estevam
    Cc: Lei Wen
    Cc: Otavio Salvador
    Cc: Stefano Babic

    Marek Vasut
     
  • Move the constant values that are programmed into mv_ep.ep into
    separate static const structure so they can be memcpy()'d when
    the initialization happens.

    Moveover, we only every init NUM_ENDPOINTS, not 2 * NUM_ENDPOINTS,
    so fix this bug as well.

    Signed-off-by: Marek Vasut
    Cc: Fabio Estevam
    Cc: Lei Wen
    Cc: Otavio Salvador
    Cc: Stefano Babic

    Marek Vasut
     
  • The endpoints are operated on a per-controller basis, move the
    endpoint array into controller's private data. Also shuffle the
    struct mv_ep structure definition just above the definition of
    the struct mv_drv so they're well grouped together.

    Signed-off-by: Marek Vasut
    Cc: Fabio Estevam
    Cc: Lei Wen
    Cc: Otavio Salvador
    Cc: Stefano Babic

    Marek Vasut
     
  • Do a coding-style cleanup of this file and throw away useless
    defined values. These values were likely a result of a copy-paste
    job.

    Signed-off-by: Marek Vasut
    Cc: Fabio Estevam
    Cc: Lei Wen
    Cc: Otavio Salvador
    Cc: Stefano Babic

    Marek Vasut
     

26 Jul, 2013

3 commits


25 Jul, 2013

3 commits


24 Jul, 2013

14 commits


23 Jul, 2013

6 commits