summaryrefslogtreecommitdiffstats
path: root/sys/dev/mmc/mmcbrvar.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/mmc/mmcbrvar.h')
-rw-r--r--sys/dev/mmc/mmcbrvar.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/dev/mmc/mmcbrvar.h b/sys/dev/mmc/mmcbrvar.h
index d8f7915..c8cf002 100644
--- a/sys/dev/mmc/mmcbrvar.h
+++ b/sys/dev/mmc/mmcbrvar.h
@@ -70,6 +70,7 @@ enum mmcbr_device_ivars {
MMCBR_IVAR_MODE,
MMCBR_IVAR_OCR,
MMCBR_IVAR_POWER_MODE,
+ MMCBR_IVAR_RETUNE_REQ,
MMCBR_IVAR_VDD,
MMCBR_IVAR_VCCQ,
MMCBR_IVAR_CAPS,
@@ -94,6 +95,7 @@ MMCBR_ACCESSOR(host_ocr, HOST_OCR, int)
MMCBR_ACCESSOR(mode, MODE, int)
MMCBR_ACCESSOR(ocr, OCR, int)
MMCBR_ACCESSOR(power_mode, POWER_MODE, int)
+MMCBR_ACCESSOR(retune_req, RETUNE_REQ, int)
MMCBR_ACCESSOR(vdd, VDD, int)
MMCBR_ACCESSOR(vccq, VCCQ, int)
MMCBR_ACCESSOR(caps, CAPS, int)
@@ -109,6 +111,20 @@ mmcbr_update_ios(device_t dev)
}
static int __inline
+mmcbr_tune(device_t dev, bool hs400)
+{
+
+ return (MMCBR_TUNE(device_get_parent(dev), dev, hs400));
+}
+
+static int __inline
+mmcbr_retune(device_t dev, bool reset)
+{
+
+ return (MMCBR_RETUNE(device_get_parent(dev), dev, reset));
+}
+
+static int __inline
mmcbr_switch_vccq(device_t dev)
{
OpenPOWER on IntegriCloud