1. 02 4月, 2015 1 次提交
    • M
      hw: Mark devices picking up block backends actively FIXME · af9e40aa
      Markus Armbruster 提交于
      Drives defined with if!=none are for board initialization to wire up.
      Board code calls drive_get() or similar to find them, and creates
      devices with their qdev drive properties set accordingly.
      
      Except a few devices go on a fishing expedition for a suitable backend
      instead of exposing a drive property for board code to set: they call
      driver_get() or drive_get_next() in their realize() or init() method
      to implicitly connect to the "next" backend with a certain interface
      type.
      
      Picking up backends that way works when the devices are created by
      board code.  But it's inappropriate for -device or device_add.  Not
      only is this inconsistent with how the other block device models work
      (they connect to a backend explicitly identified by a "drive"
      property), it breaks when the "next" backend has been picked up by the
      board already.
      
      Example:
      
          $ qemu-system-arm -S -M connex -pflash flash.img -device ssi-sd
          Aborted (core dumped)
      
      Mark them with suitable FIXME comments.
      
      Cc: Andrzej Zaborowski <balrogg@gmail.com>
      Cc: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
      Cc: "Andreas Färber" <andreas.faerber@web.de>
      Cc: Michael Walle <michael@walle.cc>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      af9e40aa
  2. 20 10月, 2014 2 次提交
  3. 21 6月, 2014 2 次提交
  4. 14 5月, 2014 1 次提交
  5. 13 3月, 2014 1 次提交
  6. 11 10月, 2013 1 次提交
  7. 19 7月, 2013 1 次提交
  8. 01 6月, 2013 1 次提交
  9. 12 5月, 2013 1 次提交
    • E
      m25p80.c: Sync Flash chip list with Linux · 3e758c1d
      Ed Maste 提交于
      Add new devices for various manufacturers, and re-sort Spansion list to
      match the order in Linux, which requires chips with a non-zero extended ID
      to come first.
      
      With this commit the outstanding differences to Linux rev 55bf75b are:
      
      - Erase size flag differences in s25sl032p, s25sl064p, s25fl016k, s25fl064k
        (These devices have only some blocks that support small erase sizes.)
      - Linux lacks n25q128
      - Devices without a Jedec ID have been excluded
      Signed-off-by: NEd Maste <emaste@freebsd.org>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      3e758c1d
  10. 19 4月, 2013 1 次提交
  11. 16 4月, 2013 4 次提交
  12. 15 4月, 2013 1 次提交
  13. 09 4月, 2013 2 次提交
  14. 01 3月, 2013 2 次提交
    • P
      hw: include hw header files with full paths · 83c9f4ca
      Paolo Bonzini 提交于
      Done with this script:
      
      cd hw
      for i in `find . -name '*.h' | sed 's/^..//'`; do
        echo '\,^#.*include.*["<]'$i'[">], s,'$i',hw/&,'
      done | sed -i -f - `find . -type f`
      
      This is so that paths remain valid as files are moved.
      
      Instead, files in hw/dataplane are referenced with the relative path.
      We know they are not going to move to include/, and they are the only
      include files that are in subdirectories _and_ move.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      83c9f4ca
    • P
      m25p80.c: Use QOM classes for part differentiation · a7fd6915
      Peter Crosthwaite 提交于
      Currently, M25P80 uses an object property to differentiate between flash parts.
      Changed this over to use QOM sub-classes - the actual names of the different parts
      are used to create a set of dynamic classes which passes the part info as class
      data. The object no longer needs to search the known_devices table for itself,
      instead it just gets its info from its own class.
      
      Kept the intermediate class definition private to m25p80.c for the moment, as
      the expectation is parts will only be added as new entries in the table. We can
      factor out the TYPE_M25P80 abstraction into a header on a demand basis.
      Signed-off-by: NPeter Crosthwaite <peter.crosthwaite@xilinx.com>
      Message-id: e24e156d-ff96-4901-997a-e31178b08bee@VA3EHSMHS021.ehs.local
      Reviewed-by: NAndreas Färber <afaerber@suse.de>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      a7fd6915
  15. 12 2月, 2013 1 次提交
    • K
      hw/m25p80.c: add WRSR(0x01) support · 03ec2f83
      Kuo-Jung Su 提交于
      Atmel, SST and Intel/Numonyx serial flash tend to power up
      with the software protection bits set.
      And thus the new m25p80.c in linux kernel would always tries
      to use WREN(0x06) + WRSR(0x01) to turn-off the protection.
      
      The WEL(0x02) of status register is supposed to be cleared after
      WRSR(0x01). There are also some drivers (i.e mine for RTOSes)
      would check the WEL(0x02) in status register to make sure the
      protection is correctly turned off.
      Signed-off-by: NKuo-Jung Su <dantesu@faraday-tech.com>
      Cc: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
      Cc: Peter Maydell <peter.maydell@linaro.org>
      Cc: Edgar E. Iglesias <edgar.iglesias@gmail.com>
      Reviewed-by: NPeter Crosthwaite <peter.crosthwaite@xilinx.com>
      Signed-off-by: NEdgar E. Iglesias <edgar.iglesias@gmail.com>
      03ec2f83
  16. 27 1月, 2013 1 次提交
  17. 19 12月, 2012 1 次提交
  18. 29 10月, 2012 1 次提交
  19. 10 10月, 2012 1 次提交