mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
misc: rtsx: Add hardware auto power off for RTS5261
This patch enable hardware auto power off when card is removed. Signed-off-by: Rui Feng <rui_feng@realsil.com.cn> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/1604397312-2991-1-git-send-email-rui_feng@realsil.com.cn Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
@@ -82,6 +82,7 @@
|
||||
#define MS_OC_INT_EN (1 << 23)
|
||||
#define SD_OC_INT_EN (1 << 22)
|
||||
|
||||
#define RTSX_DUM_REG 0x1C
|
||||
|
||||
/*
|
||||
* macros for easy use
|
||||
@@ -1272,6 +1273,8 @@ struct rtsx_pcr {
|
||||
#define PCI_PID(pcr) ((pcr)->pci->device)
|
||||
#define is_version(pcr, pid, ver) \
|
||||
(CHK_PCI_PID(pcr, pid) && (pcr)->ic_version == (ver))
|
||||
#define is_version_higher_than(pcr, pid, ver) \
|
||||
(CHK_PCI_PID(pcr, pid) && (pcr)->ic_version > (ver))
|
||||
#define pcr_dbg(pcr, fmt, arg...) \
|
||||
dev_dbg(&(pcr)->pci->dev, fmt, ##arg)
|
||||
|
||||
|
Reference in New Issue
Block a user