mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
misc: rtsx: init of rts522a add OCP power off when no card is present
commit 920fd8a70619074eac7687352c8f1c6f3c2a64a5 upstream. Power down OCP for power consumption when no SD/MMC card is present Cc: [email protected] Signed-off-by: Ricky Wu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
aa00c2d60a
commit
d82d5a77f0
1 changed files with 5 additions and 0 deletions
|
|
@ -338,6 +338,11 @@ static int rts522a_extra_init_hw(struct rtsx_pcr *pcr)
|
|||
{
|
||||
rts5227_extra_init_hw(pcr);
|
||||
|
||||
/* Power down OCP for power consumption */
|
||||
if (!pcr->card_exist)
|
||||
rtsx_pci_write_register(pcr, FPDCTL, OC_POWER_DOWN,
|
||||
OC_POWER_DOWN);
|
||||
|
||||
rtsx_pci_write_register(pcr, FUNC_FORCE_CTL, FUNC_FORCE_UPME_XMT_DBG,
|
||||
FUNC_FORCE_UPME_XMT_DBG);
|
||||
rtsx_pci_write_register(pcr, PCLK_CTL, 0x04, 0x04);
|
||||
|
|
|
|||
Loading…
Reference in a new issue