a21208646d
sdcard: use a more descriptive label 'unimplemented_spi_cmd'
...
Suggested-by: Alistair Francis <alistair.francis@xilinx.com >
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180215221325.7611-12-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:53 +00:00
688491c71a
sdcard: handle the Security Specification commands
...
returning sd_illegal, since they are not implemented.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180215221325.7611-11-f4bug@amsat.org
[PMM: tweak multiline comment format]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:53 +00:00
49fb7381b2
sdcard: handle CMD54 (SDIO)
...
Linux uses it to poll the bus before polling for a card.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180215221325.7611-10-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:53 +00:00
da26e3f360
sdcard: use the registerfields API for the CARD_STATUS register masks
...
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Acked-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180215221325.7611-9-f4bug@amsat.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:53 +00:00
3d42fb52b2
sdcard: use the correct masked OCR in the R3 reply
...
use the registerfields API to access the OCR register
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180215221325.7611-8-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:53 +00:00
67bfddd62b
sdcard: simplify using the ldst API
...
the code is easier to review/refactor.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180215221325.7611-7-f4bug@amsat.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:53 +00:00
0aad4fdfd4
sdcard: remove commands from unsupported old MMC specification
...
This device does not model MMCA Specification previous to v4.2
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180215221325.7611-6-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:53 +00:00
9b7ec55c5c
sdcard: clean the SCR register and add few comments
...
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180215221325.7611-5-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:53 +00:00
d7ecb86752
sdcard: fix the 'maximum data transfer rate' to 25MHz
...
To comply with Spec v1.10 (and 2.00, 3.01):
. TRAN_SPEED
for current SD Memory Cards that field must be always 0_0110_010b (032h) which is
equal to 25MHz - the mandatory maximum operating frequency of SD Memory Card.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180215221325.7611-4-f4bug@amsat.org
[PMM: fixed comment indent]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:53 +00:00
e8feec808e
sdcard: update the CSD CRC register regardless the CSD structure version
...
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180215221325.7611-3-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:53 +00:00
9273ea6123
sdcard: Don't always set the high capacity bit
...
Don't set the high capacity bit by default as it will be set if required
in the sd_set_csd() function.
[based on a patch from Alistair Francis <alistair.francis@xilinx.com >
and Peter Ogden <ogden@xilinx.com > from qemu/xilinx tag xilinx-v2015.4]
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180215221325.7611-2-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:52 +00:00
6f296421f8
sdcard: use the registerfields API to access the OCR register
...
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180215220540.6556-12-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:52 +00:00
7af83490fe
sdcard: use G_BYTE from cutils
...
code is now easier to read.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180215220540.6556-11-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:52 +00:00
f250015be6
sdcard: define SDMMC_CMD_MAX instead of using the magic '64'
...
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180215220540.6556-8-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:52 +00:00
814b2adc16
sdcard: add more trace events
...
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Acked-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180215220540.6556-6-f4bug@amsat.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:52 +00:00
5cd5e2e7e3
sdcard: replace fprintf() by qemu_hexdump()
...
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180215220540.6556-5-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:52 +00:00
5592193231
sdcard: add a trace event for command responses
...
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-id: 20180215220540.6556-4-f4bug@amsat.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:52 +00:00
1b640aa929
sdcard: replace DPRINTF() by trace events
...
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180215220540.6556-3-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:52 +00:00
d49b1ce0a3
sdcard: reorder SDState struct members
...
place card registers first, this will ease further code movements.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180215220540.6556-2-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:52 +00:00
c3abd91309
hw/sd/ssi-sd: use the SDBus API, connect the SDCard to the bus
...
On reset the bus will reset the card,
we can now drop the device_reset() call.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180216022933.10945-5-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:52 +00:00
3d0369ba49
hw/sd/milkymist-memcard: expose a SDBus and connect the SDCard to it
...
using the sdbus_*() API.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Acked-by: Michael Walle <michael@walle.cc >
Message-id: 20180216022933.10945-4-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:52 +00:00
85fd6e5db1
hw/sd/milkymist-memcard: split realize() out of SysBusDevice init()
...
Create the SDCard in the realize() function.
Suggested-by: Michael Walle <michael@walle.cc >
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Acked-by: Michael Walle <michael@walle.cc >
Message-id: 20180216022933.10945-3-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:51 +00:00
d9f98aab67
hw/sd/milkymist-memcard: use qemu_log_mask()
...
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Acked-by: Michael Walle <michael@walle.cc >
Message-id: 20180216022933.10945-2-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-22 15:12:51 +00:00
1e23b63f02
sdhci: add Spec v4.2 register definitions
...
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20180208164818.7961-31-f4bug@amsat.org >
2018-02-13 16:15:09 +01:00
da34692234
sdhci: implement CMD/DAT[] fields in the Present State register
...
[based on a patch from Alistair Francis <alistair.francis@xilinx.com >
from qemu/xilinx tag xilinx-v2015.2]
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-Id: <20180208164818.7961-23-f4bug@amsat.org >
2018-02-13 16:15:08 +01:00
0034ebe6ee
sdhci: implement UHS-I voltage switch
...
[based on a patch from Alistair Francis <alistair.francis@xilinx.com >
from qemu/xilinx tag xilinx-v2015.2]
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-Id: <20180208164818.7961-22-f4bug@amsat.org >
2018-02-13 16:15:08 +01:00
238cd93567
sdbus: add trace events
...
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-Id: <20180208164818.7961-21-f4bug@amsat.org >
2018-02-13 16:15:08 +01:00
ea55a221bf
sdhci: implement the Host Control 2 register (tuning sequence)
...
[based on a patch from Alistair Francis <alistair.francis@xilinx.com >
from qemu/xilinx tag xilinx-v2015.2]
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-Id: <20180208164818.7961-20-f4bug@amsat.org >
2018-02-13 16:15:08 +01:00
06c5120b09
sdhci: rename the hostctl1 register
...
As per the Spec v3.00
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-Id: <20180208164818.7961-19-f4bug@amsat.org >
2018-02-13 16:15:08 +01:00
4d67852d9c
sdhci: add support for v3 capabilities
...
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-Id: <20180208164818.7961-18-f4bug@amsat.org >
2018-02-13 16:15:08 +01:00
0540fba949
sdhci: check Spec v2 capabilities (DMA and 64-bit bus)
...
Incorrect value will throw an error.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-Id: <20180208164818.7961-14-f4bug@amsat.org >
2018-02-13 16:15:08 +01:00
04654b5a8c
sdhci: Fix 64-bit ADMA2
...
The 64-bit ADMA address is not converted to the cpu endianes correctly.
This patch fixes the issue and uses a valid mask for the attribute data.
Signed-off-by: Sai Pavan Boddu <saipava@xilinx.com >
[AF: Re-write commit message]
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-Id: <20180208164818.7961-13-f4bug@amsat.org >
2018-02-13 16:15:08 +01:00
bf8ec38e17
sdhci: replace DMA magic value by BLOCK_SIZE_MASK
...
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-Id: <20180208164818.7961-12-f4bug@amsat.org >
2018-02-13 16:15:07 +01:00
6ff37c3dfa
sdhci: check the Spec v1 capabilities correctness
...
Incorrect value will throw an error.
Note than Spec v2 is supported by default.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-Id: <20180208164818.7961-11-f4bug@amsat.org >
2018-02-13 16:15:07 +01:00
09b738ff65
sdhci: simplify sdhci_get_fifolen()
...
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-Id: <20180208164818.7961-10-f4bug@amsat.org >
2018-02-13 16:15:07 +01:00
aa164fbff3
sdhci: use a numeric value for the default CAPAB register
...
using many #defines is not portable when scaling to different HCI.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-Id: <20180208164818.7961-9-f4bug@amsat.org >
2018-02-13 16:15:07 +01:00
aceb5b064c
sdhci: add a 'spec_version property' (default to v2)
...
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-Id: <20180208164818.7961-8-f4bug@amsat.org >
2018-02-13 16:15:07 +01:00
ab958e3864
sdhci: use error_propagate(local_err) in realize()
...
avoid the "errp && *errp" pattern (not recommended in "qapi/error.h" comments).
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-Id: <20180208164818.7961-2-f4bug@amsat.org >
2018-02-13 11:44:13 +01:00
7e0019a719
Merge remote-tracking branch 'remotes/armbru/tags/pull-misc-2018-02-07-v4' into staging
...
Miscellaneous patches for 2018-02-07
# gpg: Signature made Fri 09 Feb 2018 12:52:51 GMT
# gpg: using RSA key 3870B400EB918653
# gpg: Good signature from "Markus Armbruster <armbru@redhat.com >"
# gpg: aka "Markus Armbruster <armbru@pond.sub.org >"
# Primary key fingerprint: 354B C8B3 D7EB 2A6B 6867 4E5F 3870 B400 EB91 8653
* remotes/armbru/tags/pull-misc-2018-02-07-v4:
Move include qemu/option.h from qemu-common.h to actual users
Drop superfluous includes of qapi/qmp/qjson.h
Drop superfluous includes of qapi/qmp/dispatch.h
Include qapi/qmp/qnull.h exactly where needed
Include qapi/qmp/qnum.h exactly where needed
Include qapi/qmp/qbool.h exactly where needed
Include qapi/qmp/qstring.h exactly where needed
Include qapi/qmp/qdict.h exactly where needed
Include qapi/qmp/qlist.h exactly where needed
Include qapi/qmp/qobject.h exactly where needed
qdict qlist: Make most helper macros functions
Eliminate qapi/qmp/types.h
Typedef the subtypes of QObject in qemu/typedefs.h, too
Include qmp-commands.h exactly where needed
Drop superfluous includes of qapi/qmp/qerror.h
Include qapi/error.h exactly where needed
Drop superfluous includes of qapi-types.h and test-qapi-types.h
Clean up includes
Use #include "..." for our own headers, <...> for others
vnc: use stubs for CONFIG_VNC=n dummy functions
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-09 14:39:09 +00:00
e688df6bc4
Include qapi/error.h exactly where needed
...
This cleanup makes the number of objects depending on qapi/error.h
drop from 1910 (out of 4743) to 1612 in my "build everything" tree.
While there, separate #include from file comment with a blank line,
and drop a useless comment on why qemu/osdep.h is included first.
Reviewed-by: Eric Blake <eblake@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20180201111846.21846-5-armbru@redhat.com >
[Semantic conflict with commit 34e304e975
resolved, OSX breakage fixed]
2018-02-09 13:50:17 +01:00
fd1e5c8179
sdhci: Add i.MX specific subtype of SDHCI
...
IP block found on several generations of i.MX family does not use
vanilla SDHCI implementation and it comes with a number of quirks.
Introduce i.MX SDHCI subtype of SDHCI block to add code necessary to
support unmodified Linux guest driver.
Cc: Peter Maydell <peter.maydell@linaro.org >
Cc: Jason Wang <jasowang@redhat.com >
Cc: Philippe Mathieu-Daudé <f4bug@amsat.org >
Cc: Marcel Apfelbaum <marcel.apfelbaum@zoho.com >
Cc: Michael S. Tsirkin <mst@redhat.com >
Cc: qemu-devel@nongnu.org
Cc: qemu-arm@nongnu.org
Cc: yurovsky@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
[PMM: define and use ESDHC_UNDOCUMENTED_REG27]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-02-09 10:40:29 +00:00
4e82512586
hw/sd: Replace fprintf(stderr, "*\n" with DPRINTF()
...
Signed-off-by: Alistair Francis <alistair.francis@xilinx.com >
[Most of original patch dropped, commit message replaced to match
what's left]
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20180203084315.20497-11-armbru@redhat.com >
Reviewed-by: Thomas Huth <thuth@redhat.com >
2018-02-06 18:29:26 +01:00
02e57e1c14
sdhci: fix a NULL pointer dereference due to uninitialized AddresSpace object
...
missed in 60765b6cee
.
Thread 1 "qemu-system-aarch64" received signal SIGSEGV, Segmentation fault.
address_space_init (as=0x0, root=0x55555726e410, name=name@entry=0x555555e3f0a7 "sdhci-dma") at memory.c:3050
3050 as->root = root;
(gdb) bt
#0 address_space_init (as=0x0, root=0x55555726e410, name=name@entry=0x555555e3f0a7 "sdhci-dma") at memory.c:3050
#1 0x0000555555af62c3 in sdhci_sysbus_realize (dev=<optimized out>, errp=0x7fff7f931150) at hw/sd/sdhci.c:1564
#2 0x00005555558b25e5 in zynqmp_sdhci_realize (dev=0x555557051520, errp=0x7fff7f931150) at hw/sd/zynqmp-sdhci.c:151
#3 0x0000555555a2e7f3 in device_set_realized (obj=0x555557051520, value=<optimized out>, errp=0x7fff7f931270) at hw/core/qdev.c:966
#4 0x0000555555ba3f74 in property_set_bool (obj=0x555557051520, v=<optimized out>, name=<optimized out>, opaque=0x555556e04a20,
errp=0x7fff7f931270) at qom/object.c:1906
#5 0x0000555555ba51f4 in object_property_set (obj=obj@entry=0x555557051520, v=v@entry=0x5555576dbd60,
name=name@entry=0x555555dd6306 "realized", errp=errp@entry=0x7fff7f931270) at qom/object.c:1102
Suggested-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-id: 20180123132051.24448-1-f4bug@amsat.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-01-25 11:45:30 +00:00
60765b6cee
sdhci: add a 'dma' property to the sysbus devices
...
Add a 'dma' property allowing machine creation to provide the address-space
SDHCI DMA operates on.
[based on a patch from Alistair Francis <alistair.francis@xilinx.com >
from qemu/xilinx tag xilinx-v2016.1]
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-id: 20180115182436.2066-15-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-01-16 13:28:21 +00:00
dd55c485ec
sdhci: fix the PCI device, using the PCI address space for DMA
...
While SysBus devices can use the get_system_memory() address space,
PCI devices should use the bus master address space for DMA.
Suggested-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 20180115182436.2066-14-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-01-16 13:28:21 +00:00
5d2c0464fa
sdhci: Implement write method of ACMD12ERRSTS register
...
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180115182436.2066-13-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-01-16 13:28:20 +00:00
5efc9016e5
sdhci: fix CAPAB/MAXCURR registers, both are 64bit and read-only
...
running qtests:
$ make check-qtest-arm
GTESTER check-qtest-arm
SDHC rd_4b @0x44 not implemented
SDHC wr_4b @0x40 <- 0x89abcdef not implemented
SDHC wr_4b @0x44 <- 0x01234567 not implemented
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180115182436.2066-12-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-01-16 13:28:20 +00:00
cd2094219f
sdhci: rename the SDHC_CAPAB register
...
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180115182436.2066-11-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-01-16 13:28:19 +00:00
24bddf9d4a
sdhci: move MASK_TRNMOD with other SDHC_TRN* defines in "sd-internal.h"
...
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180115182436.2066-10-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-01-16 13:28:19 +00:00
8be487d8f1
sdhci: convert the DPRINT() calls into trace events
...
zero-initialize ADMADescr 'dscr' in sdhci_do_adma() to avoid:
hw/sd/sdhci.c: In function ‘sdhci_do_adma’:
hw/sd/sdhci.c:714:29: error: ‘dscr.addr’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
trace_sdhci_adma("link", s->admasysaddr);
^
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Acked-by: Alistair Francis <alistair.francis@xilinx.com >
Message-id: 20180115182436.2066-9-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-01-16 13:28:18 +00:00