aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-03-29 02:39:19 -0400
committerTakashi Iwai <tiwai@suse.de>2017-04-03 02:43:07 -0400
commit70eafad849f8af3a83e139eda36712d3c1da5b6a (patch)
treebec5663408a923e12d0fa9562127e12e14ab17c5
parent2c1f81381eadc6dd3c288ec4477b2fe572cf86dc (diff)
ALSA: hda - Move SKL+ vendor specific register definitions to hda_register.h
They may be used by both legacy and ASoC drivers. Acked-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--include/sound/hda_register.h22
-rw-r--r--sound/pci/hda/hda_intel.c4
-rw-r--r--sound/soc/intel/skylake/skl.h21
3 files changed, 22 insertions, 25 deletions
diff --git a/include/sound/hda_register.h b/include/sound/hda_register.h
index 0013063db7f2..1251ff41c9d3 100644
--- a/include/sound/hda_register.h
+++ b/include/sound/hda_register.h
@@ -106,8 +106,26 @@ enum { SDI0, SDI1, SDI2, SDI3, SDO0, SDO1, SDO2, SDO3 };
106#define AZX_REG_HSW_EM4 0x100c 106#define AZX_REG_HSW_EM4 0x100c
107#define AZX_REG_HSW_EM5 0x1010 107#define AZX_REG_HSW_EM5 0x1010
108 108
109/* Skylake/Broxton display HD-A controller Extended Mode registers */ 109/* Skylake/Broxton vendor-specific registers */
110#define AZX_REG_SKL_EM4L 0x1040 110#define AZX_REG_VS_EM1 0x1000
111#define AZX_REG_VS_INRC 0x1004
112#define AZX_REG_VS_OUTRC 0x1008
113#define AZX_REG_VS_FIFOTRK 0x100C
114#define AZX_REG_VS_FIFOTRK2 0x1010
115#define AZX_REG_VS_EM2 0x1030
116#define AZX_REG_VS_EM3L 0x1038
117#define AZX_REG_VS_EM3U 0x103C
118#define AZX_REG_VS_EM4L 0x1040
119#define AZX_REG_VS_EM4U 0x1044
120#define AZX_REG_VS_LTRC 0x1048
121#define AZX_REG_VS_D0I3C 0x104A
122#define AZX_REG_VS_PCE 0x104B
123#define AZX_REG_VS_L2MAGC 0x1050
124#define AZX_REG_VS_L2LAHPT 0x1054
125#define AZX_REG_VS_SDXDPIB_XBASE 0x1084
126#define AZX_REG_VS_SDXDPIB_XINTERVAL 0x20
127#define AZX_REG_VS_SDXEFIFOS_XBASE 0x1094
128#define AZX_REG_VS_SDXEFIFOS_XINTERVAL 0x20
111 129
112/* PCI space */ 130/* PCI space */
113#define AZX_PCIREG_TCSEL 0x44 131#define AZX_PCIREG_TCSEL 0x44
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index c8256a89375a..a48330f4a1a9 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -534,9 +534,9 @@ static void bxt_reduce_dma_latency(struct azx *chip)
534{ 534{
535 u32 val; 535 u32 val;
536 536
537 val = azx_readl(chip, SKL_EM4L); 537 val = azx_readl(chip, VS_EM4L);
538 val &= (0x3 << 20); 538 val &= (0x3 << 20);
539 azx_writel(chip, SKL_EM4L, val); 539 azx_writel(chip, VS_EM4L, val);
540} 540}
541 541
542static void hda_intel_init_chip(struct azx *chip, bool full_reset) 542static void hda_intel_init_chip(struct azx *chip, bool full_reset)
diff --git a/sound/soc/intel/skylake/skl.h b/sound/soc/intel/skylake/skl.h
index bbef77d2b917..8e2878012d53 100644
--- a/sound/soc/intel/skylake/skl.h
+++ b/sound/soc/intel/skylake/skl.h
@@ -27,27 +27,6 @@
27 27
28#define SKL_SUSPEND_DELAY 2000 28#define SKL_SUSPEND_DELAY 2000
29 29
30/* Vendor Specific Registers */
31#define AZX_REG_VS_EM1 0x1000
32#define AZX_REG_VS_INRC 0x1004
33#define AZX_REG_VS_OUTRC 0x1008
34#define AZX_REG_VS_FIFOTRK 0x100C
35#define AZX_REG_VS_FIFOTRK2 0x1010
36#define AZX_REG_VS_EM2 0x1030
37#define AZX_REG_VS_EM3L 0x1038
38#define AZX_REG_VS_EM3U 0x103C
39#define AZX_REG_VS_EM4L 0x1040
40#define AZX_REG_VS_EM4U 0x1044
41#define AZX_REG_VS_LTRC 0x1048
42#define AZX_REG_VS_D0I3C 0x104A
43#define AZX_REG_VS_PCE 0x104B
44#define AZX_REG_VS_L2MAGC 0x1050
45#define AZX_REG_VS_L2LAHPT 0x1054
46#define AZX_REG_VS_SDXDPIB_XBASE 0x1084
47#define AZX_REG_VS_SDXDPIB_XINTERVAL 0x20
48#define AZX_REG_VS_SDXEFIFOS_XBASE 0x1094
49#define AZX_REG_VS_SDXEFIFOS_XINTERVAL 0x20
50
51#define AZX_PCIREG_PGCTL 0x44 30#define AZX_PCIREG_PGCTL 0x44
52#define AZX_PGCTL_LSRMD_MASK (1 << 4) 31#define AZX_PGCTL_LSRMD_MASK (1 << 4)
53#define AZX_PCIREG_CGCTL 0x48 32#define AZX_PCIREG_CGCTL 0x48