Skip to content
Snippets Groups Projects
  1. Nov 17, 2018
  2. Nov 16, 2018
  3. Nov 15, 2018
    • Tom Rini's avatar
      travis: Ensure we use pytest 2.8.7 · f6206f85
      Tom Rini authored
      
      The latest version of pytest (4.0.0) makes some of the code we have in
      test/py/conftest.py a fatal error that needs to be migrated.
      Unfortunately this in turn requires changes that don't exist in older
      versions of pytest such as 2.8.7 that ships with Ubuntu 16.04.  Force
      travis to use this older version of pytest.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      f6206f85
  4. Nov 14, 2018
    • Tom Rini's avatar
      6f443330
    • Bin Meng's avatar
      Revert "imx8qxp_mek: Disable CONFIG_DISPLAY_CPUINFO" · 4c6e27f6
      Bin Meng authored
      
      This reverts commit c5bbfaf0.
      
      Disabling CONFIG_DISPLAY_CPUINFO was a temporary solution to get
      the v2018.11 release out. Now the merge window opens, revert it.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      4c6e27f6
    • Bin Meng's avatar
      cpu: sandbox: Add "u-boot, dm-pre-reloc" for all cpu nodes · 25d0fe74
      Bin Meng authored
      
      To support CONFIG_DISPLAY_CPUINFO, add "u-boot,dm-pre-reloc" for
      all cpu nodes in Sandbox test.dts.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarStefan Roese <sr@denx.de>
      25d0fe74
    • Bin Meng's avatar
      cpu: Add DM_FLAG_PRE_RELOC flag to various cpu drivers · c337e1af
      Bin Meng authored
      
      It turns out commit c0434407 broke some boards which have DM CPU
      driver with CONFIG_DISPLAY_CPUINFO option on. These boards just fail
      to boot when print_cpuinfo() is called during boot.
      
      Fixes: c0434407 ("board_f: Use static print_cpuinfo if CONFIG_CPU is active")
      Reported-by: default avatarStefan Roese <sr@denx.de>
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarStefan Roese <sr@denx.de>
      Tested-by: default avatarStefan Roese <sr@denx.de>
      c337e1af
    • Bin Meng's avatar
      dm: doc: Update description of pre-relocation support · 1a6bd471
      Bin Meng authored
      
      Add some description about pre-relocation driver binding, including
      usage of DM_FLAG_PRE_RELOC flag and caveats.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      1a6bd471
    • Bin Meng's avatar
      watchdog: Remove DM_FLAG_PRE_RELOC flag in various drivers · 8ee27da3
      Bin Meng authored
      
      When a driver declares DM_FLAG_PRE_RELOC flag, it wishes to be
      bound before relocation. However due to a bug in the DM core,
      the flag only takes effect when devices are statically declared
      via U_BOOT_DEVICE(). This bug has been fixed recently by commit
      "dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in
      lists_bind_fdt()", but with the fix, it has a side effect that
      all existing drivers that declared DM_FLAG_PRE_RELOC flag will
      be bound before relocation now. This may expose potential boot
      failure on some boards due to insufficient memory during the
      pre-relocation stage.
      
      To mitigate this potential impact, the following changes are
      implemented:
      
      - Remove DM_FLAG_PRE_RELOC flag in the driver, if the driver
        only supports configuration from device tree (OF_CONTROL)
      - Keep DM_FLAG_PRE_RELOC flag in the driver only if the device
        is statically declared via U_BOOT_DEVICE()
      - Surround DM_FLAG_PRE_RELOC flag with OF_CONTROL check, for
        drivers that support both statically declared devices and
        configuration from device tree
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      8ee27da3
    • Bin Meng's avatar
      video: simplefb: Remove DM_FLAG_PRE_RELOC flag · e3245e42
      Bin Meng authored
      
      When a driver declares DM_FLAG_PRE_RELOC flag, it wishes to be
      bound before relocation. However due to a bug in the DM core,
      the flag only takes effect when devices are statically declared
      via U_BOOT_DEVICE(). This bug has been fixed recently by commit
      "dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in
      lists_bind_fdt()", but with the fix, it has a side effect that
      all existing drivers that declared DM_FLAG_PRE_RELOC flag will
      be bound before relocation now. This may expose potential boot
      failure on some boards due to insufficient memory during the
      pre-relocation stage.
      
      To mitigate this potential impact, the following changes are
      implemented:
      
      - Remove DM_FLAG_PRE_RELOC flag in the driver, if the driver
        only supports configuration from device tree (OF_CONTROL)
      - Keep DM_FLAG_PRE_RELOC flag in the driver only if the device
        is statically declared via U_BOOT_DEVICE()
      - Surround DM_FLAG_PRE_RELOC flag with OF_CONTROL check, for
        drivers that support both statically declared devices and
        configuration from device tree
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      e3245e42
    • Bin Meng's avatar
      sysreset: Remove DM_FLAG_PRE_RELOC flag in various drivers · ef329a6a
      Bin Meng authored
      
      When a driver declares DM_FLAG_PRE_RELOC flag, it wishes to be
      bound before relocation. However due to a bug in the DM core,
      the flag only takes effect when devices are statically declared
      via U_BOOT_DEVICE(). This bug has been fixed recently by commit
      "dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in
      lists_bind_fdt()", but with the fix, it has a side effect that
      all existing drivers that declared DM_FLAG_PRE_RELOC flag will
      be bound before relocation now. This may expose potential boot
      failure on some boards due to insufficient memory during the
      pre-relocation stage.
      
      To mitigate this potential impact, the following changes are
      implemented:
      
      - Remove DM_FLAG_PRE_RELOC flag in the driver, if the driver
        only supports configuration from device tree (OF_CONTROL)
      - Keep DM_FLAG_PRE_RELOC flag in the driver only if the device
        is statically declared via U_BOOT_DEVICE()
      - Surround DM_FLAG_PRE_RELOC flag with OF_CONTROL check, for
        drivers that support both statically declared devices and
        configuration from device tree
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      ef329a6a
    • Bin Meng's avatar
      serial: Remove DM_FLAG_PRE_RELOC flag in various drivers · 46879196
      Bin Meng authored
      
      When a driver declares DM_FLAG_PRE_RELOC flag, it wishes to be
      bound before relocation. However due to a bug in the DM core,
      the flag only takes effect when devices are statically declared
      via U_BOOT_DEVICE(). This bug has been fixed recently by commit
      "dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in
      lists_bind_fdt()", but with the fix, it has a side effect that
      all existing drivers that declared DM_FLAG_PRE_RELOC flag will
      be bound before relocation now. This may expose potential boot
      failure on some boards due to insufficient memory during the
      pre-relocation stage.
      
      To mitigate this potential impact, the following changes are
      implemented:
      
      - Remove DM_FLAG_PRE_RELOC flag in the driver, if the driver
        only supports configuration from device tree (OF_CONTROL)
      - Keep DM_FLAG_PRE_RELOC flag in the driver only if the device
        is statically declared via U_BOOT_DEVICE()
      - Surround DM_FLAG_PRE_RELOC flag with OF_CONTROL check, for
        drivers that support both statically declared devices and
        configuration from device tree
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      46879196
    • Bin Meng's avatar
      timer: Remove DM_FLAG_PRE_RELOC flag in various drivers · d7a184d4
      Bin Meng authored
      
      When a driver declares DM_FLAG_PRE_RELOC flag, it wishes to be
      bound before relocation. However due to a bug in the DM core,
      the flag only takes effect when devices are statically declared
      via U_BOOT_DEVICE(). This bug has been fixed recently by commit
      "dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in
      lists_bind_fdt()", but with the fix, it has a side effect that
      all existing drivers that declared DM_FLAG_PRE_RELOC flag will
      be bound before relocation now. This may expose potential boot
      failure on some boards due to insufficient memory during the
      pre-relocation stage.
      
      To mitigate this potential impact, the following changes are
      implemented:
      
      - Remove DM_FLAG_PRE_RELOC flag in the driver, if the driver
        only supports configuration from device tree (OF_CONTROL)
      - Keep DM_FLAG_PRE_RELOC flag in the driver only if the device
        is statically declared via U_BOOT_DEVICE()
      - Surround DM_FLAG_PRE_RELOC flag with OF_CONTROL check, for
        drivers that support both statically declared devices and
        configuration from device tree
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      d7a184d4
    • Bin Meng's avatar
      ram: bmips: Remove DM_FLAG_PRE_RELOC flag · 05e42481
      Bin Meng authored
      
      When a driver declares DM_FLAG_PRE_RELOC flag, it wishes to be
      bound before relocation. However due to a bug in the DM core,
      the flag only takes effect when devices are statically declared
      via U_BOOT_DEVICE(). This bug has been fixed recently by commit
      "dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in
      lists_bind_fdt()", but with the fix, it has a side effect that
      all existing drivers that declared DM_FLAG_PRE_RELOC flag will
      be bound before relocation now. This may expose potential boot
      failure on some boards due to insufficient memory during the
      pre-relocation stage.
      
      To mitigate this potential impact, the following changes are
      implemented:
      
      - Remove DM_FLAG_PRE_RELOC flag in the driver, if the driver
        only supports configuration from device tree (OF_CONTROL)
      - Keep DM_FLAG_PRE_RELOC flag in the driver only if the device
        is statically declared via U_BOOT_DEVICE()
      - Surround DM_FLAG_PRE_RELOC flag with OF_CONTROL check, for
        drivers that support both statically declared devices and
        configuration from device tree
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      05e42481
    • Bin Meng's avatar
      pinctrl: Remove DM_FLAG_PRE_RELOC flag in various drivers · ad0e8048
      Bin Meng authored
      
      When a driver declares DM_FLAG_PRE_RELOC flag, it wishes to be
      bound before relocation. However due to a bug in the DM core,
      the flag only takes effect when devices are statically declared
      via U_BOOT_DEVICE(). This bug has been fixed recently by commit
      "dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in
      lists_bind_fdt()", but with the fix, it has a side effect that
      all existing drivers that declared DM_FLAG_PRE_RELOC flag will
      be bound before relocation now. This may expose potential boot
      failure on some boards due to insufficient memory during the
      pre-relocation stage.
      
      To mitigate this potential impact, the following changes are
      implemented:
      
      - Remove DM_FLAG_PRE_RELOC flag in the driver, if the driver
        only supports configuration from device tree (OF_CONTROL)
      - Keep DM_FLAG_PRE_RELOC flag in the driver only if the device
        is statically declared via U_BOOT_DEVICE()
      - Surround DM_FLAG_PRE_RELOC flag with OF_CONTROL check, for
        drivers that support both statically declared devices and
        configuration from device tree
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      ad0e8048
    • Bin Meng's avatar
      mmc: omap: Surround DM_FLAG_PRE_RELOC flag with OF_CONTROL check · 223b10ca
      Bin Meng authored
      
      When a driver declares DM_FLAG_PRE_RELOC flag, it wishes to be
      bound before relocation. However due to a bug in the DM core,
      the flag only takes effect when devices are statically declared
      via U_BOOT_DEVICE(). This bug has been fixed recently by commit
      "dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in
      lists_bind_fdt()", but with the fix, it has a side effect that
      all existing drivers that declared DM_FLAG_PRE_RELOC flag will
      be bound before relocation now. This may expose potential boot
      failure on some boards due to insufficient memory during the
      pre-relocation stage.
      
      To mitigate this potential impact, the following changes are
      implemented:
      
      - Remove DM_FLAG_PRE_RELOC flag in the driver, if the driver
        only supports configuration from device tree (OF_CONTROL)
      - Keep DM_FLAG_PRE_RELOC flag in the driver only if the device
        is statically declared via U_BOOT_DEVICE()
      - Surround DM_FLAG_PRE_RELOC flag with OF_CONTROL check, for
        drivers that support both statically declared devices and
        configuration from device tree
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      223b10ca
    • Bin Meng's avatar
      i2c: omap24xx: Surround DM_FLAG_PRE_RELOC flag with OF_CONTROL check · e0cfc209
      Bin Meng authored
      
      When a driver declares DM_FLAG_PRE_RELOC flag, it wishes to be
      bound before relocation. However due to a bug in the DM core,
      the flag only takes effect when devices are statically declared
      via U_BOOT_DEVICE(). This bug has been fixed recently by commit
      "dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in
      lists_bind_fdt()", but with the fix, it has a side effect that
      all existing drivers that declared DM_FLAG_PRE_RELOC flag will
      be bound before relocation now. This may expose potential boot
      failure on some boards due to insufficient memory during the
      pre-relocation stage.
      
      To mitigate this potential impact, the following changes are
      implemented:
      
      - Remove DM_FLAG_PRE_RELOC flag in the driver, if the driver
        only supports configuration from device tree (OF_CONTROL)
      - Keep DM_FLAG_PRE_RELOC flag in the driver only if the device
        is statically declared via U_BOOT_DEVICE()
      - Surround DM_FLAG_PRE_RELOC flag with OF_CONTROL check, for
        drivers that support both statically declared devices and
        configuration from device tree
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      e0cfc209
    • Bin Meng's avatar
      gpio: Remove DM_FLAG_PRE_RELOC flag in various drivers · 695c4994
      Bin Meng authored
      
      When a driver declares DM_FLAG_PRE_RELOC flag, it wishes to be
      bound before relocation. However due to a bug in the DM core,
      the flag only takes effect when devices are statically declared
      via U_BOOT_DEVICE(). This bug has been fixed recently by commit
      "dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in
      lists_bind_fdt()", but with the fix, it has a side effect that
      all existing drivers that declared DM_FLAG_PRE_RELOC flag will
      be bound before relocation now. This may expose potential boot
      failure on some boards due to insufficient memory during the
      pre-relocation stage.
      
      To mitigate this potential impact, the following changes are
      implemented:
      
      - Remove DM_FLAG_PRE_RELOC flag in the driver, if the driver
        only supports configuration from device tree (OF_CONTROL)
      - Keep DM_FLAG_PRE_RELOC flag in the driver only if the device
        is statically declared via U_BOOT_DEVICE()
      - Surround DM_FLAG_PRE_RELOC flag with OF_CONTROL check, for
        drivers that support both statically declared devices and
        configuration from device tree
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: default avatarPatrick Delaunay <patrick.delaunay@st.com>
      695c4994
    • Bin Meng's avatar
      clk: Remove DM_FLAG_PRE_RELOC flag in various drivers · e2508066
      Bin Meng authored
      
      When a driver declares DM_FLAG_PRE_RELOC flag, it wishes to be
      bound before relocation. However due to a bug in the DM core,
      the flag only takes effect when devices are statically declared
      via U_BOOT_DEVICE(). This bug has been fixed recently by commit
      "dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in
      lists_bind_fdt()", but with the fix, it has a side effect that
      all existing drivers that declared DM_FLAG_PRE_RELOC flag will
      be bound before relocation now. This may expose potential boot
      failure on some boards due to insufficient memory during the
      pre-relocation stage.
      
      To mitigate this potential impact, the following changes are
      implemented:
      
      - Remove DM_FLAG_PRE_RELOC flag in the driver, if the driver
        only supports configuration from device tree (OF_CONTROL)
      - Keep DM_FLAG_PRE_RELOC flag in the driver only if the device
        is statically declared via U_BOOT_DEVICE()
      - Surround DM_FLAG_PRE_RELOC flag with OF_CONTROL check, for
        drivers that support both statically declared devices and
        configuration from device tree
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      e2508066
    • Bin Meng's avatar
      arm: stm32mp: Remove DM_FLAG_PRE_RELOC flag · 4854ebc5
      Bin Meng authored
      
      When a driver declares DM_FLAG_PRE_RELOC flag, it wishes to be
      bound before relocation. However due to a bug in the DM core,
      the flag only takes effect when devices are statically declared
      via U_BOOT_DEVICE(). This bug has been fixed recently by commit
      "dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in
      lists_bind_fdt()", but with the fix, it has a side effect that
      all existing drivers that declared DM_FLAG_PRE_RELOC flag will
      be bound before relocation now. This may expose potential boot
      failure on some boards due to insufficient memory during the
      pre-relocation stage.
      
      To mitigate this potential impact, the following changes are
      implemented:
      
      - Remove DM_FLAG_PRE_RELOC flag in the driver, if the driver
        only supports configuration from device tree (OF_CONTROL)
      - Keep DM_FLAG_PRE_RELOC flag in the driver only if the device
        is statically declared via U_BOOT_DEVICE()
      - Surround DM_FLAG_PRE_RELOC flag with OF_CONTROL check, for
        drivers that support both statically declared devices and
        configuration from device tree
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: default avatarPatrick Delaunay <patrick.delaunay@st.com>
      4854ebc5
    • Simon Goldschmidt's avatar
      serial: ns16550: fix debug uart putc called before init · 6f57c344
      Simon Goldschmidt authored
      
      If _debug_uart_putc() is called before _debug_uart_init(), the
      ns16550 debug uart driver hangs in a tight loop waiting for the
      tx FIFO to get empty.
      
      As this can happen via a printf sneaking in before the port calls
      debug_uart_init(), let's rather ignore characters before the debug
      uart is initialized.
      
      This is done by reading the baudrate divisor and aborting if is zero.
      
      Tested on socfpga_cyclone5_socrates.
      
      Signed-off-by: default avatarSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      6f57c344
    • Liviu Dudau's avatar
      uclass: Use uclass_foreach_dev() macro instead of open coding · 81f351d6
      Liviu Dudau authored
      
      Use the uclass_foreach_dev() macro instead of the open coded version.
      
      Signed-off-by: default avatarLiviu Dudau <liviu.dudau@foss.arm.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      81f351d6
    • Bin Meng's avatar
      doc: Document virtio support · 216460ec
      Bin Meng authored
      
      Add REAME.virtio to describe the information about U-Boot support for
      VirtIO devices, including supported boards, build instructions, driver
      details etc.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      216460ec
    • Bin Meng's avatar
      test: dm: virtio: Add test cases for virtio uclass · 4f89d494
      Bin Meng authored
      
      Now that we have a sandbox virtio transport driver, add some test
      cases to test virtio uclass driver.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      4f89d494
    • Bin Meng's avatar
      virtio: Add a Sandbox transport driver · 640aae0f
      Bin Meng authored
      
      This driver provides support for Sandbox implementation of virtio
      transport driver which is used for testing purpose only.
      
      Two drivers are provided. The 2nd one is a driver that lacks the
      'notify' op.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      640aae0f
    • Bin Meng's avatar
      virtio: net: Support non-legacy device · 699aae08
      Bin Meng authored
      
      For v1.0 compliant device, it always assumes the member 'num_buffers'
      exists in the struct virtio_net_hdr while the legacy driver only
      presented 'num_buffers' when VIRTIO_NET_F_MRG_RXBUF was negotiated.
      Without that feature the structure was 2 bytes shorter.
      
      Update the driver to support the non-legacy device.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      699aae08
    • Bin Meng's avatar
      virtio: pci: Support non-legacy PCI transport device · 550435ed
      Bin Meng authored
      
      By default QEMU creates legacy PCI transport devices, but we can
      ask QEMU to create non-legacy one if we pass additional device
      property/value pairs in the command line:
      
        -device virtio-blk-pci,disable-legacy=true,disable-modern=false
      
      This adds a new driver driver to support non-legacy (modern) device
      mode. Previous driver/file name is changed accordingly.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      550435ed
    • Bin Meng's avatar
      test: dm: pci: Add cases for finding next PCI capability APIs · 7a20614e
      Bin Meng authored
      
      Add test cases to cover the two newly added PCI APIs:
      dm_pci_find_next_capability() & dm_pci_find_next_ext_capability().
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      7a20614e
    • Bin Meng's avatar
      dm: pci: Add APIs to find next capability and extended capability · a8c5f8d3
      Bin Meng authored
      
      This introduces two new APIs dm_pci_find_next_capability() and
      dm_pci_find_next_ext_capability() to get PCI capability address
      and PCI express extended capability address for a given PCI device
      starting from a given offset.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      a8c5f8d3
    • Bin Meng's avatar
      x86: qemu: Imply virtio PCI transport and device drivers · c80c7798
      Bin Meng authored
      
      Add virtio drivers for QEMU x86 targets.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      c80c7798
    • Bin Meng's avatar
      arm: qemu: Enumerate virtio bus during early boot · b9b5956e
      Bin Meng authored
      
      Currently devices on the virtio bus is not automatically enumerated,
      which means peripherals on the virtio bus are not discovered by their
      drivers. This uses board_init() to do the virtio enumeration.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      b9b5956e
    • Bin Meng's avatar
      arm: qemu: Add a Kconfig in the board directory · 6f332765
      Bin Meng authored
      
      This adds a Kconfig file in the board directory, so that some
      board-specific options can be specified there.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      6f332765
    • Bin Meng's avatar
      virtio: Add virtio over pci transport driver · 4135e107
      Bin Meng authored
      
      This adds a transport driver that implements UCLASS_VIRTIO for
      virtio over pci, which is commonly used on x86.
      
      It only supports the legacy interface of the pci transport, which
      is the default device that QEMU emulates.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      4135e107
    • Bin Meng's avatar
      x86: Implement arch-specific io accessor routines · 3bf9a8e8
      Bin Meng authored
      
      At present the generic io{read,write}{8,16,32} routines only support
      MMIO access. With architecture like x86 that has a separate IO space,
      these routines cannot be used to access I/O ports.
      
      Implement x86-specific version to support both PIO and MMIO access,
      so that drivers for multiple architectures can use these accessors
      without the need to know whether it's MMIO or PIO.
      
      These are ported from Linux kernel lib/iomap.c, with slight changes.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      3bf9a8e8
    • Bin Meng's avatar
      kconfig: Introduce HAVE_ARCH_IOMAP · 2895c4b7
      Bin Meng authored
      
      Introduce a new Kconfig option for architecture codes to control
      whether it provides io{read,write}{8,16,32} I/O accessor functions.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      2895c4b7
    • Bin Meng's avatar
      riscv: qemu: Include some useful commands · 440d9a47
      Bin Meng authored
      
      With the virtio net and blk drivers, we can do more stuff with some
      useful commands. Imply those in the board Kconfig.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      440d9a47
    • Bin Meng's avatar
      riscv: qemu: Enumerate virtio bus during early boot · 3c5196dc
      Bin Meng authored
      
      Currently devices on the virtio bus is not automatically enumerated,
      which means peripherals on the virtio bus are not discovered by their
      drivers. This uses board_init() to do the virtio enumeration.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      3c5196dc
    • Tuomas Tynkkynen's avatar
      virtio: cmd: Add virtio command for virtio devices · 78e12901
      Tuomas Tynkkynen authored
      
      Add 'virtio' command in U-Boot command line.
      
      Signed-off-by: default avatarTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      78e12901
    • Tuomas Tynkkynen's avatar
      virtio: Add block driver support · f4802209
      Tuomas Tynkkynen authored
      
      This adds virtio block device driver support.
      
      Signed-off-by: default avatarTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      f4802209
    • Tuomas Tynkkynen's avatar
      blk: Introduce IF_TYPE_VIRTIO · 4ad54ec4
      Tuomas Tynkkynen authored
      
      This adds a new block interface type for VirtIO block devices.
      
      Signed-off-by: default avatarTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      4ad54ec4
Loading