Skip to content
Snippets Groups Projects
  1. Oct 06, 2017
  2. Oct 04, 2017
  3. Oct 03, 2017
  4. Oct 01, 2017
    • Bin Meng's avatar
      usb: xhci: Honor endpoint's interval · f51966bf
      Bin Meng authored
      
      USB endpoint reports the period between consecutive requests to send
      or receive data as bInverval in its endpoint descriptor. So far this
      is ignored by xHCI driver and the 'Interval' field in xHC's endpoint
      context is always programmed to zero which means 1ms for low speed
      or full speed , or 125us for high speed or super speed. We should
      honor the interval by getting it from endpoint descriptor.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      f51966bf
    • Bin Meng's avatar
      dm: usb: emul: Drop usb_emul_reset() · ad56e4b6
      Bin Meng authored
      
      With the root hub unbinding in usb_stop(), there is no need to do
      a Sandbox-specific reset operation. usb_emul_reset() is no longer
      used anywhere, drop it.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      ad56e4b6
    • Bin Meng's avatar
      usb: emul: Expose find_descriptor() as a public API · 848436a4
      Bin Meng authored
      
      This can be useful outside of the sandbox usb emulation uclass
      driver. Expose it as a public API with a proper prefix (usb_emul_).
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      848436a4
    • Bin Meng's avatar
      usb: sandbox: Fix emulator device select logic in usb_emul_find_devnum() · 84aa8536
      Bin Meng authored
      
      Current emulator select logic in usb_emul_find_devnum() is to test
      the USB address. The USB address of the device being enumerated is
      initialized to zero at the beginning of the enumeration process in
      usb_setup_device(). At this point, the saved USB address in the
      platform data has not been assigned to any valid USB address either.
      This means: the logic will select an emulator device according to
      its sequence of declaring order in the device tree. Take test.dts
      for example, flash-stick@0 will be selected before flash-stick@1.
      But unfortunately such logic is wrong.
      
      In fact USB devices show up in a random order during the enumeration
      which means usb_emul_find_devnum() may be called on port 3 for keyb@3
      before on port 0 for flash-stick@0.
      
      To fix this, we introduce a new emulator uclass specific platdata
      to store the USB device's port number on its parent hub, and update
      the logic to test the port number instead.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      84aa8536
    • Bin Meng's avatar
      usb: Fix comments of usb_emul_find_for_dev() · 8d36c687
      Bin Meng authored
      
      There is no such a parameter called 'bus'.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      8d36c687
    • Bin Meng's avatar
      usb: emul: Remove maxpacketsize in usb_emul_setup_device() · 98b639fc
      Bin Meng authored
      
      This parameter is never used.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      98b639fc
  5. Sep 30, 2017
  6. Sep 29, 2017
    • Sam Protsenko's avatar
      env: ti: boot: Show boot status information · 6ca43a58
      Sam Protsenko authored
      
      Add tracing printings to Linux/Android boot commands, so that we can see
      what's going on. Helps to trace possible bugs on early stages and
      improves the output for user (which is especially useful, because we
      have a bunch of boot commands executing one by one).
      
      Signed-off-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      6ca43a58
    • Sam Protsenko's avatar
      env: ti: boot: Extract command for eMMC Linux boot · 2717c084
      Sam Protsenko authored
      
      Extract commands for booting Linux from eMMC to separate command. It
      seems more logical that way, and allows us to run the whole command set
      from U-Boot shell with only one command.
      
      Signed-off-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      2717c084
    • Sam Protsenko's avatar
      arm: dra7xx: Fix Linux boot from eMMC · a0b0ff0a
      Sam Protsenko authored
      
      Right now on OMAP5-based boards we have only one partition defined for
      Linux boot, which is rootfs. That doesn't work with bootpart=1:2 (that
      is defined in include/environment/ti/boot.h). To fix Linux boot we may
      either:
      
       1. Change bootpart to be 1:1
       2. Or add preceding partition, so that rootfs is actually 1:2
      
      Second choice seems more reasonable, as DFU is already using similar
      partition table and can rely on bootpart to be 1:2.
      
      This patch adds "bootloader" partition. So now eMMC layout for Linux
      boot looks like this:
      
      offset               content                 size          partition
      (KiB)                                        (KiB)
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      
      =======================================================================
      
      0       +--------------------------------+
              | MBR/GPT header                 |   128           -
      128     +--------------------------------+
              | MLO                            |   256           -
      384     +--------------------------------+
              | u-boot.img                     |   1792          bootloader
      2176    +--------------------------------+
              | //////////// hole //////////// |   256           -
      2432    +--------------------------------+
              | U-Boot environment             |   128           -
      2560    +--------------------------------+
              | U-Boot environment (redundant) |   128           -
      2688    +--------------------------------+
              | rootfs                         |   remaining     rootfs
      end     +--------------------------------+
      
      =======================================================================
      
      Guard hole appears because U-Boot environment offset was calculated for
      Android partition table, which has two additional partitions in place of
      that hole ("environment" and "misc" partitions).
      
      This patch also changes rootfs offset from 2 MiB further to 2688 KiB,
      so that there won't be any collisions with U-Boot environment when we
      flash rootfs.
      
      Signed-off-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
      a0b0ff0a
    • Sam Protsenko's avatar
      arm: am57xx: Fix Linux boot from eMMC · f6d245b8
      Sam Protsenko authored
      
      Right now on OMAP5-based boards we have only one partition defined for
      Linux boot, which is rootfs. That doesn't work with bootpart=1:2 (that
      is defined in include/environment/ti/boot.h). To fix Linux boot we may
      either:
      
       1. Change bootpart to be 1:1
       2. Or add preceding partition, so that rootfs is actually 1:2
      
      Second choice seems more reasonable, as DFU is already using similar
      partition table and can rely on bootpart to be 1:2.
      
      This patch adds "bootloader" partition. So now eMMC layout for Linux
      boot looks like this:
      
      offset               content                 size          partition
      (KiB)                                        (KiB)
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      
      =======================================================================
      
      0       +--------------------------------+
              | MBR/GPT header                 |   128           -
      128     +--------------------------------+
              | MLO                            |   256           -
      384     +--------------------------------+
              | u-boot.img                     |   1792          bootloader
      2176    +--------------------------------+
              | //////////// hole //////////// |   256           -
      2432    +--------------------------------+
              | U-Boot environment             |   128           -
      2560    +--------------------------------+
              | U-Boot environment (redundant) |   128           -
      2688    +--------------------------------+
              | rootfs                         |   remaining     rootfs
      end     +--------------------------------+
      
      =======================================================================
      
      Guard hole appears because U-Boot environment offset was calculated for
      Android partition table, which has two additional partitions in place of
      that hole ("environment" and "misc" partitions).
      
      This patch also changes rootfs offset from 2 MiB further to 2688 KiB,
      so that there won't be any collisions with U-Boot environment when we
      flash rootfs.
      
      Signed-off-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
      f6d245b8
    • Lokesh Vutla's avatar
      configs: keystone2: env: Fix burn_uboot_spi command · ba7f58b1
      Lokesh Vutla authored
      
      Now the u-boot spi image is greater than 0x80000, increase the same
      in env during spi erase.
      
      Reported-by: default avatarYan Liu <yan-liu@ti.com>
      Signed-off-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
      ba7f58b1
    • Andrew F. Davis's avatar
      configs: k2g_evm: Make findfdt command populate fdtfile variable · f8e714eb
      Andrew F. Davis authored
      
      On all other platforms the command 'findfdt' populates the variable
      'fdtfile', but on K2G we only populate 'name_fdt'. The generic boot
      and automation scripts fail when 'findfdt' is not populated, fix
      this for K2G.
      
      Signed-off-by: default avatarAndrew F. Davis <afd@ti.com>
      f8e714eb
    • Andrew F. Davis's avatar
      configs: am43xx_evm: Avoid relocation onto firewall at the end of DRAM · 373358f2
      Andrew F. Davis authored
      
      On secure devices the initial secure software may install a firewall at
      the end of DRAM, define protected RAM to avoid space.
      
      Signed-off-by: default avatarAndrew F. Davis <afd@ti.com>
      373358f2
Loading