diff options
author | Subhransu S. Prusty <subhransu.s.prusty@intel.com> | 2015-07-03 06:34:03 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-08 14:46:48 -0400 |
commit | 3582f9ae07613302eb2967704ed2cef741db9a8d (patch) | |
tree | 525bd80dc5ddf6c5240474016b385cefa8dc4036 | |
parent | 47a7bfc2bc99625e376e59fb01abf779c2d8a7b0 (diff) |
ASoC: Intel: Define SKL ADSP IPC and general purpose registers
Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Kp, Jeeja <jeeja.kp@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/intel/skylake/skl-sst-dsp.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/sound/soc/intel/skylake/skl-sst-dsp.h b/sound/soc/intel/skylake/skl-sst-dsp.h new file mode 100644 index 000000000000..2ac120c18bea --- /dev/null +++ b/sound/soc/intel/skylake/skl-sst-dsp.h | |||
@@ -0,0 +1,62 @@ | |||
1 | /* | ||
2 | * Skylake SST DSP Support | ||
3 | * | ||
4 | * Copyright (C) 2014-15, Intel Corporation. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as version 2, as | ||
8 | * published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, but | ||
11 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | * General Public License for more details. | ||
14 | */ | ||
15 | |||
16 | #ifndef __SKL_SST_DSP_H__ | ||
17 | #define __SKL_SST_DSP_H__ | ||
18 | |||
19 | /* Intel HD Audio General DSP Registers */ | ||
20 | #define SKL_ADSP_GEN_BASE 0x0 | ||
21 | #define SKL_ADSP_REG_ADSPCS (SKL_ADSP_GEN_BASE + 0x04) | ||
22 | #define SKL_ADSP_REG_ADSPIC (SKL_ADSP_GEN_BASE + 0x08) | ||
23 | #define SKL_ADSP_REG_ADSPIS (SKL_ADSP_GEN_BASE + 0x0C) | ||
24 | #define SKL_ADSP_REG_ADSPIC2 (SKL_ADSP_GEN_BASE + 0x10) | ||
25 | #define SKL_ADSP_REG_ADSPIS2 (SKL_ADSP_GEN_BASE + 0x14) | ||
26 | |||
27 | /* Intel HD Audio Inter-Processor Communication Registers */ | ||
28 | #define SKL_ADSP_IPC_BASE 0x40 | ||
29 | #define SKL_ADSP_REG_HIPCT (SKL_ADSP_IPC_BASE + 0x00) | ||
30 | #define SKL_ADSP_REG_HIPCTE (SKL_ADSP_IPC_BASE + 0x04) | ||
31 | #define SKL_ADSP_REG_HIPCI (SKL_ADSP_IPC_BASE + 0x08) | ||
32 | #define SKL_ADSP_REG_HIPCIE (SKL_ADSP_IPC_BASE + 0x0C) | ||
33 | #define SKL_ADSP_REG_HIPCCTL (SKL_ADSP_IPC_BASE + 0x10) | ||
34 | |||
35 | /* HIPCI */ | ||
36 | #define SKL_ADSP_REG_HIPCI_BUSY BIT(31) | ||
37 | |||
38 | /* HIPCIE */ | ||
39 | #define SKL_ADSP_REG_HIPCIE_DONE BIT(30) | ||
40 | |||
41 | /* HIPCCTL */ | ||
42 | #define SKL_ADSP_REG_HIPCCTL_DONE BIT(1) | ||
43 | #define SKL_ADSP_REG_HIPCCTL_BUSY BIT(0) | ||
44 | |||
45 | /* HIPCT */ | ||
46 | #define SKL_ADSP_REG_HIPCT_BUSY BIT(31) | ||
47 | |||
48 | /* Intel HD Audio SRAM Window 1 */ | ||
49 | #define SKL_ADSP_SRAM1_BASE 0xA000 | ||
50 | |||
51 | #define SKL_ADSP_MMIO_LEN 0x10000 | ||
52 | |||
53 | #define SKL_ADSP_W0_STAT_SZ 0x800 | ||
54 | |||
55 | #define SKL_ADSP_W0_UP_SZ 0x800 | ||
56 | |||
57 | #define SKL_ADSP_W1_SZ 0x1000 | ||
58 | |||
59 | #define SKL_ADSPIC_IPC 1 | ||
60 | #define SKL_ADSPIS_IPC 1 | ||
61 | |||
62 | #endif /*__SKL_SST_DSP_H__*/ | ||