projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b0f429
)
misc: rtsx: Add CD & WP reverse support for RTS5261
author
Rui Feng
<rui_feng@realsil.com.cn>
Tue, 3 Nov 2020 09:55:05 +0000
(17:55 +0800)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 16 Nov 2020 10:59:30 +0000
(11:59 +0100)
This patch add CD & WP reverse support for RTS5261
Signed-off-by: Rui Feng <rui_feng@realsil.com.cn>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link:
https://lore.kernel.org/r/1604397305-2956-1-git-send-email-rui_feng@realsil.com.cn
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/misc/cardreader/rts5261.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/misc/cardreader/rts5261.c
b/drivers/misc/cardreader/rts5261.c
index ce65c5703453ffda45b9d5747ed814bc8e2da366..0ef6b3e04a8d38217a354ec81d6a9e74f0ca8809 100644
(file)
--- a/
drivers/misc/cardreader/rts5261.c
+++ b/
drivers/misc/cardreader/rts5261.c
@@
-510,6
+510,11
@@
static int rts5261_extra_init_hw(struct rtsx_pcr *pcr)
/* Configure driving */
rts5261_fill_driving(pcr, OUTPUT_3V3);
+ if (pcr->flags & PCR_REVERSE_SOCKET)
+ rtsx_pci_write_register(pcr, PETXCFG, 0x30, 0x30);
+ else
+ rtsx_pci_write_register(pcr, PETXCFG, 0x30, 0x00);
+
/*
* If u_force_clkreq_0 is enabled, CLKREQ# PIN will be forced
* to drive low, and we forcibly request clock.