diff options
author | Wei WANG <wei_wang@realsil.com.cn> | 2013-08-20 02:18:53 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-08-20 04:22:00 -0400 |
commit | 7140812c4a3676e834bc2ed587be441afba04e18 (patch) | |
tree | 909e271fdec86b71028d78576621855f9c5a0247 /drivers/mfd/rts5209.c | |
parent | 5947c167d145f32d4475d647a87e2af2699efe45 (diff) |
mfd: rtsx: Move some actions from rtsx_pci_init_hw to individual extra_init_hw
These actions are individual for each reader model, so should be put in
extra_init_hw instead of rtsx_pci_init_hw.
Signed-off-by: Wei WANG <wei_wang@realsil.com.cn>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/rts5209.c')
-rw-r--r-- | drivers/mfd/rts5209.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mfd/rts5209.c b/drivers/mfd/rts5209.c index c67935efd4f5..03a15f779ebb 100644 --- a/drivers/mfd/rts5209.c +++ b/drivers/mfd/rts5209.c | |||
@@ -70,6 +70,10 @@ static int rts5209_extra_init_hw(struct rtsx_pcr *pcr) | |||
70 | 70 | ||
71 | /* Turn off LED */ | 71 | /* Turn off LED */ |
72 | rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, CARD_GPIO, 0xFF, 0x03); | 72 | rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, CARD_GPIO, 0xFF, 0x03); |
73 | /* Reset ASPM state to default value */ | ||
74 | rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, ASPM_FORCE_CTL, 0x3F, 0); | ||
75 | /* Force CLKREQ# PIN to drive 0 to request clock */ | ||
76 | rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, PETXCFG, 0x08, 0x08); | ||
73 | /* Configure GPIO as output */ | 77 | /* Configure GPIO as output */ |
74 | rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, CARD_GPIO_DIR, 0xFF, 0x03); | 78 | rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, CARD_GPIO_DIR, 0xFF, 0x03); |
75 | /* Configure driving */ | 79 | /* Configure driving */ |