1. 17 11月, 2018 1 次提交
  2. 16 11月, 2018 1 次提交
  3. 15 11月, 2018 38 次提交
    • T
      travis: Ensure we use pytest 2.8.7 · f6206f85
      Tom Rini 提交于
      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: NTom Rini <trini@konsulko.com>
      f6206f85
    • T
      Merge branch 'master' of git://git.denx.de/u-boot-sunxi · 6f443330
      Tom Rini 提交于
      6f443330
    • B
      Revert "imx8qxp_mek: Disable CONFIG_DISPLAY_CPUINFO" · 4c6e27f6
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      4c6e27f6
    • B
      cpu: sandbox: Add "u-boot, dm-pre-reloc" for all cpu nodes · 25d0fe74
      Bin Meng 提交于
      To support CONFIG_DISPLAY_CPUINFO, add "u-boot,dm-pre-reloc" for
      all cpu nodes in Sandbox test.dts.
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NStefan Roese <sr@denx.de>
      25d0fe74
    • B
      cpu: Add DM_FLAG_PRE_RELOC flag to various cpu drivers · c337e1af
      Bin Meng 提交于
      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: NStefan Roese <sr@denx.de>
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NStefan Roese <sr@denx.de>
      Tested-by: NStefan Roese <sr@denx.de>
      c337e1af
    • B
      dm: doc: Update description of pre-relocation support · 1a6bd471
      Bin Meng 提交于
      Add some description about pre-relocation driver binding, including
      usage of DM_FLAG_PRE_RELOC flag and caveats.
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      1a6bd471
    • B
      watchdog: Remove DM_FLAG_PRE_RELOC flag in various drivers · 8ee27da3
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      8ee27da3
    • B
      video: simplefb: Remove DM_FLAG_PRE_RELOC flag · e3245e42
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      e3245e42
    • B
      sysreset: Remove DM_FLAG_PRE_RELOC flag in various drivers · ef329a6a
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      ef329a6a
    • B
      serial: Remove DM_FLAG_PRE_RELOC flag in various drivers · 46879196
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      46879196
    • B
      timer: Remove DM_FLAG_PRE_RELOC flag in various drivers · d7a184d4
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      d7a184d4
    • B
      ram: bmips: Remove DM_FLAG_PRE_RELOC flag · 05e42481
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      05e42481
    • B
      pinctrl: Remove DM_FLAG_PRE_RELOC flag in various drivers · ad0e8048
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      ad0e8048
    • B
      mmc: omap: Surround DM_FLAG_PRE_RELOC flag with OF_CONTROL check · 223b10ca
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      223b10ca
    • B
      i2c: omap24xx: Surround DM_FLAG_PRE_RELOC flag with OF_CONTROL check · e0cfc209
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      e0cfc209
    • B
      gpio: Remove DM_FLAG_PRE_RELOC flag in various drivers · 695c4994
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NPatrick Delaunay <patrick.delaunay@st.com>
      695c4994
    • B
      clk: Remove DM_FLAG_PRE_RELOC flag in various drivers · e2508066
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      e2508066
    • B
      arm: stm32mp: Remove DM_FLAG_PRE_RELOC flag · 4854ebc5
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NPatrick Delaunay <patrick.delaunay@st.com>
      4854ebc5
    • S
      serial: ns16550: fix debug uart putc called before init · 6f57c344
      Simon Goldschmidt 提交于
      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: NSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
      Acked-by: NSimon Glass <sjg@chromium.org>
      6f57c344
    • L
      uclass: Use uclass_foreach_dev() macro instead of open coding · 81f351d6
      Liviu Dudau 提交于
      Use the uclass_foreach_dev() macro instead of the open coded version.
      Signed-off-by: NLiviu Dudau <liviu.dudau@foss.arm.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      81f351d6
    • B
      doc: Document virtio support · 216460ec
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      216460ec
    • B
      test: dm: virtio: Add test cases for virtio uclass · 4f89d494
      Bin Meng 提交于
      Now that we have a sandbox virtio transport driver, add some test
      cases to test virtio uclass driver.
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      4f89d494
    • B
      virtio: Add a Sandbox transport driver · 640aae0f
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      640aae0f
    • B
      virtio: net: Support non-legacy device · 699aae08
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      699aae08
    • B
      virtio: pci: Support non-legacy PCI transport device · 550435ed
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      550435ed
    • B
      test: dm: pci: Add cases for finding next PCI capability APIs · 7a20614e
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      7a20614e
    • B
      dm: pci: Add APIs to find next capability and extended capability · a8c5f8d3
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      a8c5f8d3
    • B
      x86: qemu: Imply virtio PCI transport and device drivers · c80c7798
      Bin Meng 提交于
      Add virtio drivers for QEMU x86 targets.
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      c80c7798
    • B
      arm: qemu: Enumerate virtio bus during early boot · b9b5956e
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      b9b5956e
    • B
      arm: qemu: Add a Kconfig in the board directory · 6f332765
      Bin Meng 提交于
      This adds a Kconfig file in the board directory, so that some
      board-specific options can be specified there.
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      6f332765
    • B
      virtio: Add virtio over pci transport driver · 4135e107
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      4135e107
    • B
      x86: Implement arch-specific io accessor routines · 3bf9a8e8
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      3bf9a8e8
    • B
      kconfig: Introduce HAVE_ARCH_IOMAP · 2895c4b7
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      2895c4b7
    • B
      riscv: qemu: Include some useful commands · 440d9a47
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      440d9a47
    • B
      riscv: qemu: Enumerate virtio bus during early boot · 3c5196dc
      Bin Meng 提交于
      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: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      3c5196dc
    • T
      virtio: cmd: Add virtio command for virtio devices · 78e12901
      Tuomas Tynkkynen 提交于
      Add 'virtio' command in U-Boot command line.
      Signed-off-by: NTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      78e12901
    • T
      virtio: Add block driver support · f4802209
      Tuomas Tynkkynen 提交于
      This adds virtio block device driver support.
      Signed-off-by: NTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      f4802209
    • T
      blk: Introduce IF_TYPE_VIRTIO · 4ad54ec4
      Tuomas Tynkkynen 提交于
      This adds a new block interface type for VirtIO block devices.
      Signed-off-by: NTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      4ad54ec4