aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorMicky Ching <micky_ching@realsil.com.cn>2015-02-25 00:50:13 -0500
committerLee Jones <lee.jones@linaro.org>2015-03-03 11:41:19 -0500
commit19f3bd548f2750a8a7e4e6d2f25fdc5f8e2c3ee9 (patch)
tree6eeb54b69860e8150f5a46cca024778198a973c5 /include/linux
parentb038538104d5b033d3beaffba6d6efe01246930b (diff)
mfd: rtsx: Remove LCTLR defination
To enable/disable ASPM we should find LINK CONTROL register in PCI config space. All old chip use 0x80 address, but new chip may use another address, so we using pci_find_capability() to get LINK CONTROL address. rtsx_gops.c was removed, we consider to put some common operations to this file, but the actual thing is, only a group of chips are in common ops1, and another group of chips in common ops2, it is hard to decide put which ops into generic ops file. Signed-off-by: Micky Ching <micky_ching@realsil.com.cn> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mfd/rtsx_pci.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/include/linux/mfd/rtsx_pci.h b/include/linux/mfd/rtsx_pci.h
index 0103210ec3e1..33cc63ced99e 100644
--- a/include/linux/mfd/rtsx_pci.h
+++ b/include/linux/mfd/rtsx_pci.h
@@ -716,15 +716,6 @@
716 716
717#define PHY_DUM_REG 0x1F 717#define PHY_DUM_REG 0x1F
718 718
719#define LCTLR 0x80
720#define LCTLR_EXT_SYNC 0x80
721#define LCTLR_COMMON_CLOCK_CFG 0x40
722#define LCTLR_RETRAIN_LINK 0x20
723#define LCTLR_LINK_DISABLE 0x10
724#define LCTLR_RCB 0x08
725#define LCTLR_RESERVED 0x04
726#define LCTLR_ASPM_CTL_MASK 0x03
727
728#define PCR_SETTING_REG1 0x724 719#define PCR_SETTING_REG1 0x724
729#define PCR_SETTING_REG2 0x814 720#define PCR_SETTING_REG2 0x814
730#define PCR_SETTING_REG3 0x747 721#define PCR_SETTING_REG3 0x747
@@ -759,6 +750,7 @@ enum PDEV_STAT {PDEV_STAT_IDLE, PDEV_STAT_RUN};
759struct rtsx_pcr { 750struct rtsx_pcr {
760 struct pci_dev *pci; 751 struct pci_dev *pci;
761 unsigned int id; 752 unsigned int id;
753 int pcie_cap;
762 754
763 /* pci resources */ 755 /* pci resources */
764 unsigned long addr; 756 unsigned long addr;