1. 25 Apr, 2016 4 commits
    • Roger Quadros's avatar
      fastboot: Fix wMaxPacketSize for High-Speed IN endpoint · 718156ad
      Roger Quadros authored
      wMaxPacketSize for IN endpoing in High-Speed must be 512 and not 64.
      While fixing that we do some clean ups like
      
      - use cpu_to_le16(decimal_length) instead of hexadecimal length.
      - No need to initialize bInterval to 0. Static variables are 0 initialized.
      - Move descriptor setting from fastboot_add to to fastboot_bind.
      - check for dual speed configuration before setting the high speed descriptors.
      Signed-off-by: default avatarRoger Quadros <rogerq@ti.com>
      Tested-by: default avatarSteve Rae <srae@broadcom.com>
      Tested-by: Steve Rae <srae@broadcom.com> [Test HW: bcm235xx board]
      718156ad
    • Lukasz Majewski's avatar
      tests: py: dfu: Provide functionality to set test and dummy files alt settings · f3a87f5b
      Lukasz Majewski authored
      After concatenation of "dfu_alt_info" variable from "dfu_alt_boot" and
      "dfu_alt_system" it may happen that test and dummy files alt settings
      are different than default 0 and 1.
      
      This patch provides the ability to set different values for them.
      Signed-off-by: default avatarLukasz Majewski <l.majewski@samsung.com>
      Acked-by: default avatarStephen Warren <swarren@nvidia.com>
      ---
      Changes for v3:
      - replace variables declarations with ones read from configuration file
      - remove not necessary str() conversion at DFU host command generation
      
      Changes for v2:
      - generate "alt_info" automatically
      - use file names as alt settings instead of numerical values
      - extend in-code documentation
      f3a87f5b
    • Lukasz Majewski's avatar
      tests: py: dfu: Add functionality to set different u-boot's dfu env variable · 8eb37524
      Lukasz Majewski authored
      By default (on almost all systems) the dfu env variable, which defines
      available alt settings, is named as "dfu_alt_info".
      
      However on some platforms (i.e. Odroid XU3), the 'dfu_alt_info' is concatenated
      from other variables - namely 'dfu_alt_boot' and 'dfu_alt_system' at run time
      (when one types 'dfu 0 mmc 0' for first time).
      
      'dfu_alt_boot' describes alt settings which depend on boot medium - for example
      boot loader's LBA sectors which are different on eMMC and SD card because of e.g.
      MBR/GPT.
      
      'dfu_alt_system' describes board agnostic alt settings - like rootfs, kernel.
      On such system we can only append/modify this env variable.
      
      Because of the above, we must have way to modify other than "dfu_ale_info"
      variable to perform tests.
      Signed-off-by: default avatarLukasz Majewski <l.majewski@samsung.com>
      Acked-by: default avatarStephen Warren <swarren@nvidia.com>
      ---
      Changes for v3:
      - None
      
      Changes for v2:
      - Rewrite of "alt_info_env_name" variable description
      - Use of get() method on python's dictionary to easily obtain default
        value
      8eb37524
    • Lukasz Majewski's avatar
      tests: py: dfu: Add variables to store dfu alt numbers for test and dummy files · c6eb899c
      Lukasz Majewski authored
      This patch replaces hardcoded (i.e. 0 and 1) values passed to dfu_{read|write}
      with variables.
      Signed-off-by: default avatarLukasz Majewski <l.majewski@samsung.com>
      Acked-by: default avatarStephen Warren <swarren@nvidia.com>
      ---
      Changes for v3:
      - Replace per module global variables with ones defined inside a function
      Changes for v2:
      - None
      c6eb899c
  2. 22 Apr, 2016 3 commits
  3. 21 Apr, 2016 2 commits
  4. 20 Apr, 2016 25 commits
  5. 19 Apr, 2016 2 commits
  6. 18 Apr, 2016 4 commits