aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei WANG <wei_wang@realsil.com.cn>2013-08-20 02:18:54 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2013-08-20 04:22:00 -0400
commit0ccc0065c90284f283314e52a96e76ae8a8dce0a (patch)
treeeca5a0dabd7dc07faf75db0f4cb4eec4be768092
parent7140812c4a3676e834bc2ed587be441afba04e18 (diff)
mfd: rtsx: Clear hardware PFM mode in rtl8411b
Clear hw_pfm_en to disable hardware PFM mode, to fix a bug that in some situation registers in 0xFDxx domain can't be accessed. Signed-off-by: Wei WANG <wei_wang@realsil.com.cn> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r--drivers/mfd/rtl8411.c2
-rw-r--r--include/linux/mfd/rtsx_pci.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mfd/rtl8411.c b/drivers/mfd/rtl8411.c
index 56cc248392b5..d183fa002338 100644
--- a/drivers/mfd/rtl8411.c
+++ b/drivers/mfd/rtl8411.c
@@ -114,6 +114,8 @@ static int rtl8411b_extra_init_hw(struct rtsx_pcr *pcr)
114 0xFF, pcr->sd30_drive_sel_3v3); 114 0xFF, pcr->sd30_drive_sel_3v3);
115 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, CD_PAD_CTL, 115 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, CD_PAD_CTL,
116 CD_DISABLE_MASK | CD_AUTO_DISABLE, CD_ENABLE); 116 CD_DISABLE_MASK | CD_AUTO_DISABLE, CD_ENABLE);
117 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, FUNC_FORCE_CTL,
118 0x06, 0x00);
117 119
118 return rtsx_pci_send_cmd(pcr, 100); 120 return rtsx_pci_send_cmd(pcr, 100);
119} 121}
diff --git a/include/linux/mfd/rtsx_pci.h b/include/linux/mfd/rtsx_pci.h
index 11ab786fdc83..9a16276bc080 100644
--- a/include/linux/mfd/rtsx_pci.h
+++ b/include/linux/mfd/rtsx_pci.h
@@ -687,6 +687,7 @@
687#define PME_FORCE_CTL 0xFE56 687#define PME_FORCE_CTL 0xFE56
688#define ASPM_FORCE_CTL 0xFE57 688#define ASPM_FORCE_CTL 0xFE57
689#define PM_CLK_FORCE_CTL 0xFE58 689#define PM_CLK_FORCE_CTL 0xFE58
690#define FUNC_FORCE_CTL 0xFE59
690#define PERST_GLITCH_WIDTH 0xFE5C 691#define PERST_GLITCH_WIDTH 0xFE5C
691#define CHANGE_LINK_STATE 0xFE5B 692#define CHANGE_LINK_STATE 0xFE5B
692#define RESET_LOAD_REG 0xFE5E 693#define RESET_LOAD_REG 0xFE5E