Add support for Legion 7 16ACHg6 laptop
Subsystems (5)
v3 cover Add support for Legion 7 16ACHg6 laptop
Add support for laptops that have CS35L41 connected to an HDA codec by I2S and direct I2C/SPI connection to the CPU
Hardware:
- The 16ACHg6 laptop has two CS35L41 amplifiers, connected
to Realtek ALC287 by an I2S bus and by and direct I2C to the CPU.
- The ALC287 codec is connected to the CPU by an HDA bus.
- The CS35L41 has a DSP which will require firmware to be loaded.
Architecture:
- Creation of a library of shared functions for CS35L41 ASoC and HDA
- HDA codec driver (RealTek) and CS35L41 HDA driver are combined by using component binding, where it uses device names to find the components and bind to the master
- The HDA CS35L41 driver applies pre-defined registers sequences for each action in playback for HDA Sound card
Changes from V2:
- Not an RFC
- Create a new HDA driver for CS35L41 instead of using the ASoC one
- Use component binding and device names to find the CS35L41 driver
- Create a shared library for ASoC and HDA CS35L41 drivers
Lucas Tanure (11):
ASoC: cs35l41: Set the max SPI speed for the whole device
ASoC: cs35l41: Convert tables to shared source code
ASoC: cs35l41: Move regmap config struct to shared code
ASoC: cs35l41: Create function for init array of Supplies
ASoC: cs35l41: Move cs35l41_otp_unpack to shared code
ASoC: cs35l41: Move power initializations to reg_sequence
ASoC: cs35l41: Create shared function for errata patches
ASoC: cs35l41: Create shared function for setting channels
ASoC: cs35l41: Create shared function for boost configuration
hda: cs35l41: Add support for CS35L41 in HDA systems ACPI / scan: Create platform device for CLSA0100 ACPI nodes
MAINTAINERS | 2 +
drivers/acpi/scan.c | 1 +
drivers/platform/x86/i2c-multi-instantiate.c | 7 +
include/sound/cs35l41.h | 741 ++++++++++++++++++
sound/pci/hda/Kconfig | 10 +
sound/pci/hda/Makefile | 28 +-
sound/pci/hda/cs35l41_hda.c | 522 ++++++++++++
sound/pci/hda/cs35l41_hda.h | 69 ++
sound/pci/hda/cs35l41_hda_i2c.c | 61 ++
sound/pci/hda/hda_component.h | 20 +
sound/pci/hda/patch_realtek.c | 103 +++
sound/soc/codecs/Makefile | 4 +-
sound/soc/codecs/cs35l41-i2c.c | 16 -
.../{cs35l41-tables.c => cs35l41-lib.c} | 400 +++++++++-
sound/soc/codecs/cs35l41-spi.c | 49 +-
sound/soc/codecs/cs35l41.c | 390 +--------
sound/soc/codecs/cs35l41.h | 739 -----------------
17 files changed, 1964 insertions(+), 1198 deletions(-)
create mode 100644 sound/pci/hda/cs35l41_hda.c
create mode 100644 sound/pci/hda/cs35l41_hda.h
create mode 100644 sound/pci/hda/cs35l41_hda_i2c.c
create mode 100644 sound/pci/hda/hda_component.h
rename sound/soc/codecs/{cs35l41-tables.c => cs35l41-lib.c} (68%)Signature · 1 line
2.34.0
PATCH v3 1/11 ASoC: cs35l41: Set the max SPI speed for the whole device
Higher speeds are only supported when PLL is enabled, but the current driver doesn't enable PLL outside of stream use cases, so better to set the lowest SPI speed accepted by the entire device.
Move the current frequency set to the spi sub-driver so the whole device can benefit from that speed.
spi-max-frequency property could be used, but ACPI systems don't support it, so by setting it in the spi sub-driver probe both Device Trees and ACPI systems are supported.
--- sound/soc/codecs/cs35l41-spi.c | 32 +++----------------------------- sound/soc/codecs/cs35l41.c | 7 ------- sound/soc/codecs/cs35l41.h | 4 +--- 3 files changed, 4 insertions(+), 39 deletions(-)
sound/soc/codecs/cs35l41-spi.c +3 -29
@@ -42,34 +42,6 @@ static const struct spi_device_id cs35l41_id_spi[] = {MODULE_DEVICE_TABLE (spi, cs35l41_id_spi); -static void cs35l41_spi_otp_setup (struct cs35l41_private *cs35l41, -bool is_pre_setup,unsigned int *freq) -{ -struct spi_device *spi; -u32 orig_spi_freq; - - spi =to_spi_device (cs35l41->dev); - -if (!spi) { -dev_err (cs35l41->dev,"%s: No SPI device\n" , __func__); -return ; - } - -if (is_pre_setup) { - orig_spi_freq = spi->max_speed_hz; -if (orig_spi_freq >CS35L41_SPI_MAX_FREQ_OTP ) { - spi->max_speed_hz =CS35L41_SPI_MAX_FREQ_OTP ; -spi_setup (spi); - } - *freq = orig_spi_freq; - }else { -if (spi->max_speed_hz != *freq) { - spi->max_speed_hz = *freq; -spi_setup (spi); - } - } -} -static int cs35l41_spi_probe (struct spi_device *spi) {const struct regmap_config *regmap_config = &cs35l41_regmap_spi;
@@ -81,6 +53,9 @@ static int cs35l41_spi_probe(struct spi_device *spi)if (!cs35l41)return -ENOMEM ; + spi->max_speed_hz =CS35L41_SPI_MAX_FREQ ; +spi_setup (spi); +spi_set_drvdata (spi, cs35l41); cs35l41->regmap =devm_regmap_init_spi (spi, regmap_config);if (IS_ERR (cs35l41->regmap)) {
@@ -91,7 +66,6 @@ static int cs35l41_spi_probe(struct spi_device *spi) cs35l41->dev = &spi->dev; cs35l41->irq = spi->irq; - cs35l41->otp_setup = cs35l41_spi_otp_setup;return cs35l41_probe (cs35l41, pdata); }
sound/soc/codecs/cs35l41.c +0 -7
@@ -438,7 +438,6 @@ static int cs35l41_otp_unpack(void *data)const struct cs35l41_otp_packed_element_t *otp_map;struct cs35l41_private *cs35l41 = data;int bit_offset, word_offset, ret, i; -unsigned int orig_spi_freq;unsigned int bit_sum =8 ;u32 otp_val, otp_id_reg;u32 *otp_mem;
@@ -462,9 +461,6 @@ static int cs35l41_otp_unpack(void *data) goto err_otp_unpack; } -if (cs35l41->otp_setup) - cs35l41->otp_setup (cs35l41, true, &orig_spi_freq); - ret =regmap_bulk_read (cs35l41->regmap,CS35L41_OTP_MEM0 , otp_mem,CS35L41_OTP_SIZE_WORDS );if (ret <0 ) {
@@ -472,9 +468,6 @@ static int cs35l41_otp_unpack(void *data) goto err_otp_unpack; } -if (cs35l41->otp_setup) - cs35l41->otp_setup (cs35l41, false, &orig_spi_freq); - otp_map = otp_map_match->map; bit_offset = otp_map_match->bit_offset;
sound/soc/codecs/cs35l41.h +1 -3
@@ -729,7 +729,7 @@#define CS35L41_FS2_WINDOW_MASK 0x00FFF800#define CS35L41_FS2_WINDOW_SHIFT 12 -#define CS35L41_SPI_MAX_FREQ_OTP 4000000 +#define CS35L41_SPI_MAX_FREQ 4000000#define CS35L41_RX_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE)#define CS35L41_TX_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE)
@@ -784,8 +784,6 @@ struct cs35l41_private {int irq;/* GPIO for /RST */ struct gpio_desc *reset_gpio; -void (*otp_setup)(struct cs35l41_private *cs35l41,bool is_pre_setup, -unsigned int *freq); }; int cs35l41_probe(struct cs35l41_private *cs35l41,
Signature · 1 line
2.34.0
Re: [PATCH 01/11] ASoC: cs35l41: Set the max SPI speed for the whole device
Quoted 8 lines · Lucas Tanure
Higher speeds are only supported when PLL is enabled, but the current driver doesn't enable PLL outside of stream use cases, so better to set the lowest SPI speed accepted by the entire device.
Move the current frequency set to the spi sub-driver so the whole device can benefit from that speed.
Quoted 6 lines
spi-max-frequency property could be used, but ACPI systems don't support it, so by setting it in the spi sub-driver probe both Device Trees and ACPI systems are supported.
Signed-off-by Lucas Tanure <[email protected]>---
Thanks,
Charles
PATCH v3 2/11 ASoC: cs35l41: Convert tables to shared source code
In reply to Lucas TanureTo support CS35L41 in HDA systems the HDA driver for CS35L41 would have to duplicate some functions that already exist on ASoC driver
So instead of duplicate the code, use the new lib source as a shared resource for both ASoC and HDA
---
include/sound/cs35l41.h | 727 +++++++++++++++++
sound/soc/codecs/Makefile | 4 +-
sound/soc/codecs/cs35l41-i2c.c | 1 -
.../{cs35l41-tables.c => cs35l41-lib.c} | 6 +-
sound/soc/codecs/cs35l41-spi.c | 1 -
sound/soc/codecs/cs35l41.h | 728 ------------------
6 files changed, 733 insertions(+), 734 deletions(-)
rename sound/soc/codecs/{cs35l41-tables.c => cs35l41-lib.c} (99%)include/sound/cs35l41.h +727 -0
@@ -10,6 +10,719 @@#ifndef __CS35L41_H#define __CS35L41_H +#define CS35L41_FIRSTREG 0x00000000 +#define CS35L41_LASTREG 0x03804FE8 +#define CS35L41_DEVID 0x00000000 +#define CS35L41_REVID 0x00000004 +#define CS35L41_FABID 0x00000008 +#define CS35L41_RELID 0x0000000C +#define CS35L41_OTPID 0x00000010 +#define CS35L41_SFT_RESET 0x00000020 +#define CS35L41_TEST_KEY_CTL 0x00000040 +#define CS35L41_USER_KEY_CTL 0x00000044 +#define CS35L41_OTP_MEM0 0x00000400 +#define CS35L41_OTP_MEM31 0x0000047C +#define CS35L41_OTP_CTRL0 0x00000500 +#define CS35L41_OTP_CTRL1 0x00000504 +#define CS35L41_OTP_CTRL3 0x00000508 +#define CS35L41_OTP_CTRL4 0x0000050C +#define CS35L41_OTP_CTRL5 0x00000510 +#define CS35L41_OTP_CTRL6 0x00000514 +#define CS35L41_OTP_CTRL7 0x00000518 +#define CS35L41_OTP_CTRL8 0x0000051C +#define CS35L41_PWR_CTRL1 0x00002014 +#define CS35L41_PWR_CTRL2 0x00002018 +#define CS35L41_PWR_CTRL3 0x0000201C +#define CS35L41_CTRL_OVRRIDE 0x00002020 +#define CS35L41_AMP_OUT_MUTE 0x00002024 +#define CS35L41_PROTECT_REL_ERR_IGN 0x00002034 +#define CS35L41_GPIO_PAD_CONTROL 0x0000242C +#define CS35L41_JTAG_CONTROL 0x00002438 +#define CS35L41_PLL_CLK_CTRL 0x00002C04 +#define CS35L41_DSP_CLK_CTRL 0x00002C08 +#define CS35L41_GLOBAL_CLK_CTRL 0x00002C0C +#define CS35L41_DATA_FS_SEL 0x00002C10 +#define CS35L41_TST_FS_MON0 0x00002D10 +#define CS35L41_MDSYNC_EN 0x00003400 +#define CS35L41_MDSYNC_TX_ID 0x00003408 +#define CS35L41_MDSYNC_PWR_CTRL 0x0000340C +#define CS35L41_MDSYNC_DATA_TX 0x00003410 +#define CS35L41_MDSYNC_TX_STATUS 0x00003414 +#define CS35L41_MDSYNC_DATA_RX 0x0000341C +#define CS35L41_MDSYNC_RX_STATUS 0x00003420 +#define CS35L41_MDSYNC_ERR_STATUS 0x00003424 +#define CS35L41_MDSYNC_SYNC_PTE2 0x00003528 +#define CS35L41_MDSYNC_SYNC_PTE3 0x0000352C +#define CS35L41_MDSYNC_SYNC_MSM_STATUS 0x0000353C +#define CS35L41_BSTCVRT_VCTRL1 0x00003800 +#define CS35L41_BSTCVRT_VCTRL2 0x00003804 +#define CS35L41_BSTCVRT_PEAK_CUR 0x00003808 +#define CS35L41_BSTCVRT_SFT_RAMP 0x0000380C +#define CS35L41_BSTCVRT_COEFF 0x00003810 +#define CS35L41_BSTCVRT_SLOPE_LBST 0x00003814 +#define CS35L41_BSTCVRT_SW_FREQ 0x00003818 +#define CS35L41_BSTCVRT_DCM_CTRL 0x0000381C +#define CS35L41_BSTCVRT_DCM_MODE_FORCE 0x00003820 +#define CS35L41_BSTCVRT_OVERVOLT_CTRL 0x00003830 +#define CS35L41_VI_VOL_POL 0x00004000 +#define CS35L41_VIMON_SPKMON_RESYNC 0x00004100 +#define CS35L41_DTEMP_WARN_THLD 0x00004220 +#define CS35L41_DTEMP_CFG 0x00004224 +#define CS35L41_DTEMP_EN 0x00004308 +#define CS35L41_VPVBST_FS_SEL 0x00004400 +#define CS35L41_SP_ENABLES 0x00004800 +#define CS35L41_SP_RATE_CTRL 0x00004804 +#define CS35L41_SP_FORMAT 0x00004808 +#define CS35L41_SP_HIZ_CTRL 0x0000480C +#define CS35L41_SP_FRAME_TX_SLOT 0x00004810 +#define CS35L41_SP_FRAME_RX_SLOT 0x00004820 +#define CS35L41_SP_TX_WL 0x00004830 +#define CS35L41_SP_RX_WL 0x00004840 +#define CS35L41_ASP_CONTROL4 0x00004854 +#define CS35L41_DAC_PCM1_SRC 0x00004C00 +#define CS35L41_ASP_TX1_SRC 0x00004C20 +#define CS35L41_ASP_TX2_SRC 0x00004C24 +#define CS35L41_ASP_TX3_SRC 0x00004C28 +#define CS35L41_ASP_TX4_SRC 0x00004C2C +#define CS35L41_DSP1_RX1_SRC 0x00004C40 +#define CS35L41_DSP1_RX2_SRC 0x00004C44 +#define CS35L41_DSP1_RX3_SRC 0x00004C48 +#define CS35L41_DSP1_RX4_SRC 0x00004C4C +#define CS35L41_DSP1_RX5_SRC 0x00004C50 +#define CS35L41_DSP1_RX6_SRC 0x00004C54 +#define CS35L41_DSP1_RX7_SRC 0x00004C58 +#define CS35L41_DSP1_RX8_SRC 0x00004C5C +#define CS35L41_NGATE1_SRC 0x00004C60 +#define CS35L41_NGATE2_SRC 0x00004C64 +#define CS35L41_AMP_DIG_VOL_CTRL 0x00006000 +#define CS35L41_VPBR_CFG 0x00006404 +#define CS35L41_VBBR_CFG 0x00006408 +#define CS35L41_VPBR_STATUS 0x0000640C +#define CS35L41_VBBR_STATUS 0x00006410 +#define CS35L41_OVERTEMP_CFG 0x00006414 +#define CS35L41_AMP_ERR_VOL 0x00006418 +#define CS35L41_VOL_STATUS_TO_DSP 0x00006450 +#define CS35L41_CLASSH_CFG 0x00006800 +#define CS35L41_WKFET_CFG 0x00006804 +#define CS35L41_NG_CFG 0x00006808 +#define CS35L41_AMP_GAIN_CTRL 0x00006C04 +#define CS35L41_DAC_MSM_CFG 0x00007400 +#define CS35L41_IRQ1_CFG 0x00010000 +#define CS35L41_IRQ1_STATUS 0x00010004 +#define CS35L41_IRQ1_STATUS1 0x00010010 +#define CS35L41_IRQ1_STATUS2 0x00010014 +#define CS35L41_IRQ1_STATUS3 0x00010018 +#define CS35L41_IRQ1_STATUS4 0x0001001C +#define CS35L41_IRQ1_RAW_STATUS1 0x00010090 +#define CS35L41_IRQ1_RAW_STATUS2 0x00010094 +#define CS35L41_IRQ1_RAW_STATUS3 0x00010098 +#define CS35L41_IRQ1_RAW_STATUS4 0x0001009C +#define CS35L41_IRQ1_MASK1 0x00010110 +#define CS35L41_IRQ1_MASK2 0x00010114 +#define CS35L41_IRQ1_MASK3 0x00010118 +#define CS35L41_IRQ1_MASK4 0x0001011C +#define CS35L41_IRQ1_FRC1 0x00010190 +#define CS35L41_IRQ1_FRC2 0x00010194 +#define CS35L41_IRQ1_FRC3 0x00010198 +#define CS35L41_IRQ1_FRC4 0x0001019C +#define CS35L41_IRQ1_EDGE1 0x00010210 +#define CS35L41_IRQ1_EDGE4 0x0001021C +#define CS35L41_IRQ1_POL1 0x00010290 +#define CS35L41_IRQ1_POL2 0x00010294 +#define CS35L41_IRQ1_POL3 0x00010298 +#define CS35L41_IRQ1_POL4 0x0001029C +#define CS35L41_IRQ1_DB3 0x00010318 +#define CS35L41_IRQ2_CFG 0x00010800 +#define CS35L41_IRQ2_STATUS 0x00010804 +#define CS35L41_IRQ2_STATUS1 0x00010810 +#define CS35L41_IRQ2_STATUS2 0x00010814 +#define CS35L41_IRQ2_STATUS3 0x00010818 +#define CS35L41_IRQ2_STATUS4 0x0001081C +#define CS35L41_IRQ2_RAW_STATUS1 0x00010890 +#define CS35L41_IRQ2_RAW_STATUS2 0x00010894 +#define CS35L41_IRQ2_RAW_STATUS3 0x00010898 +#define CS35L41_IRQ2_RAW_STATUS4 0x0001089C +#define CS35L41_IRQ2_MASK1 0x00010910 +#define CS35L41_IRQ2_MASK2 0x00010914 +#define CS35L41_IRQ2_MASK3 0x00010918 +#define CS35L41_IRQ2_MASK4 0x0001091C +#define CS35L41_IRQ2_FRC1 0x00010990 +#define CS35L41_IRQ2_FRC2 0x00010994 +#define CS35L41_IRQ2_FRC3 0x00010998 +#define CS35L41_IRQ2_FRC4 0x0001099C +#define CS35L41_IRQ2_EDGE1 0x00010A10 +#define CS35L41_IRQ2_EDGE4 0x00010A1C +#define CS35L41_IRQ2_POL1 0x00010A90 +#define CS35L41_IRQ2_POL2 0x00010A94 +#define CS35L41_IRQ2_POL3 0x00010A98 +#define CS35L41_IRQ2_POL4 0x00010A9C +#define CS35L41_IRQ2_DB3 0x00010B18 +#define CS35L41_GPIO_STATUS1 0x00011000 +#define CS35L41_GPIO1_CTRL1 0x00011008 +#define CS35L41_GPIO2_CTRL1 0x0001100C +#define CS35L41_MIXER_NGATE_CFG 0x00012000 +#define CS35L41_MIXER_NGATE_CH1_CFG 0x00012004 +#define CS35L41_MIXER_NGATE_CH2_CFG 0x00012008 +#define CS35L41_DSP_MBOX_1 0x00013000 +#define CS35L41_DSP_MBOX_2 0x00013004 +#define CS35L41_DSP_MBOX_3 0x00013008 +#define CS35L41_DSP_MBOX_4 0x0001300C +#define CS35L41_DSP_MBOX_5 0x00013010 +#define CS35L41_DSP_MBOX_6 0x00013014 +#define CS35L41_DSP_MBOX_7 0x00013018 +#define CS35L41_DSP_MBOX_8 0x0001301C +#define CS35L41_DSP_VIRT1_MBOX_1 0x00013020 +#define CS35L41_DSP_VIRT1_MBOX_2 0x00013024 +#define CS35L41_DSP_VIRT1_MBOX_3 0x00013028 +#define CS35L41_DSP_VIRT1_MBOX_4 0x0001302C +#define CS35L41_DSP_VIRT1_MBOX_5 0x00013030 +#define CS35L41_DSP_VIRT1_MBOX_6 0x00013034 +#define CS35L41_DSP_VIRT1_MBOX_7 0x00013038 +#define CS35L41_DSP_VIRT1_MBOX_8 0x0001303C +#define CS35L41_DSP_VIRT2_MBOX_1 0x00013040 +#define CS35L41_DSP_VIRT2_MBOX_2 0x00013044 +#define CS35L41_DSP_VIRT2_MBOX_3 0x00013048 +#define CS35L41_DSP_VIRT2_MBOX_4 0x0001304C +#define CS35L41_DSP_VIRT2_MBOX_5 0x00013050 +#define CS35L41_DSP_VIRT2_MBOX_6 0x00013054 +#define CS35L41_DSP_VIRT2_MBOX_7 0x00013058 +#define CS35L41_DSP_VIRT2_MBOX_8 0x0001305C +#define CS35L41_CLOCK_DETECT_1 0x00014000 +#define CS35L41_TIMER1_CONTROL 0x00015000 +#define CS35L41_TIMER1_COUNT_PRESET 0x00015004 +#define CS35L41_TIMER1_START_STOP 0x0001500C +#define CS35L41_TIMER1_STATUS 0x00015010 +#define CS35L41_TIMER1_COUNT_READBACK 0x00015014 +#define CS35L41_TIMER1_DSP_CLK_CFG 0x00015018 +#define CS35L41_TIMER1_DSP_CLK_STATUS 0x0001501C +#define CS35L41_TIMER2_CONTROL 0x00015100 +#define CS35L41_TIMER2_COUNT_PRESET 0x00015104 +#define CS35L41_TIMER2_START_STOP 0x0001510C +#define CS35L41_TIMER2_STATUS 0x00015110 +#define CS35L41_TIMER2_COUNT_READBACK 0x00015114 +#define CS35L41_TIMER2_DSP_CLK_CFG 0x00015118 +#define CS35L41_TIMER2_DSP_CLK_STATUS 0x0001511C +#define CS35L41_DFT_JTAG_CONTROL 0x00016000 +#define CS35L41_DIE_STS1 0x00017040 +#define CS35L41_DIE_STS2 0x00017044 +#define CS35L41_TEMP_CAL1 0x00017048 +#define CS35L41_TEMP_CAL2 0x0001704C +#define CS35L41_DSP1_XMEM_PACK_0 0x02000000 +#define CS35L41_DSP1_XMEM_PACK_3068 0x02002FF0 +#define CS35L41_DSP1_XMEM_UNPACK32_0 0x02400000 +#define CS35L41_DSP1_XMEM_UNPACK32_2046 0x02401FF8 +#define CS35L41_DSP1_TIMESTAMP_COUNT 0x025C0800 +#define CS35L41_DSP1_SYS_ID 0x025E0000 +#define CS35L41_DSP1_SYS_VERSION 0x025E0004 +#define CS35L41_DSP1_SYS_CORE_ID 0x025E0008 +#define CS35L41_DSP1_SYS_AHB_ADDR 0x025E000C +#define CS35L41_DSP1_SYS_XSRAM_SIZE 0x025E0010 +#define CS35L41_DSP1_SYS_YSRAM_SIZE 0x025E0018 +#define CS35L41_DSP1_SYS_PSRAM_SIZE 0x025E0020 +#define CS35L41_DSP1_SYS_PM_BOOT_SIZE 0x025E0028 +#define CS35L41_DSP1_SYS_FEATURES 0x025E002C +#define CS35L41_DSP1_SYS_FIR_FILTERS 0x025E0030 +#define CS35L41_DSP1_SYS_LMS_FILTERS 0x025E0034 +#define CS35L41_DSP1_SYS_XM_BANK_SIZE 0x025E0038 +#define CS35L41_DSP1_SYS_YM_BANK_SIZE 0x025E003C +#define CS35L41_DSP1_SYS_PM_BANK_SIZE 0x025E0040 +#define CS35L41_DSP1_AHBM_WIN0_CTRL0 0x025E2000 +#define CS35L41_DSP1_AHBM_WIN0_CTRL1 0x025E2004 +#define CS35L41_DSP1_AHBM_WIN1_CTRL0 0x025E2008 +#define CS35L41_DSP1_AHBM_WIN1_CTRL1 0x025E200C +#define CS35L41_DSP1_AHBM_WIN2_CTRL0 0x025E2010 +#define CS35L41_DSP1_AHBM_WIN2_CTRL1 0x025E2014 +#define CS35L41_DSP1_AHBM_WIN3_CTRL0 0x025E2018 +#define CS35L41_DSP1_AHBM_WIN3_CTRL1 0x025E201C +#define CS35L41_DSP1_AHBM_WIN4_CTRL0 0x025E2020 +#define CS35L41_DSP1_AHBM_WIN4_CTRL1 0x025E2024 +#define CS35L41_DSP1_AHBM_WIN5_CTRL0 0x025E2028 +#define CS35L41_DSP1_AHBM_WIN5_CTRL1 0x025E202C +#define CS35L41_DSP1_AHBM_WIN6_CTRL0 0x025E2030 +#define CS35L41_DSP1_AHBM_WIN6_CTRL1 0x025E2034 +#define CS35L41_DSP1_AHBM_WIN7_CTRL0 0x025E2038 +#define CS35L41_DSP1_AHBM_WIN7_CTRL1 0x025E203C +#define CS35L41_DSP1_AHBM_WIN_DBG_CTRL0 0x025E2040 +#define CS35L41_DSP1_AHBM_WIN_DBG_CTRL1 0x025E2044 +#define CS35L41_DSP1_XMEM_UNPACK24_0 0x02800000 +#define CS35L41_DSP1_XMEM_UNPACK24_4093 0x02803FF4 +#define CS35L41_DSP1_CTRL_BASE 0x02B80000 +#define CS35L41_DSP1_CORE_SOFT_RESET 0x02B80010 +#define CS35L41_DSP1_DEBUG 0x02B80040 +#define CS35L41_DSP1_TIMER_CTRL 0x02B80048 +#define CS35L41_DSP1_STREAM_ARB_CTRL 0x02B80050 +#define CS35L41_DSP1_RX1_RATE 0x02B80080 +#define CS35L41_DSP1_RX2_RATE 0x02B80088 +#define CS35L41_DSP1_RX3_RATE 0x02B80090 +#define CS35L41_DSP1_RX4_RATE 0x02B80098 +#define CS35L41_DSP1_RX5_RATE 0x02B800A0 +#define CS35L41_DSP1_RX6_RATE 0x02B800A8 +#define CS35L41_DSP1_RX7_RATE 0x02B800B0 +#define CS35L41_DSP1_RX8_RATE 0x02B800B8 +#define CS35L41_DSP1_TX1_RATE 0x02B80280 +#define CS35L41_DSP1_TX2_RATE 0x02B80288 +#define CS35L41_DSP1_TX3_RATE 0x02B80290 +#define CS35L41_DSP1_TX4_RATE 0x02B80298 +#define CS35L41_DSP1_TX5_RATE 0x02B802A0 +#define CS35L41_DSP1_TX6_RATE 0x02B802A8 +#define CS35L41_DSP1_TX7_RATE 0x02B802B0 +#define CS35L41_DSP1_TX8_RATE 0x02B802B8 +#define CS35L41_DSP1_NMI_CTRL1 0x02B80480 +#define CS35L41_DSP1_NMI_CTRL2 0x02B80488 +#define CS35L41_DSP1_NMI_CTRL3 0x02B80490 +#define CS35L41_DSP1_NMI_CTRL4 0x02B80498 +#define CS35L41_DSP1_NMI_CTRL5 0x02B804A0 +#define CS35L41_DSP1_NMI_CTRL6 0x02B804A8 +#define CS35L41_DSP1_NMI_CTRL7 0x02B804B0 +#define CS35L41_DSP1_NMI_CTRL8 0x02B804B8 +#define CS35L41_DSP1_RESUME_CTRL 0x02B80500 +#define CS35L41_DSP1_IRQ1_CTRL 0x02B80508 +#define CS35L41_DSP1_IRQ2_CTRL 0x02B80510 +#define CS35L41_DSP1_IRQ3_CTRL 0x02B80518 +#define CS35L41_DSP1_IRQ4_CTRL 0x02B80520 +#define CS35L41_DSP1_IRQ5_CTRL 0x02B80528 +#define CS35L41_DSP1_IRQ6_CTRL 0x02B80530 +#define CS35L41_DSP1_IRQ7_CTRL 0x02B80538 +#define CS35L41_DSP1_IRQ8_CTRL 0x02B80540 +#define CS35L41_DSP1_IRQ9_CTRL 0x02B80548 +#define CS35L41_DSP1_IRQ10_CTRL 0x02B80550 +#define CS35L41_DSP1_IRQ11_CTRL 0x02B80558 +#define CS35L41_DSP1_IRQ12_CTRL 0x02B80560 +#define CS35L41_DSP1_IRQ13_CTRL 0x02B80568 +#define CS35L41_DSP1_IRQ14_CTRL 0x02B80570 +#define CS35L41_DSP1_IRQ15_CTRL 0x02B80578 +#define CS35L41_DSP1_IRQ16_CTRL 0x02B80580 +#define CS35L41_DSP1_IRQ17_CTRL 0x02B80588 +#define CS35L41_DSP1_IRQ18_CTRL 0x02B80590 +#define CS35L41_DSP1_IRQ19_CTRL 0x02B80598 +#define CS35L41_DSP1_IRQ20_CTRL 0x02B805A0 +#define CS35L41_DSP1_IRQ21_CTRL 0x02B805A8 +#define CS35L41_DSP1_IRQ22_CTRL 0x02B805B0 +#define CS35L41_DSP1_IRQ23_CTRL 0x02B805B8 +#define CS35L41_DSP1_SCRATCH1 0x02B805C0 +#define CS35L41_DSP1_SCRATCH2 0x02B805C8 +#define CS35L41_DSP1_SCRATCH3 0x02B805D0 +#define CS35L41_DSP1_SCRATCH4 0x02B805D8 +#define CS35L41_DSP1_CCM_CORE_CTRL 0x02BC1000 +#define CS35L41_DSP1_CCM_CLK_OVERRIDE 0x02BC1008 +#define CS35L41_DSP1_XM_MSTR_EN 0x02BC2000 +#define CS35L41_DSP1_XM_CORE_PRI 0x02BC2008 +#define CS35L41_DSP1_XM_AHB_PACK_PL_PRI 0x02BC2010 +#define CS35L41_DSP1_XM_AHB_UP_PL_PRI 0x02BC2018 +#define CS35L41_DSP1_XM_ACCEL_PL0_PRI 0x02BC2020 +#define CS35L41_DSP1_XM_NPL0_PRI 0x02BC2078 +#define CS35L41_DSP1_YM_MSTR_EN 0x02BC20C0 +#define CS35L41_DSP1_YM_CORE_PRI 0x02BC20C8 +#define CS35L41_DSP1_YM_AHB_PACK_PL_PRI 0x02BC20D0 +#define CS35L41_DSP1_YM_AHB_UP_PL_PRI 0x02BC20D8 +#define CS35L41_DSP1_YM_ACCEL_PL0_PRI 0x02BC20E0 +#define CS35L41_DSP1_YM_NPL0_PRI 0x02BC2138 +#define CS35L41_DSP1_PM_MSTR_EN 0x02BC2180 +#define CS35L41_DSP1_PM_PATCH0_ADDR 0x02BC2188 +#define CS35L41_DSP1_PM_PATCH0_EN 0x02BC218C +#define CS35L41_DSP1_PM_PATCH0_DATA_LO 0x02BC2190 +#define CS35L41_DSP1_PM_PATCH0_DATA_HI 0x02BC2194 +#define CS35L41_DSP1_PM_PATCH1_ADDR 0x02BC2198 +#define CS35L41_DSP1_PM_PATCH1_EN 0x02BC219C +#define CS35L41_DSP1_PM_PATCH1_DATA_LO 0x02BC21A0 +#define CS35L41_DSP1_PM_PATCH1_DATA_HI 0x02BC21A4 +#define CS35L41_DSP1_PM_PATCH2_ADDR 0x02BC21A8 +#define CS35L41_DSP1_PM_PATCH2_EN 0x02BC21AC +#define CS35L41_DSP1_PM_PATCH2_DATA_LO 0x02BC21B0 +#define CS35L41_DSP1_PM_PATCH2_DATA_HI 0x02BC21B4 +#define CS35L41_DSP1_PM_PATCH3_ADDR 0x02BC21B8 +#define CS35L41_DSP1_PM_PATCH3_EN 0x02BC21BC +#define CS35L41_DSP1_PM_PATCH3_DATA_LO 0x02BC21C0 +#define CS35L41_DSP1_PM_PATCH3_DATA_HI 0x02BC21C4 +#define CS35L41_DSP1_PM_PATCH4_ADDR 0x02BC21C8 +#define CS35L41_DSP1_PM_PATCH4_EN 0x02BC21CC +#define CS35L41_DSP1_PM_PATCH4_DATA_LO 0x02BC21D0 +#define CS35L41_DSP1_PM_PATCH4_DATA_HI 0x02BC21D4 +#define CS35L41_DSP1_PM_PATCH5_ADDR 0x02BC21D8 +#define CS35L41_DSP1_PM_PATCH5_EN 0x02BC21DC +#define CS35L41_DSP1_PM_PATCH5_DATA_LO 0x02BC21E0 +#define CS35L41_DSP1_PM_PATCH5_DATA_HI 0x02BC21E4 +#define CS35L41_DSP1_PM_PATCH6_ADDR 0x02BC21E8 +#define CS35L41_DSP1_PM_PATCH6_EN 0x02BC21EC +#define CS35L41_DSP1_PM_PATCH6_DATA_LO 0x02BC21F0 +#define CS35L41_DSP1_PM_PATCH6_DATA_HI 0x02BC21F4 +#define CS35L41_DSP1_PM_PATCH7_ADDR 0x02BC21F8 +#define CS35L41_DSP1_PM_PATCH7_EN 0x02BC21FC +#define CS35L41_DSP1_PM_PATCH7_DATA_LO 0x02BC2200 +#define CS35L41_DSP1_PM_PATCH7_DATA_HI 0x02BC2204 +#define CS35L41_DSP1_MPU_XM_ACCESS0 0x02BC3000 +#define CS35L41_DSP1_MPU_YM_ACCESS0 0x02BC3004 +#define CS35L41_DSP1_MPU_WNDW_ACCESS0 0x02BC3008 +#define CS35L41_DSP1_MPU_XREG_ACCESS0 0x02BC300C +#define CS35L41_DSP1_MPU_YREG_ACCESS0 0x02BC3014 +#define CS35L41_DSP1_MPU_XM_ACCESS1 0x02BC3018 +#define CS35L41_DSP1_MPU_YM_ACCESS1 0x02BC301C +#define CS35L41_DSP1_MPU_WNDW_ACCESS1 0x02BC3020 +#define CS35L41_DSP1_MPU_XREG_ACCESS1 0x02BC3024 +#define CS35L41_DSP1_MPU_YREG_ACCESS1 0x02BC302C +#define CS35L41_DSP1_MPU_XM_ACCESS2 0x02BC3030 +#define CS35L41_DSP1_MPU_YM_ACCESS2 0x02BC3034 +#define CS35L41_DSP1_MPU_WNDW_ACCESS2 0x02BC3038 +#define CS35L41_DSP1_MPU_XREG_ACCESS2 0x02BC303C +#define CS35L41_DSP1_MPU_YREG_ACCESS2 0x02BC3044 +#define CS35L41_DSP1_MPU_XM_ACCESS3 0x02BC3048 +#define CS35L41_DSP1_MPU_YM_ACCESS3 0x02BC304C +#define CS35L41_DSP1_MPU_WNDW_ACCESS3 0x02BC3050 +#define CS35L41_DSP1_MPU_XREG_ACCESS3 0x02BC3054 +#define CS35L41_DSP1_MPU_YREG_ACCESS3 0x02BC305C +#define CS35L41_DSP1_MPU_XM_VIO_ADDR 0x02BC3100 +#define CS35L41_DSP1_MPU_XM_VIO_STATUS 0x02BC3104 +#define CS35L41_DSP1_MPU_YM_VIO_ADDR 0x02BC3108 +#define CS35L41_DSP1_MPU_YM_VIO_STATUS 0x02BC310C +#define CS35L41_DSP1_MPU_PM_VIO_ADDR 0x02BC3110 +#define CS35L41_DSP1_MPU_PM_VIO_STATUS 0x02BC3114 +#define CS35L41_DSP1_MPU_LOCK_CONFIG 0x02BC3140 +#define CS35L41_DSP1_MPU_WDT_RST_CTRL 0x02BC3180 +#define CS35L41_DSP1_STRMARB_MSTR0_CFG0 0x02BC5000 +#define CS35L41_DSP1_STRMARB_MSTR0_CFG1 0x02BC5004 +#define CS35L41_DSP1_STRMARB_MSTR0_CFG2 0x02BC5008 +#define CS35L41_DSP1_STRMARB_MSTR1_CFG0 0x02BC5010 +#define CS35L41_DSP1_STRMARB_MSTR1_CFG1 0x02BC5014 +#define CS35L41_DSP1_STRMARB_MSTR1_CFG2 0x02BC5018 +#define CS35L41_DSP1_STRMARB_MSTR2_CFG0 0x02BC5020 +#define CS35L41_DSP1_STRMARB_MSTR2_CFG1 0x02BC5024 +#define CS35L41_DSP1_STRMARB_MSTR2_CFG2 0x02BC5028 +#define CS35L41_DSP1_STRMARB_MSTR3_CFG0 0x02BC5030 +#define CS35L41_DSP1_STRMARB_MSTR3_CFG1 0x02BC5034 +#define CS35L41_DSP1_STRMARB_MSTR3_CFG2 0x02BC5038 +#define CS35L41_DSP1_STRMARB_MSTR4_CFG0 0x02BC5040 +#define CS35L41_DSP1_STRMARB_MSTR4_CFG1 0x02BC5044 +#define CS35L41_DSP1_STRMARB_MSTR4_CFG2 0x02BC5048 +#define CS35L41_DSP1_STRMARB_MSTR5_CFG0 0x02BC5050 +#define CS35L41_DSP1_STRMARB_MSTR5_CFG1 0x02BC5054 +#define CS35L41_DSP1_STRMARB_MSTR5_CFG2 0x02BC5058 +#define CS35L41_DSP1_STRMARB_MSTR6_CFG0 0x02BC5060 +#define CS35L41_DSP1_STRMARB_MSTR6_CFG1 0x02BC5064 +#define CS35L41_DSP1_STRMARB_MSTR6_CFG2 0x02BC5068 +#define CS35L41_DSP1_STRMARB_MSTR7_CFG0 0x02BC5070 +#define CS35L41_DSP1_STRMARB_MSTR7_CFG1 0x02BC5074 +#define CS35L41_DSP1_STRMARB_MSTR7_CFG2 0x02BC5078 +#define CS35L41_DSP1_STRMARB_TX0_CFG0 0x02BC5200 +#define CS35L41_DSP1_STRMARB_TX0_CFG1 0x02BC5204 +#define CS35L41_DSP1_STRMARB_TX1_CFG0 0x02BC5208 +#define CS35L41_DSP1_STRMARB_TX1_CFG1 0x02BC520C +#define CS35L41_DSP1_STRMARB_TX2_CFG0 0x02BC5210 +#define CS35L41_DSP1_STRMARB_TX2_CFG1 0x02BC5214 +#define CS35L41_DSP1_STRMARB_TX3_CFG0 0x02BC5218 +#define CS35L41_DSP1_STRMARB_TX3_CFG1 0x02BC521C +#define CS35L41_DSP1_STRMARB_TX4_CFG0 0x02BC5220 +#define CS35L41_DSP1_STRMARB_TX4_CFG1 0x02BC5224 +#define CS35L41_DSP1_STRMARB_TX5_CFG0 0x02BC5228 +#define CS35L41_DSP1_STRMARB_TX5_CFG1 0x02BC522C +#define CS35L41_DSP1_STRMARB_TX6_CFG0 0x02BC5230 +#define CS35L41_DSP1_STRMARB_TX6_CFG1 0x02BC5234 +#define CS35L41_DSP1_STRMARB_TX7_CFG0 0x02BC5238 +#define CS35L41_DSP1_STRMARB_TX7_CFG1 0x02BC523C +#define CS35L41_DSP1_STRMARB_RX0_CFG0 0x02BC5400 +#define CS35L41_DSP1_STRMARB_RX0_CFG1 0x02BC5404 +#define CS35L41_DSP1_STRMARB_RX1_CFG0 0x02BC5408 +#define CS35L41_DSP1_STRMARB_RX1_CFG1 0x02BC540C +#define CS35L41_DSP1_STRMARB_RX2_CFG0 0x02BC5410 +#define CS35L41_DSP1_STRMARB_RX2_CFG1 0x02BC5414 +#define CS35L41_DSP1_STRMARB_RX3_CFG0 0x02BC5418 +#define CS35L41_DSP1_STRMARB_RX3_CFG1 0x02BC541C +#define CS35L41_DSP1_STRMARB_RX4_CFG0 0x02BC5420 +#define CS35L41_DSP1_STRMARB_RX4_CFG1 0x02BC5424 +#define CS35L41_DSP1_STRMARB_RX5_CFG0 0x02BC5428 +#define CS35L41_DSP1_STRMARB_RX5_CFG1 0x02BC542C +#define CS35L41_DSP1_STRMARB_RX6_CFG0 0x02BC5430 +#define CS35L41_DSP1_STRMARB_RX6_CFG1 0x02BC5434 +#define CS35L41_DSP1_STRMARB_RX7_CFG0 0x02BC5438 +#define CS35L41_DSP1_STRMARB_RX7_CFG1 0x02BC543C +#define CS35L41_DSP1_STRMARB_IRQ0_CFG0 0x02BC5600 +#define CS35L41_DSP1_STRMARB_IRQ0_CFG1 0x02BC5604 +#define CS35L41_DSP1_STRMARB_IRQ0_CFG2 0x02BC5608 +#define CS35L41_DSP1_STRMARB_IRQ1_CFG0 0x02BC5610 +#define CS35L41_DSP1_STRMARB_IRQ1_CFG1 0x02BC5614 +#define CS35L41_DSP1_STRMARB_IRQ1_CFG2 0x02BC5618 +#define CS35L41_DSP1_STRMARB_IRQ2_CFG0 0x02BC5620 +#define CS35L41_DSP1_STRMARB_IRQ2_CFG1 0x02BC5624 +#define CS35L41_DSP1_STRMARB_IRQ2_CFG2 0x02BC5628 +#define CS35L41_DSP1_STRMARB_IRQ3_CFG0 0x02BC5630 +#define CS35L41_DSP1_STRMARB_IRQ3_CFG1 0x02BC5634 +#define CS35L41_DSP1_STRMARB_IRQ3_CFG2 0x02BC5638 +#define CS35L41_DSP1_STRMARB_IRQ4_CFG0 0x02BC5640 +#define CS35L41_DSP1_STRMARB_IRQ4_CFG1 0x02BC5644 +#define CS35L41_DSP1_STRMARB_IRQ4_CFG2 0x02BC5648 +#define CS35L41_DSP1_STRMARB_IRQ5_CFG0 0x02BC5650 +#define CS35L41_DSP1_STRMARB_IRQ5_CFG1 0x02BC5654 +#define CS35L41_DSP1_STRMARB_IRQ5_CFG2 0x02BC5658 +#define CS35L41_DSP1_STRMARB_IRQ6_CFG0 0x02BC5660 +#define CS35L41_DSP1_STRMARB_IRQ6_CFG1 0x02BC5664 +#define CS35L41_DSP1_STRMARB_IRQ6_CFG2 0x02BC5668 +#define CS35L41_DSP1_STRMARB_IRQ7_CFG0 0x02BC5670 +#define CS35L41_DSP1_STRMARB_IRQ7_CFG1 0x02BC5674 +#define CS35L41_DSP1_STRMARB_IRQ7_CFG2 0x02BC5678 +#define CS35L41_DSP1_STRMARB_RESYNC_MSK 0x02BC5A00 +#define CS35L41_DSP1_STRMARB_ERR_STATUS 0x02BC5A08 +#define CS35L41_DSP1_INTPCTL_RES_STATIC 0x02BC6000 +#define CS35L41_DSP1_INTPCTL_RES_DYN 0x02BC6004 +#define CS35L41_DSP1_INTPCTL_NMI_CTRL 0x02BC6008 +#define CS35L41_DSP1_INTPCTL_IRQ_INV 0x02BC6010 +#define CS35L41_DSP1_INTPCTL_IRQ_MODE 0x02BC6014 +#define CS35L41_DSP1_INTPCTL_IRQ_EN 0x02BC6018 +#define CS35L41_DSP1_INTPCTL_IRQ_MSK 0x02BC601C +#define CS35L41_DSP1_INTPCTL_IRQ_FLUSH 0x02BC6020 +#define CS35L41_DSP1_INTPCTL_IRQ_MSKCLR 0x02BC6024 +#define CS35L41_DSP1_INTPCTL_IRQ_FRC 0x02BC6028 +#define CS35L41_DSP1_INTPCTL_IRQ_MSKSET 0x02BC602C +#define CS35L41_DSP1_INTPCTL_IRQ_ERR 0x02BC6030 +#define CS35L41_DSP1_INTPCTL_IRQ_PEND 0x02BC6034 +#define CS35L41_DSP1_INTPCTL_IRQ_GEN 0x02BC6038 +#define CS35L41_DSP1_INTPCTL_TESTBITS 0x02BC6040 +#define CS35L41_DSP1_WDT_CONTROL 0x02BC7000 +#define CS35L41_DSP1_WDT_STATUS 0x02BC7008 +#define CS35L41_DSP1_YMEM_PACK_0 0x02C00000 +#define CS35L41_DSP1_YMEM_PACK_1532 0x02C017F0 +#define CS35L41_DSP1_YMEM_UNPACK32_0 0x03000000 +#define CS35L41_DSP1_YMEM_UNPACK32_1022 0x03000FF8 +#define CS35L41_DSP1_YMEM_UNPACK24_0 0x03400000 +#define CS35L41_DSP1_YMEM_UNPACK24_2045 0x03401FF4 +#define CS35L41_DSP1_PMEM_0 0x03800000 +#define CS35L41_DSP1_PMEM_5114 0x03804FE8 + +/*test regs for emulation bringup*/ +#define CS35L41_PLL_OVR 0x00003018 +#define CS35L41_BST_TEST_DUTY 0x00003900 +#define CS35L41_DIGPWM_IOCTRL 0x0000706C + +/*registers populated by OTP*/ +#define CS35L41_OTP_TRIM_1 0x0000208c +#define CS35L41_OTP_TRIM_2 0x00002090 +#define CS35L41_OTP_TRIM_3 0x00003010 +#define CS35L41_OTP_TRIM_4 0x0000300C +#define CS35L41_OTP_TRIM_5 0x0000394C +#define CS35L41_OTP_TRIM_6 0x00003950 +#define CS35L41_OTP_TRIM_7 0x00003954 +#define CS35L41_OTP_TRIM_8 0x00003958 +#define CS35L41_OTP_TRIM_9 0x0000395C +#define CS35L41_OTP_TRIM_10 0x0000416C +#define CS35L41_OTP_TRIM_11 0x00004160 +#define CS35L41_OTP_TRIM_12 0x00004170 +#define CS35L41_OTP_TRIM_13 0x00004360 +#define CS35L41_OTP_TRIM_14 0x00004448 +#define CS35L41_OTP_TRIM_15 0x0000444C +#define CS35L41_OTP_TRIM_16 0x00006E30 +#define CS35L41_OTP_TRIM_17 0x00006E34 +#define CS35L41_OTP_TRIM_18 0x00006E38 +#define CS35L41_OTP_TRIM_19 0x00006E3C +#define CS35L41_OTP_TRIM_20 0x00006E40 +#define CS35L41_OTP_TRIM_21 0x00006E44 +#define CS35L41_OTP_TRIM_22 0x00006E48 +#define CS35L41_OTP_TRIM_23 0x00006E4C +#define CS35L41_OTP_TRIM_24 0x00006E50 +#define CS35L41_OTP_TRIM_25 0x00006E54 +#define CS35L41_OTP_TRIM_26 0x00006E58 +#define CS35L41_OTP_TRIM_27 0x00006E5C +#define CS35L41_OTP_TRIM_28 0x00006E60 +#define CS35L41_OTP_TRIM_29 0x00006E64 +#define CS35L41_OTP_TRIM_30 0x00007418 +#define CS35L41_OTP_TRIM_31 0x0000741C +#define CS35L41_OTP_TRIM_32 0x00007434 +#define CS35L41_OTP_TRIM_33 0x00007068 +#define CS35L41_OTP_TRIM_34 0x0000410C +#define CS35L41_OTP_TRIM_35 0x0000400C +#define CS35L41_OTP_TRIM_36 0x00002030 + +#define CS35L41_MAX_CACHE_REG 36 +#define CS35L41_OTP_SIZE_WORDS 32 +#define CS35L41_NUM_OTP_ELEM 100 +#define CS35L41_NUM_OTP_MAPS 5 + +#define CS35L41_VALID_PDATA 0x80000000 +#define CS35L41_NUM_SUPPLIES 2 + +#define CS35L41_SCLK_MSTR_MASK 0x10 +#define CS35L41_SCLK_MSTR_SHIFT 4 +#define CS35L41_LRCLK_MSTR_MASK 0x01 +#define CS35L41_LRCLK_MSTR_SHIFT 0 +#define CS35L41_SCLK_INV_MASK 0x40 +#define CS35L41_SCLK_INV_SHIFT 6 +#define CS35L41_LRCLK_INV_MASK 0x04 +#define CS35L41_LRCLK_INV_SHIFT 2 +#define CS35L41_SCLK_FRC_MASK 0x20 +#define CS35L41_SCLK_FRC_SHIFT 5 +#define CS35L41_LRCLK_FRC_MASK 0x02 +#define CS35L41_LRCLK_FRC_SHIFT 1 + +#define CS35L41_AMP_GAIN_PCM_MASK 0x3E0 +#define CS35L41_AMP_GAIN_ZC_MASK 0x0400 +#define CS35L41_AMP_GAIN_ZC_SHIFT 10 + +#define CS35L41_BST_CTL_MASK 0xFF +#define CS35L41_BST_CTL_SEL_MASK 0x03 +#define CS35L41_BST_CTL_SEL_REG 0x00 +#define CS35L41_BST_CTL_SEL_CLASSH 0x01 +#define CS35L41_BST_IPK_MASK 0x7F +#define CS35L41_BST_IPK_SHIFT 0 +#define CS35L41_BST_LIM_MASK 0x4 +#define CS35L41_BST_LIM_SHIFT 2 +#define CS35L41_BST_K1_MASK 0x000000FF +#define CS35L41_BST_K1_SHIFT 0 +#define CS35L41_BST_K2_MASK 0x0000FF00 +#define CS35L41_BST_K2_SHIFT 8 +#define CS35L41_BST_SLOPE_MASK 0x0000FF00 +#define CS35L41_BST_SLOPE_SHIFT 8 +#define CS35L41_BST_LBST_VAL_MASK 0x00000003 +#define CS35L41_BST_LBST_VAL_SHIFT 0 + +#define CS35L41_TEMP_THLD_MASK 0x03 +#define CS35L41_VMON_IMON_VOL_MASK 0x07FF07FF +#define CS35L41_PDM_MODE_MASK 0x01 +#define CS35L41_PDM_MODE_SHIFT 0 + +#define CS35L41_CH_MEM_DEPTH_MASK 0x07 +#define CS35L41_CH_MEM_DEPTH_SHIFT 0 +#define CS35L41_CH_HDRM_CTL_MASK 0x007F0000 +#define CS35L41_CH_HDRM_CTL_SHIFT 16 +#define CS35L41_CH_REL_RATE_MASK 0xFF00 +#define CS35L41_CH_REL_RATE_SHIFT 8 +#define CS35L41_CH_WKFET_DLY_MASK 0x001C +#define CS35L41_CH_WKFET_DLY_SHIFT 2 +#define CS35L41_CH_WKFET_THLD_MASK 0x0F00 +#define CS35L41_CH_WKFET_THLD_SHIFT 8 + +#define CS35L41_HW_NG_SEL_MASK 0x3F00 +#define CS35L41_HW_NG_SEL_SHIFT 8 +#define CS35L41_HW_NG_DLY_MASK 0x0070 +#define CS35L41_HW_NG_DLY_SHIFT 4 +#define CS35L41_HW_NG_THLD_MASK 0x0007 +#define CS35L41_HW_NG_THLD_SHIFT 0 + +#define CS35L41_DSP_NG_ENABLE_MASK 0x00010000 +#define CS35L41_DSP_NG_ENABLE_SHIFT 16 +#define CS35L41_DSP_NG_THLD_MASK 0x7 +#define CS35L41_DSP_NG_THLD_SHIFT 0 +#define CS35L41_DSP_NG_DELAY_MASK 0x0F00 +#define CS35L41_DSP_NG_DELAY_SHIFT 8 + +#define CS35L41_ASP_FMT_MASK 0x0700 +#define CS35L41_ASP_FMT_SHIFT 8 +#define CS35L41_ASP_DOUT_HIZ_MASK 0x03 +#define CS35L41_ASP_DOUT_HIZ_SHIFT 0 +#define CS35L41_ASP_WIDTH_16 0x10 +#define CS35L41_ASP_WIDTH_24 0x18 +#define CS35L41_ASP_WIDTH_32 0x20 +#define CS35L41_ASP_WIDTH_TX_MASK 0xFF0000 +#define CS35L41_ASP_WIDTH_TX_SHIFT 16 +#define CS35L41_ASP_WIDTH_RX_MASK 0xFF000000 +#define CS35L41_ASP_WIDTH_RX_SHIFT 24 +#define CS35L41_ASP_RX1_SLOT_MASK 0x3F +#define CS35L41_ASP_RX1_SLOT_SHIFT 0 +#define CS35L41_ASP_RX2_SLOT_MASK 0x3F00 +#define CS35L41_ASP_RX2_SLOT_SHIFT 8 +#define CS35L41_ASP_RX_WL_MASK 0x3F +#define CS35L41_ASP_TX_WL_MASK 0x3F +#define CS35L41_ASP_RX_WL_SHIFT 0 +#define CS35L41_ASP_TX_WL_SHIFT 0 +#define CS35L41_ASP_SOURCE_MASK 0x7F + +#define CS35L41_INPUT_SRC_ASPRX1 0x08 +#define CS35L41_INPUT_SRC_ASPRX2 0x09 +#define CS35L41_INPUT_SRC_VMON 0x18 +#define CS35L41_INPUT_SRC_IMON 0x19 +#define CS35L41_INPUT_SRC_CLASSH 0x21 +#define CS35L41_INPUT_SRC_VPMON 0x28 +#define CS35L41_INPUT_SRC_VBSTMON 0x29 +#define CS35L41_INPUT_SRC_TEMPMON 0x3A +#define CS35L41_INPUT_SRC_RSVD 0x3B +#define CS35L41_INPUT_DSP_TX1 0x32 +#define CS35L41_INPUT_DSP_TX2 0x33 + +#define CS35L41_PLL_CLK_SEL_MASK 0x07 +#define CS35L41_PLL_CLK_SEL_SHIFT 0 +#define CS35L41_PLL_CLK_EN_MASK 0x10 +#define CS35L41_PLL_CLK_EN_SHIFT 4 +#define CS35L41_PLL_OPENLOOP_MASK 0x0800 +#define CS35L41_PLL_OPENLOOP_SHIFT 11 +#define CS35L41_PLLSRC_SCLK 0 +#define CS35L41_PLLSRC_LRCLK 1 +#define CS35L41_PLLSRC_SELF 3 +#define CS35L41_PLLSRC_PDMCLK 4 +#define CS35L41_PLLSRC_MCLK 5 +#define CS35L41_PLLSRC_SWIRE 7 +#define CS35L41_REFCLK_FREQ_MASK 0x7E0 +#define CS35L41_REFCLK_FREQ_SHIFT 5 + +#define CS35L41_GLOBAL_FS_MASK 0x1F +#define CS35L41_GLOBAL_FS_SHIFT 0 + +#define CS35L41_GLOBAL_EN_MASK 0x01 +#define CS35L41_GLOBAL_EN_SHIFT 0 +#define CS35L41_BST_EN_MASK 0x0030 +#define CS35L41_BST_EN_SHIFT 4 +#define CS35L41_BST_EN_DEFAULT 0x2 +#define CS35L41_AMP_EN_SHIFT 0 +#define CS35L41_AMP_EN_MASK 1 + +#define CS35L41_PDN_DONE_MASK 0x00800000 +#define CS35L41_PDN_DONE_SHIFT 23 +#define CS35L41_PUP_DONE_MASK 0x01000000 +#define CS35L41_PUP_DONE_SHIFT 24 + +#define CS35L36_PUP_DONE_IRQ_UNMASK 0x5F +#define CS35L36_PUP_DONE_IRQ_MASK 0xBF + +#define CS35L41_AMP_SHORT_ERR 0x80000000 +#define CS35L41_BST_SHORT_ERR 0x0100 +#define CS35L41_TEMP_WARN 0x8000 +#define CS35L41_TEMP_ERR 0x00020000 +#define CS35L41_BST_OVP_ERR 0x40 +#define CS35L41_BST_DCM_UVP_ERR 0x80 +#define CS35L41_OTP_BOOT_DONE 0x02 +#define CS35L41_PLL_UNLOCK 0x10 +#define CS35L41_OTP_BOOT_ERR 0x80000000 + +#define CS35L41_AMP_SHORT_ERR_RLS 0x02 +#define CS35L41_BST_SHORT_ERR_RLS 0x04 +#define CS35L41_BST_OVP_ERR_RLS 0x08 +#define CS35L41_BST_UVP_ERR_RLS 0x10 +#define CS35L41_TEMP_WARN_ERR_RLS 0x20 +#define CS35L41_TEMP_ERR_RLS 0x40 + +#define CS35L41_INT1_MASK_DEFAULT 0x7FFCFE3F +#define CS35L41_INT1_UNMASK_PUP 0xFEFFFFFF +#define CS35L41_INT1_UNMASK_PDN 0xFF7FFFFF + +#define CS35L41_GPIO_DIR_MASK 0x80000000 +#define CS35L41_GPIO_DIR_SHIFT 31 +#define CS35L41_GPIO1_CTRL_MASK 0x00030000 +#define CS35L41_GPIO1_CTRL_SHIFT 16 +#define CS35L41_GPIO2_CTRL_MASK 0x07000000 +#define CS35L41_GPIO2_CTRL_SHIFT 24 +#define CS35L41_GPIO_CTRL_OPEN_INT 2 +#define CS35L41_GPIO_CTRL_ACTV_LO 4 +#define CS35L41_GPIO_CTRL_ACTV_HI 5 +#define CS35L41_GPIO_POL_MASK 0x1000 +#define CS35L41_GPIO_POL_SHIFT 12 + +#define CS35L41_AMP_INV_PCM_SHIFT 14 +#define CS35L41_AMP_INV_PCM_MASK BIT(CS35L41_AMP_INV_PCM_SHIFT) +#define CS35L41_AMP_PCM_VOL_SHIFT 3 +#define CS35L41_AMP_PCM_VOL_MASK (0x7FF << 3) +#define CS35L41_AMP_PCM_VOL_MUTE 0x4CF + +#define CS35L41_CHIP_ID 0x35a40 +#define CS35L41R_CHIP_ID 0x35b40 +#define CS35L41_MTLREVID_MASK 0x0F +#define CS35L41_REVID_A0 0xA0 +#define CS35L41_REVID_B0 0xB0 +#define CS35L41_REVID_B2 0xB2 + +#define CS35L41_HALO_CORE_RESET 0x00000200 + +#define CS35L41_FS1_WINDOW_MASK 0x000007FF +#define CS35L41_FS2_WINDOW_MASK 0x00FFF800 +#define CS35L41_FS2_WINDOW_SHIFT 12 + +#define CS35L41_SPI_MAX_FREQ 4000000 +#define CS35L41_REGSTRIDE 4 +enum cs35l41_clk_ids {CS35L41_CLKID_SCLK =0 , CS35L41_CLKID_LRCLK = 1,
@@ -31,4 +744,18 @@ struct cs35l41_platform_data { struct cs35l41_irq_cfg irq_config2; }; +struct cs35l41_otp_packed_element_t { +u32 reg; +u8 shift; +u8 size; +}; + +struct cs35l41_otp_map_element_t { +u32 id; +u32 num_elements; +const struct cs35l41_otp_packed_element_t *map; +u32 bit_offset; +u32 word_offset; +}; +#endif /* __CS35L41_H */
sound/soc/codecs/Makefile +2 -2
@@ -54,8 +54,8 @@ snd-soc-cs35l33-objs := cs35l33.o snd-soc-cs35l34-objs := cs35l34.o snd-soc-cs35l35-objs := cs35l35.o snd-soc-cs35l36-objs := cs35l36.o -snd-soc-cs35l41-spi-objs := cs35l41-spi.o cs35l41.o cs35l41-tables.o -snd-soc-cs35l41-i2c-objs := cs35l41-i2c.o cs35l41.o cs35l41-tables.o +snd-soc-cs35l41-spi-objs := cs35l41-spi.o cs35l41.o cs35l41-lib.o +snd-soc-cs35l41-i2c-objs := cs35l41-i2c.o cs35l41.o cs35l41-lib.o snd-soc-cs42l42-objs := cs42l42.o snd-soc-cs42l51-objs := cs42l51.o snd-soc-cs42l51-i2c-objs := cs42l51-i2c.o
sound/soc/codecs/cs35l41-i2c.c +0 -1
@@ -17,7 +17,6 @@#include <linux/platform_device.h> #include <linux/slab.h> -#include <sound/cs35l41.h> #include "cs35l41.h" static struct regmap_config cs35l41_regmap_i2c = {
sound/soc/codecs/cs35l41-lib.c renamed from sound/soc/codecs/cs35l41-tables.c +4 -2
@@ -1,12 +1,14 @@// SPDX-License-Identifier: GPL-2.0 // -// cs35l41-tables.c -- CS35L41 ALSA SoC audio driver +// cs35l41-lib.c -- CS35L41 Common functions for HDA and ASoC Audio drivers // // Copyright 2017-2021 Cirrus Logic, Inc. // // Author: David Rhodes <[email protected]> +// Author: Lucas Tanure <[email protected]> -#include "cs35l41.h" +#include <linux/regmap.h> +#include <sound/cs35l41.h> const struct reg_default cs35l41_reg[CS35L41_MAX_CACHE_REG ] = { {CS35L41_PWR_CTRL1 ,0x00000000 },
sound/soc/codecs/cs35l41-spi.c +0 -1
@@ -15,7 +15,6 @@#include <linux/platform_device.h> #include <linux/spi/spi.h> -#include <sound/cs35l41.h> #include "cs35l41.h" static struct regmap_config cs35l41_regmap_spi = {
sound/soc/codecs/cs35l41.h +0 -728
744 lines not on this page · raw message
Signature · 1 line
2.34.0
Mark Brown
maintainerRe: [PATCH 02/11] ASoC: cs35l41: Convert tables to shared source code
sound/soc/codecs/Makefile snd-soc-cs35l33-objs := cs35l33.o · line 61
Quoted 13 lines · Lucas Tanure
sound/soc/codecs/Makefile +2
-2@@ -54,8 +54,8 @@ snd-soc-cs35l33-objs := cs35l33.o snd-soc-cs35l34-objs := cs35l34.o snd-soc-cs35l35-objs := cs35l35.o snd-soc-cs35l36-objs := cs35l36.o -snd-soc-cs35l41-spi-objs := cs35l41-spi.o cs35l41.o cs35l41-tables.o -snd-soc-cs35l41-i2c-objs := cs35l41-i2c.o cs35l41.o cs35l41-tables.o +snd-soc-cs35l41-spi-objs := cs35l41-spi.o cs35l41.o cs35l41-lib.o +snd-soc-cs35l41-i2c-objs := cs35l41-i2c.o cs35l41.o cs35l41-lib.o snd-soc-cs42l42-objs := cs42l42.o snd-soc-cs42l51-objs := cs42l51.o snd-soc-cs42l51-i2c-objs := cs42l51-i2c.o
As was already called out on the HDA part of this patch I was expecting this to be more like how we handle sharing the PXA2xx driver code between the ASoC and AC'97 implementations - making it a library rather than linking the object files directly into both drivers. I'm not sure that the current approach would DTRT if one or both of the drivers is built in.
Re: [PATCH 02/11] ASoC: cs35l41: Convert tables to shared source code
Quoted 13 lines · Mark Brown
Quoted 12 lines · Lucas Tanure
sound/soc/codecs/Makefile +2
-2@@ -54,8 +54,8 @@ snd-soc-cs35l33-objs := cs35l33.o snd-soc-cs35l34-objs := cs35l34.o snd-soc-cs35l35-objs := cs35l35.o snd-soc-cs35l36-objs := cs35l36.o -snd-soc-cs35l41-spi-objs := cs35l41-spi.o cs35l41.o cs35l41-tables.o -snd-soc-cs35l41-i2c-objs := cs35l41-i2c.o cs35l41.o cs35l41-tables.o +snd-soc-cs35l41-spi-objs := cs35l41-spi.o cs35l41.o cs35l41-lib.o +snd-soc-cs35l41-i2c-objs := cs35l41-i2c.o cs35l41.o cs35l41-lib.o snd-soc-cs42l42-objs := cs42l42.o snd-soc-cs42l51-objs := cs42l51.o
Quoted 8 lines
sound/soc/codecs/Makefile snd-soc-cs35l33-objs := cs35l33.o · line 61
Quoted 1 line
sound/soc/codecs/Makefile +0
-0snd-soc-cs42l51-i2c-objs := cs42l51-i2c.oAs was already called out on the HDA part of this patch I was expecting this to be more like how we handle sharing the PXA2xx driver code between the ASoC and AC'97 implementations - making it a library rather than linking the object files directly into both drivers. I'm not sure that the current approach would DTRT if one or both of the drivers is built in.
Yeah looking closer the Prince driver itself is kinda weird here since it is building separate modules for SPI and I2C but including cs25l41.o into both, rather than the more normal 3 modules approach.
I will have a look at doing a patch to fix that up, separately from Lucas's series here.
Thanks,
Charles
kernel test robot
build botRe: [PATCH 02/11] ASoC: cs35l41: Convert tables to shared source code
In reply to Lucas TanureThank you for the patch! Perhaps something to improve:
Hi Lucas,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on next-20211123]
[cannot apply to broonie-sound/for-next tiwai-sound/for-next rafael-pm/linux-next linus/master v5.16-rc2 v5.16-rc1 v5.15 v5.16-rc2] [If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Lucas-Tanure/Add-support-for-Legion-7-16ACHg6-laptop/20211124-003454 base: aacdecce8147c20b01f865b4e214bb8dbe8c4af1 config: i386-randconfig-a016-20211123 (https://download.01.org/0day-ci/archive/20211124/202111240948.k3QkxADv-lkp(a)intel.com/config.gz) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 49e3838145dff1ec91c2e67a2cb562775c8d2a08)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/0f636884a0db8bbfcdce788023de0013a4e17593
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Lucas-Tanure/Add-support-for-Legion-7-16ACHg6-laptop/20211124-003454 git checkout 0f636884a0db8bbfcdce788023de0013a4e17593
# save the config file to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
All warnings (new ones prefixed by >>):
>> sound/soc/codecs/cs35l41-lib.c:52:6: warning: no previous prototype for function 'cs35l41_readable_reg' [-Wmissing-prototypes]
bool cs35l41_readable_reg(struct device *dev, unsigned int reg)
^
sound/soc/codecs/cs35l41-lib.c:52:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool cs35l41_readable_reg(struct device *dev, unsigned int reg)
^
static
>> sound/soc/codecs/cs35l41-lib.c:336:6: warning: no previous prototype for function 'cs35l41_precious_reg' [-Wmissing-prototypes]
bool cs35l41_precious_reg(struct device *dev, unsigned int reg)
^
sound/soc/codecs/cs35l41-lib.c:336:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool cs35l41_precious_reg(struct device *dev, unsigned int reg)
^
static
>> sound/soc/codecs/cs35l41-lib.c:349:6: warning: no previous prototype for function 'cs35l41_volatile_reg' [-Wmissing-prototypes]
bool cs35l41_volatile_reg(struct device *dev, unsigned int reg)
^ sound/soc/codecs/cs35l41-lib.c:349:1: note: declare 'static' if the function is not intended to be used outside of this translation unit bool cs35l41_volatile_reg(struct device *dev, unsigned int reg)
^
static
3 warnings generated.
vim +/cs35l41_readable_reg +52 sound/soc/codecs/cs35l41-lib.c
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 51
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 @52 bool cs35l41_readable_reg(struct device *dev, unsigned int reg)
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 53 {
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 54 switch (reg) {
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 55 case CS35L41_DEVID:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 56 case CS35L41_REVID:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 57 case CS35L41_FABID:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 58 case CS35L41_RELID:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 59 case CS35L41_OTPID:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 60 case CS35L41_TEST_KEY_CTL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 61 case CS35L41_USER_KEY_CTL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 62 case CS35L41_OTP_CTRL0:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 63 case CS35L41_OTP_CTRL3:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 64 case CS35L41_OTP_CTRL4:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 65 case CS35L41_OTP_CTRL5:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 66 case CS35L41_OTP_CTRL6:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 67 case CS35L41_OTP_CTRL7:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 68 case CS35L41_OTP_CTRL8:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 69 case CS35L41_PWR_CTRL1:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 70 case CS35L41_PWR_CTRL2:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 71 case CS35L41_PWR_CTRL3:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 72 case CS35L41_CTRL_OVRRIDE:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 73 case CS35L41_AMP_OUT_MUTE:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 74 case CS35L41_PROTECT_REL_ERR_IGN:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 75 case CS35L41_GPIO_PAD_CONTROL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 76 case CS35L41_JTAG_CONTROL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 77 case CS35L41_PLL_CLK_CTRL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 78 case CS35L41_DSP_CLK_CTRL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 79 case CS35L41_GLOBAL_CLK_CTRL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 80 case CS35L41_DATA_FS_SEL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 81 case CS35L41_MDSYNC_EN:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 82 case CS35L41_MDSYNC_TX_ID:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 83 case CS35L41_MDSYNC_PWR_CTRL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 84 case CS35L41_MDSYNC_DATA_TX:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 85 case CS35L41_MDSYNC_TX_STATUS:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 86 case CS35L41_MDSYNC_DATA_RX:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 87 case CS35L41_MDSYNC_RX_STATUS:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 88 case CS35L41_MDSYNC_ERR_STATUS:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 89 case CS35L41_MDSYNC_SYNC_PTE2:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 90 case CS35L41_MDSYNC_SYNC_PTE3:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 91 case CS35L41_MDSYNC_SYNC_MSM_STATUS:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 92 case CS35L41_BSTCVRT_VCTRL1:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 93 case CS35L41_BSTCVRT_VCTRL2:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 94 case CS35L41_BSTCVRT_PEAK_CUR:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 95 case CS35L41_BSTCVRT_SFT_RAMP:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 96 case CS35L41_BSTCVRT_COEFF:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 97 case CS35L41_BSTCVRT_SLOPE_LBST:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 98 case CS35L41_BSTCVRT_SW_FREQ:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 99 case CS35L41_BSTCVRT_DCM_CTRL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 100 case CS35L41_BSTCVRT_DCM_MODE_FORCE:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 101 case CS35L41_BSTCVRT_OVERVOLT_CTRL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 102 case CS35L41_VI_VOL_POL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 103 case CS35L41_DTEMP_WARN_THLD:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 104 case CS35L41_DTEMP_CFG:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 105 case CS35L41_DTEMP_EN:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 106 case CS35L41_VPVBST_FS_SEL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 107 case CS35L41_SP_ENABLES:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 108 case CS35L41_SP_RATE_CTRL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 109 case CS35L41_SP_FORMAT:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 110 case CS35L41_SP_HIZ_CTRL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 111 case CS35L41_SP_FRAME_TX_SLOT:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 112 case CS35L41_SP_FRAME_RX_SLOT:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 113 case CS35L41_SP_TX_WL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 114 case CS35L41_SP_RX_WL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 115 case CS35L41_DAC_PCM1_SRC:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 116 case CS35L41_ASP_TX1_SRC:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 117 case CS35L41_ASP_TX2_SRC:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 118 case CS35L41_ASP_TX3_SRC:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 119 case CS35L41_ASP_TX4_SRC:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 120 case CS35L41_DSP1_RX1_SRC:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 121 case CS35L41_DSP1_RX2_SRC:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 122 case CS35L41_DSP1_RX3_SRC:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 123 case CS35L41_DSP1_RX4_SRC:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 124 case CS35L41_DSP1_RX5_SRC:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 125 case CS35L41_DSP1_RX6_SRC:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 126 case CS35L41_DSP1_RX7_SRC:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 127 case CS35L41_DSP1_RX8_SRC:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 128 case CS35L41_NGATE1_SRC:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 129 case CS35L41_NGATE2_SRC:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 130 case CS35L41_AMP_DIG_VOL_CTRL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 131 case CS35L41_VPBR_CFG:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 132 case CS35L41_VBBR_CFG:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 133 case CS35L41_VPBR_STATUS:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 134 case CS35L41_VBBR_STATUS:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 135 case CS35L41_OVERTEMP_CFG:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 136 case CS35L41_AMP_ERR_VOL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 137 case CS35L41_VOL_STATUS_TO_DSP:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 138 case CS35L41_CLASSH_CFG:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 139 case CS35L41_WKFET_CFG:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 140 case CS35L41_NG_CFG:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 141 case CS35L41_AMP_GAIN_CTRL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 142 case CS35L41_DAC_MSM_CFG:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 143 case CS35L41_IRQ1_CFG:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 144 case CS35L41_IRQ1_STATUS:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 145 case CS35L41_IRQ1_STATUS1:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 146 case CS35L41_IRQ1_STATUS2:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 147 case CS35L41_IRQ1_STATUS3:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 148 case CS35L41_IRQ1_STATUS4:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 149 case CS35L41_IRQ1_RAW_STATUS1:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 150 case CS35L41_IRQ1_RAW_STATUS2:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 151 case CS35L41_IRQ1_RAW_STATUS3:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 152 case CS35L41_IRQ1_RAW_STATUS4:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 153 case CS35L41_IRQ1_MASK1:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 154 case CS35L41_IRQ1_MASK2:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 155 case CS35L41_IRQ1_MASK3:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 156 case CS35L41_IRQ1_MASK4:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 157 case CS35L41_IRQ1_FRC1:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 158 case CS35L41_IRQ1_FRC2:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 159 case CS35L41_IRQ1_FRC3:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 160 case CS35L41_IRQ1_FRC4:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 161 case CS35L41_IRQ1_EDGE1:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 162 case CS35L41_IRQ1_EDGE4:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 163 case CS35L41_IRQ1_POL1:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 164 case CS35L41_IRQ1_POL2:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 165 case CS35L41_IRQ1_POL3:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 166 case CS35L41_IRQ1_POL4:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 167 case CS35L41_IRQ1_DB3:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 168 case CS35L41_IRQ2_CFG:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 169 case CS35L41_IRQ2_STATUS:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 170 case CS35L41_IRQ2_STATUS1:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 171 case CS35L41_IRQ2_STATUS2:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 172 case CS35L41_IRQ2_STATUS3:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 173 case CS35L41_IRQ2_STATUS4:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 174 case CS35L41_IRQ2_RAW_STATUS1:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 175 case CS35L41_IRQ2_RAW_STATUS2:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 176 case CS35L41_IRQ2_RAW_STATUS3:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 177 case CS35L41_IRQ2_RAW_STATUS4:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 178 case CS35L41_IRQ2_MASK1:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 179 case CS35L41_IRQ2_MASK2:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 180 case CS35L41_IRQ2_MASK3:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 181 case CS35L41_IRQ2_MASK4:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 182 case CS35L41_IRQ2_FRC1:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 183 case CS35L41_IRQ2_FRC2:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 184 case CS35L41_IRQ2_FRC3:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 185 case CS35L41_IRQ2_FRC4:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 186 case CS35L41_IRQ2_EDGE1:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 187 case CS35L41_IRQ2_EDGE4:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 188 case CS35L41_IRQ2_POL1:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 189 case CS35L41_IRQ2_POL2:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 190 case CS35L41_IRQ2_POL3:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 191 case CS35L41_IRQ2_POL4:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 192 case CS35L41_IRQ2_DB3:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 193 case CS35L41_GPIO_STATUS1:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 194 case CS35L41_GPIO1_CTRL1:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 195 case CS35L41_GPIO2_CTRL1:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 196 case CS35L41_MIXER_NGATE_CFG:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 197 case CS35L41_MIXER_NGATE_CH1_CFG:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 198 case CS35L41_MIXER_NGATE_CH2_CFG:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 199 case CS35L41_DSP_MBOX_1 ... CS35L41_DSP_VIRT2_MBOX_8:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 200 case CS35L41_CLOCK_DETECT_1:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 201 case CS35L41_DIE_STS1:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 202 case CS35L41_DIE_STS2:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 203 case CS35L41_TEMP_CAL1:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 204 case CS35L41_TEMP_CAL2:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 205 case CS35L41_DSP1_TIMESTAMP_COUNT:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 206 case CS35L41_DSP1_SYS_ID:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 207 case CS35L41_DSP1_SYS_VERSION:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 208 case CS35L41_DSP1_SYS_CORE_ID:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 209 case CS35L41_DSP1_SYS_AHB_ADDR:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 210 case CS35L41_DSP1_SYS_XSRAM_SIZE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 211 case CS35L41_DSP1_SYS_YSRAM_SIZE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 212 case CS35L41_DSP1_SYS_PSRAM_SIZE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 213 case CS35L41_DSP1_SYS_PM_BOOT_SIZE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 214 case CS35L41_DSP1_SYS_FEATURES:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 215 case CS35L41_DSP1_SYS_FIR_FILTERS:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 216 case CS35L41_DSP1_SYS_LMS_FILTERS:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 217 case CS35L41_DSP1_SYS_XM_BANK_SIZE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 218 case CS35L41_DSP1_SYS_YM_BANK_SIZE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 219 case CS35L41_DSP1_SYS_PM_BANK_SIZE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 220 case CS35L41_DSP1_RX1_RATE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 221 case CS35L41_DSP1_RX2_RATE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 222 case CS35L41_DSP1_RX3_RATE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 223 case CS35L41_DSP1_RX4_RATE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 224 case CS35L41_DSP1_RX5_RATE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 225 case CS35L41_DSP1_RX6_RATE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 226 case CS35L41_DSP1_RX7_RATE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 227 case CS35L41_DSP1_RX8_RATE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 228 case CS35L41_DSP1_TX1_RATE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 229 case CS35L41_DSP1_TX2_RATE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 230 case CS35L41_DSP1_TX3_RATE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 231 case CS35L41_DSP1_TX4_RATE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 232 case CS35L41_DSP1_TX5_RATE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 233 case CS35L41_DSP1_TX6_RATE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 234 case CS35L41_DSP1_TX7_RATE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 235 case CS35L41_DSP1_TX8_RATE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 236 case CS35L41_DSP1_SCRATCH1:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 237 case CS35L41_DSP1_SCRATCH2:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 238 case CS35L41_DSP1_SCRATCH3:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 239 case CS35L41_DSP1_SCRATCH4:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 240 case CS35L41_DSP1_CCM_CORE_CTRL:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 241 case CS35L41_DSP1_CCM_CLK_OVERRIDE:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 242 case CS35L41_DSP1_XM_MSTR_EN:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 243 case CS35L41_DSP1_XM_CORE_PRI:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 244 case CS35L41_DSP1_XM_AHB_PACK_PL_PRI:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 245 case CS35L41_DSP1_XM_AHB_UP_PL_PRI:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 246 case CS35L41_DSP1_XM_ACCEL_PL0_PRI:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 247 case CS35L41_DSP1_XM_NPL0_PRI:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 248 case CS35L41_DSP1_YM_MSTR_EN:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 249 case CS35L41_DSP1_YM_CORE_PRI:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 250 case CS35L41_DSP1_YM_AHB_PACK_PL_PRI:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 251 case CS35L41_DSP1_YM_AHB_UP_PL_PRI:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 252 case CS35L41_DSP1_YM_ACCEL_PL0_PRI:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 253 case CS35L41_DSP1_YM_NPL0_PRI:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 254 case CS35L41_DSP1_MPU_XM_ACCESS0:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 255 case CS35L41_DSP1_MPU_YM_ACCESS0:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 256 case CS35L41_DSP1_MPU_WNDW_ACCESS0:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 257 case CS35L41_DSP1_MPU_XREG_ACCESS0:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 258 case CS35L41_DSP1_MPU_YREG_ACCESS0:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 259 case CS35L41_DSP1_MPU_XM_ACCESS1:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 260 case CS35L41_DSP1_MPU_YM_ACCESS1:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 261 case CS35L41_DSP1_MPU_WNDW_ACCESS1:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 262 case CS35L41_DSP1_MPU_XREG_ACCESS1:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 263 case CS35L41_DSP1_MPU_YREG_ACCESS1:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 264 case CS35L41_DSP1_MPU_XM_ACCESS2:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 265 case CS35L41_DSP1_MPU_YM_ACCESS2:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 266 case CS35L41_DSP1_MPU_WNDW_ACCESS2:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 267 case CS35L41_DSP1_MPU_XREG_ACCESS2:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 268 case CS35L41_DSP1_MPU_YREG_ACCESS2:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 269 case CS35L41_DSP1_MPU_XM_ACCESS3:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 270 case CS35L41_DSP1_MPU_YM_ACCESS3:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 271 case CS35L41_DSP1_MPU_WNDW_ACCESS3:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 272 case CS35L41_DSP1_MPU_XREG_ACCESS3:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 273 case CS35L41_DSP1_MPU_YREG_ACCESS3:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 274 case CS35L41_DSP1_MPU_XM_VIO_ADDR:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 275 case CS35L41_DSP1_MPU_XM_VIO_STATUS:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 276 case CS35L41_DSP1_MPU_YM_VIO_ADDR:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 277 case CS35L41_DSP1_MPU_YM_VIO_STATUS:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 278 case CS35L41_DSP1_MPU_PM_VIO_ADDR:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 279 case CS35L41_DSP1_MPU_PM_VIO_STATUS:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 280 case CS35L41_DSP1_MPU_LOCK_CONFIG:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 281 case CS35L41_DSP1_MPU_WDT_RST_CTRL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 282 case CS35L41_OTP_TRIM_1:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 283 case CS35L41_OTP_TRIM_2:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 284 case CS35L41_OTP_TRIM_3:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 285 case CS35L41_OTP_TRIM_4:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 286 case CS35L41_OTP_TRIM_5:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 287 case CS35L41_OTP_TRIM_6:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 288 case CS35L41_OTP_TRIM_7:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 289 case CS35L41_OTP_TRIM_8:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 290 case CS35L41_OTP_TRIM_9:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 291 case CS35L41_OTP_TRIM_10:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 292 case CS35L41_OTP_TRIM_11:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 293 case CS35L41_OTP_TRIM_12:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 294 case CS35L41_OTP_TRIM_13:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 295 case CS35L41_OTP_TRIM_14:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 296 case CS35L41_OTP_TRIM_15:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 297 case CS35L41_OTP_TRIM_16:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 298 case CS35L41_OTP_TRIM_17:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 299 case CS35L41_OTP_TRIM_18:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 300 case CS35L41_OTP_TRIM_19:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 301 case CS35L41_OTP_TRIM_20:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 302 case CS35L41_OTP_TRIM_21:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 303 case CS35L41_OTP_TRIM_22:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 304 case CS35L41_OTP_TRIM_23:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 305 case CS35L41_OTP_TRIM_24:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 306 case CS35L41_OTP_TRIM_25:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 307 case CS35L41_OTP_TRIM_26:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 308 case CS35L41_OTP_TRIM_27:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 309 case CS35L41_OTP_TRIM_28:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 310 case CS35L41_OTP_TRIM_29:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 311 case CS35L41_OTP_TRIM_30:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 312 case CS35L41_OTP_TRIM_31:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 313 case CS35L41_OTP_TRIM_32:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 314 case CS35L41_OTP_TRIM_33:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 315 case CS35L41_OTP_TRIM_34:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 316 case CS35L41_OTP_TRIM_35:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 317 case CS35L41_OTP_TRIM_36:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 318 case CS35L41_OTP_MEM0 ... CS35L41_OTP_MEM31:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 319 case CS35L41_DSP1_XMEM_PACK_0 ... CS35L41_DSP1_XMEM_PACK_3068:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 320 case CS35L41_DSP1_XMEM_UNPACK32_0 ... CS35L41_DSP1_XMEM_UNPACK32_2046:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 321 case CS35L41_DSP1_XMEM_UNPACK24_0 ... CS35L41_DSP1_XMEM_UNPACK24_4093:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 322 case CS35L41_DSP1_YMEM_PACK_0 ... CS35L41_DSP1_YMEM_PACK_1532:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 323 case CS35L41_DSP1_YMEM_UNPACK32_0 ... CS35L41_DSP1_YMEM_UNPACK32_1022:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 324 case CS35L41_DSP1_YMEM_UNPACK24_0 ... CS35L41_DSP1_YMEM_UNPACK24_2045:
bae9e13fc55cbc sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-10-29 325 case CS35L41_DSP1_PMEM_0 ... CS35L41_DSP1_PMEM_5114:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 326 /*test regs*/
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 327 case CS35L41_PLL_OVR:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 328 case CS35L41_BST_TEST_DUTY:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 329 case CS35L41_DIGPWM_IOCTRL:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 330 return true;
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 331 default:
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 332 return false;
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 333 }
6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 334 }6450ef55905688 sound/soc/codecs/cs35l41-tables.c David Rhodes 2021-09-07 335
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
PATCH v3 3/11 ASoC: cs35l41: Move regmap config struct to shared code
In reply to Lucas TanureMove regmap configs to external include so CS35L41 HDA driver can re-use it.
--- include/sound/cs35l41.h | 6 +++++- sound/soc/codecs/cs35l41-i2c.c | 15 --------------- sound/soc/codecs/cs35l41-lib.c | 34 ++++++++++++++++++++++++++++++++-- sound/soc/codecs/cs35l41-spi.c | 16 ---------------- sound/soc/codecs/cs35l41.h | 6 ------ 5 files changed, 37 insertions(+), 40 deletions(-)
include/sound/cs35l41.h +5 -1
@@ -10,6 +10,8 @@#ifndef __CS35L41_H#define __CS35L41_H +#include <linux/regmap.h> +#define CS35L41_FIRSTREG 0x00000000#define CS35L41_LASTREG 0x03804FE8#define CS35L41_DEVID 0x00000000
@@ -529,7 +531,6 @@#define CS35L41_OTP_TRIM_35 0x0000400C#define CS35L41_OTP_TRIM_36 0x00002030 -#define CS35L41_MAX_CACHE_REG 36#define CS35L41_OTP_SIZE_WORDS 32#define CS35L41_NUM_OTP_ELEM 100#define CS35L41_NUM_OTP_MAPS 5
@@ -758,4 +759,7 @@ struct cs35l41_otp_map_element_t { u32 word_offset; }; +extern struct regmap_config cs35l41_regmap_i2c; +extern struct regmap_config cs35l41_regmap_spi; +#endif /* __CS35L41_H */
sound/soc/codecs/cs35l41-i2c.c +0 -15
@@ -19,21 +19,6 @@#include "cs35l41.h" -static struct regmap_config cs35l41_regmap_i2c = { - .reg_bits =32 , - .val_bits =32 , - .reg_stride =CS35L41_REGSTRIDE , - .reg_format_endian =REGMAP_ENDIAN_BIG , - .val_format_endian =REGMAP_ENDIAN_BIG , - .max_register =CS35L41_LASTREG , - .reg_defaults = cs35l41_reg, - .num_reg_defaults =ARRAY_SIZE (cs35l41_reg), - .volatile_reg = cs35l41_volatile_reg, - .readable_reg = cs35l41_readable_reg, - .precious_reg = cs35l41_precious_reg, - .cache_type =REGCACHE_RBTREE , -}; -static const struct i2c_device_id cs35l41_id_i2c[] = { {"cs35l40" ,0 }, {"cs35l41" ,0 },
sound/soc/codecs/cs35l41-lib.c +32 -2
@@ -7,10 +7,9 @@// Author: David Rhodes <[email protected]> // Author: Lucas Tanure <[email protected]> -#include <linux/regmap.h> #include <sound/cs35l41.h> -const struct reg_default cs35l41_reg[CS35L41_MAX_CACHE_REG ] = { +const struct reg_default cs35l41_reg[] = { {CS35L41_PWR_CTRL1 ,0x00000000 }, {CS35L41_PWR_CTRL3 ,0x01000010 }, {CS35L41_GPIO_PAD_CONTROL ,0x00000000 },
@@ -690,3 +689,34 @@ const struct cs35l41_otp_map_element_t cs35l41_otp_map_map[CS35L41_NUM_OTP_MAPS] .word_offset = 2, }, }; + +struct regmap_config cs35l41_regmap_i2c = { + .reg_bits =32 , + .val_bits =32 , + .reg_stride =CS35L41_REGSTRIDE , + .reg_format_endian =REGMAP_ENDIAN_BIG , + .val_format_endian =REGMAP_ENDIAN_BIG , + .max_register =CS35L41_LASTREG , + .reg_defaults = cs35l41_reg, + .num_reg_defaults =ARRAY_SIZE (cs35l41_reg), + .volatile_reg = cs35l41_volatile_reg, + .readable_reg = cs35l41_readable_reg, + .precious_reg = cs35l41_precious_reg, + .cache_type =REGCACHE_RBTREE , +}; + +struct regmap_config cs35l41_regmap_spi = { + .reg_bits =32 , + .val_bits =32 , + .pad_bits =16 , + .reg_stride =CS35L41_REGSTRIDE , + .reg_format_endian =REGMAP_ENDIAN_BIG , + .val_format_endian =REGMAP_ENDIAN_BIG , + .max_register =CS35L41_LASTREG , + .reg_defaults = cs35l41_reg, + .num_reg_defaults =ARRAY_SIZE (cs35l41_reg), + .volatile_reg = cs35l41_volatile_reg, + .readable_reg = cs35l41_readable_reg, + .precious_reg = cs35l41_precious_reg, + .cache_type =REGCACHE_RBTREE , +};
sound/soc/codecs/cs35l41-spi.c +0 -16
@@ -17,22 +17,6 @@#include "cs35l41.h" -static struct regmap_config cs35l41_regmap_spi = { - .reg_bits =32 , - .val_bits =32 , - .pad_bits =16 , - .reg_stride =CS35L41_REGSTRIDE , - .reg_format_endian =REGMAP_ENDIAN_BIG , - .val_format_endian =REGMAP_ENDIAN_BIG , - .max_register =CS35L41_LASTREG , - .reg_defaults = cs35l41_reg, - .num_reg_defaults =ARRAY_SIZE (cs35l41_reg), - .volatile_reg = cs35l41_volatile_reg, - .readable_reg = cs35l41_readable_reg, - .precious_reg = cs35l41_precious_reg, - .cache_type =REGCACHE_RBTREE , -}; -static const struct spi_device_id cs35l41_id_spi[] = { {"cs35l40" ,0 }, {"cs35l41" ,0 },
sound/soc/codecs/cs35l41.h +0 -6
@@ -11,7 +11,6 @@#define __CS35L41_H__#include <linux/gpio/consumer.h> -#include <linux/regmap.h> #include <linux/regulator/consumer.h> #include <linux/firmware.h> #include <sound/core.h>
@@ -22,11 +21,6 @@#define CS35L41_RX_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE)#define CS35L41_TX_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE) -bool cs35l41_readable_reg (struct device *dev,unsigned int reg); -bool cs35l41_precious_reg (struct device *dev,unsigned int reg); -bool cs35l41_volatile_reg (struct device *dev,unsigned int reg); - -extern const struct reg_default cs35l41_reg[CS35L41_MAX_CACHE_REG ];extern const struct cs35l41_otp_map_element_t cs35l41_otp_map_map[CS35L41_NUM_OTP_MAPS ];
Signature · 1 line
2.34.0
Mark Brown
maintainerRe: [PATCH 03/11] ASoC: cs35l41: Move regmap config struct to shared code
Quoted 10 lines · Lucas Tanure
Move regmap configs to external include so CS35L41 HDA driver can re-use it.
Signed-off-by Lucas Tanure <[email protected]>--- include/sound/cs35l41.h | 6 +++++- sound/soc/codecs/cs35l41-i2c.c | 15 --------------- sound/soc/codecs/cs35l41-lib.c | 34 ++++++++++++++++++++++++++++++++-- sound/soc/codecs/cs35l41-spi.c | 16 ---------------- sound/soc/codecs/cs35l41.h | 6 ------
It looks like they actually end up in a .c file rather than an include which is what I'd expect (and I don't see anything fishy like including .c files).
sound/soc/codecs/cs35l41-lib.c line 12
Quoted 2 lines
sound/soc/codecs/cs35l41-lib.c +1
-1-const struct reg_default cs35l41_reg[CS35L41_MAX_CACHE_REG ] = { +const struct reg_default cs35l41_reg[] = {
This isn't quite a straight move - it's worth calling that out in the changelog.
PATCH v3 4/11 ASoC: cs35l41: Create function for init array of Supplies
In reply to Lucas TanureBoth ASoC and HDA system have to initialize the arrays of supplies in the same way, so create a function for that in shared code
--- include/sound/cs35l41.h | 5 ++++- sound/soc/codecs/cs35l41-lib.c | 29 +++++++++++++++++++++++++++++ sound/soc/codecs/cs35l41.c | 23 +++-------------------- 3 files changed, 36 insertions(+), 21 deletions(-)
include/sound/cs35l41.h +4 -1
@@ -536,7 +536,6 @@#define CS35L41_NUM_OTP_MAPS 5#define CS35L41_VALID_PDATA 0x80000000 -#define CS35L41_NUM_SUPPLIES 2#define CS35L41_SCLK_MSTR_MASK 0x10#define CS35L41_SCLK_MSTR_SHIFT 4
@@ -724,6 +723,8 @@#define CS35L41_SPI_MAX_FREQ 4000000#define CS35L41_REGSTRIDE 4 +#define CS35L41_NUM_SUPPLIES 2 +enum cs35l41_clk_ids {CS35L41_CLKID_SCLK =0 ,CS35L41_CLKID_LRCLK =1 ,
@@ -762,4 +763,6 @@ struct cs35l41_otp_map_element_t {extern struct regmap_config cs35l41_regmap_i2c;extern struct regmap_config cs35l41_regmap_spi; +int cs35l41_init_supplies (struct device *dev,struct regulator_bulk_data *supplies); +#endif /* __CS35L41_H */
sound/soc/codecs/cs35l41-lib.c +29 -0
@@ -7,6 +7,7 @@// Author: David Rhodes <[email protected]> // Author: Lucas Tanure <[email protected]> +#include <linux/regulator/consumer.h> #include <sound/cs35l41.h> const struct reg_default cs35l41_reg[] = {
@@ -690,6 +691,11 @@ const struct cs35l41_otp_map_element_t cs35l41_otp_map_map[CS35L41_NUM_OTP_MAPS] }, }; +static const char *const cs35l41_supplies[CS35L41_NUM_SUPPLIES ] = { +"VA" , +"VP" , +}; +struct regmap_config cs35l41_regmap_i2c = { .reg_bits =32 , .val_bits =32 ,
@@ -720,3 +726,26 @@ struct regmap_config cs35l41_regmap_spi = { .precious_reg = cs35l41_precious_reg, .cache_type = REGCACHE_RBTREE, }; + +int cs35l41_init_supplies (struct device *dev,struct regulator_bulk_data *supplies) +{ +int i, ret; + +for (i =0 ; i <CS35L41_NUM_SUPPLIES ; i++) + supplies[i].supply = cs35l41_supplies[i]; + + ret =devm_regulator_bulk_get (dev,CS35L41_NUM_SUPPLIES , supplies); +if (ret !=0 ) { +dev_err (dev,"Failed to request core supplies: %d\n" , ret); +return ret; + } + + ret =regulator_bulk_enable (CS35L41_NUM_SUPPLIES , supplies); +if (ret !=0 ) { +dev_err (dev,"Failed to enable core supplies: %d\n" , ret); +return ret; + } + +return 0 ; +} +
sound/soc/codecs/cs35l41.c +3 -20
@@ -24,11 +24,6 @@#include "cs35l41.h" -static const char *const cs35l41_supplies[CS35L41_NUM_SUPPLIES ] = { -"VA" , -"VP" , -}; -struct cs35l41_pll_sysclk_config {int freq;int clk_cfg;
@@ -1526,7 +1521,7 @@ static int cs35l41_dsp_init(struct cs35l41_private *cs35l41)int cs35l41_probe (struct cs35l41_private *cs35l41,struct cs35l41_platform_data *pdata) { -u32 regid, reg_revid, i, mtl_revid, int_status, chipid_match; +u32 regid, reg_revid, mtl_revid, int_status, chipid_match;int irq_pol =0 ;int ret;
@@ -1538,21 +1533,9 @@ int cs35l41_probe(struct cs35l41_private *cs35l41,return ret; } -for (i =0 ; i <CS35L41_NUM_SUPPLIES ; i++) - cs35l41->supplies[i].supply = cs35l41_supplies[i]; - - ret =devm_regulator_bulk_get (cs35l41->dev,CS35L41_NUM_SUPPLIES , - cs35l41->supplies); -if (ret !=0 ) { -dev_err (cs35l41->dev,"Failed to request core supplies: %d\n" , ret); + ret =cs35l41_init_supplies (cs35l41->dev, cs35l41->supplies); +if (ret)return ret; - } - - ret =regulator_bulk_enable (CS35L41_NUM_SUPPLIES , cs35l41->supplies); -if (ret !=0 ) { -dev_err (cs35l41->dev,"Failed to enable core supplies: %d\n" , ret); -return ret; - }/* returning NULL can be an option if in stereo mode */ cs35l41->reset_gpio = devm_gpiod_get_optional(cs35l41->dev, "reset",
Signature · 1 line
2.34.0
Mark Brown
maintainerRe: [PATCH 04/11] ASoC: cs35l41: Create function for init array of Supplies
sound/soc/codecs/cs35l41-lib.c struct regmap_config cs35l41_regmap_spi = { · line 747
Quoted 5 lines · Lucas Tanure
sound/soc/codecs/cs35l41-lib.c +5
-0+ ret =regulator_bulk_enable (CS35L41_NUM_SUPPLIES , supplies); +if (ret !=0 ) { +dev_err (dev,"Failed to enable core supplies: %d\n" , ret); +return ret; + }
Where's the matching disable, I didn't see anything in the HDA code? It is there in cs35l41_remove() in the CODEC driver but there's nothing sharing that bit of code here that I noticed.
Mark Brown
maintainerRe: [PATCH 04/11] ASoC: cs35l41: Create function for init array of Supplies
Quoted 11 lines · Mark Brown
sound/soc/codecs/cs35l41-lib.c struct regmap_config cs35l41_regmap_spi = { · line 747
Quoted 5 lines · Lucas Tanure
sound/soc/codecs/cs35l41-lib.c +5
-0+ ret =regulator_bulk_enable (CS35L41_NUM_SUPPLIES , supplies); +if (ret !=0 ) { +dev_err (dev,"Failed to enable core supplies: %d\n" , ret); +return ret; + }Where's the matching disable, I didn't see anything in the HDA code? It is there in
cs35l41_remove()in the CODEC driver but there's nothing sharing that bit of code here that I noticed.
Relatedly, given that the HDA stuff will most likely only be used on ACPI systems are you sure it needs to handle regulators at all?
PATCH v3 5/11 ASoC: cs35l41: Move cs35l41_otp_unpack to shared code
In reply to Lucas TanureASoC and HDA will do the same cs35l41_otp_unpack, so move it to shared code
--- include/sound/cs35l41.h | 1 + sound/soc/codecs/cs35l41-lib.c | 116 ++++++++++++++++++++++++++++++ sound/soc/codecs/cs35l41.c | 125 +-------------------------------- sound/soc/codecs/cs35l41.h | 3 - 4 files changed, 118 insertions(+), 127 deletions(-)
include/sound/cs35l41.h +1 -0
@@ -764,5 +764,6 @@ extern struct regmap_config cs35l41_regmap_i2c;extern struct regmap_config cs35l41_regmap_spi;int cs35l41_init_supplies (struct device *dev,struct regulator_bulk_data *supplies); +int cs35l41_otp_unpack (struct device *dev,struct regmap *regmap);#endif /* __CS35L41_H */
sound/soc/codecs/cs35l41-lib.c +116 -0
125 lines not on this page · raw message
sound/soc/codecs/cs35l41.c +1 -124
143 lines not on this page · raw message
sound/soc/codecs/cs35l41.h +0 -3
@@ -21,9 +21,6 @@#define CS35L41_RX_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE)#define CS35L41_TX_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE) -extern const struct cs35l41_otp_map_element_t - cs35l41_otp_map_map[CS35L41_NUM_OTP_MAPS ]; -enum cs35l41_cspl_mbox_status {CSPL_MBOX_STS_RUNNING =0 ,CSPL_MBOX_STS_PAUSED =1 ,
Signature · 1 line
2.34.0
PATCH v3 6/11 ASoC: cs35l41: Move power initializations to reg_sequence
In reply to Lucas TanureASoC and HDA systems for all revisions of CS35L41 will benefit from having this initialization, so add it to reg_sequence of each revision
--- sound/soc/codecs/cs35l41-lib.c | 2 +- sound/soc/codecs/cs35l41.c | 29 +++++++++-------------------- 2 files changed, 10 insertions(+), 21 deletions(-)
sound/soc/codecs/cs35l41-lib.c +1 -1
@@ -43,7 +43,7 @@ const struct reg_default cs35l41_reg[] = { { CS35L41_CLASSH_CFG, 0x000B0405 }, { CS35L41_WKFET_CFG, 0x00000111 }, { CS35L41_NG_CFG, 0x00000033 }, - { CS35L41_AMP_GAIN_CTRL, 0x00000273 }, + { CS35L41_AMP_GAIN_CTRL, 0x00000000 }, { CS35L41_GPIO1_CTRL1, 0xE1000001 }, { CS35L41_GPIO2_CTRL1, 0xE1000001 }, { CS35L41_MIXER_NGATE_CFG, 0x00000000 },
sound/soc/codecs/cs35l41.c +9 -20
@@ -1267,6 +1267,9 @@ static int cs35l41_handle_pdata(struct device *dev, }static const struct reg_sequence cs35l41_reva0_errata_patch[] = { + {CS35L41_DSP1_CCM_CORE_CTRL ,0x00000000 }, + {CS35L41_PWR_CTRL2 ,0x00000000 }, + {CS35L41_AMP_GAIN_CTRL ,0x00000000 }, {0x00000040 ,0x00005555 }, {0x00000040 ,0x0000AAAA }, {0x00003854 ,0x05180240 },
@@ -1286,6 +1289,9 @@ static const struct reg_sequence cs35l41_reva0_errata_patch[] = { };static const struct reg_sequence cs35l41_revb0_errata_patch[] = { + {CS35L41_DSP1_CCM_CORE_CTRL ,0x00000000 }, + {CS35L41_PWR_CTRL2 ,0x00000000 }, + {CS35L41_AMP_GAIN_CTRL ,0x00000000 }, {0x00000040 ,0x00005555 }, {0x00000040 ,0x0000AAAA }, {CS35L41_VIMON_SPKMON_RESYNC ,0x00000000 },
@@ -1299,6 +1305,9 @@ static const struct reg_sequence cs35l41_revb0_errata_patch[] = { };static const struct reg_sequence cs35l41_revb2_errata_patch[] = { + {CS35L41_DSP1_CCM_CORE_CTRL ,0x00000000 }, + {CS35L41_PWR_CTRL2 ,0x00000000 }, + {CS35L41_AMP_GAIN_CTRL ,0x00000000 }, {0x00000040 ,0x00005555 }, {0x00000040 ,0x0000AAAA }, {CS35L41_VIMON_SPKMON_RESYNC ,0x00000000 },
@@ -1533,26 +1542,6 @@ int cs35l41_probe(struct cs35l41_private *cs35l41, goto err; } - ret =regmap_write (cs35l41->regmap,CS35L41_DSP1_CCM_CORE_CTRL ,0 ); -if (ret <0 ) { -dev_err (cs35l41->dev,"Write CCM_CORE_CTRL failed: %d\n" , ret); - goto err; - } - - ret =regmap_update_bits (cs35l41->regmap,CS35L41_PWR_CTRL2 , -CS35L41_AMP_EN_MASK ,0 ); -if (ret <0 ) { -dev_err (cs35l41->dev,"Write CS35L41_PWR_CTRL2 failed: %d\n" , ret); - goto err; - } - - ret =regmap_update_bits (cs35l41->regmap,CS35L41_AMP_GAIN_CTRL , -CS35L41_AMP_GAIN_PCM_MASK ,0 ); -if (ret <0 ) { -dev_err (cs35l41->dev,"Write CS35L41_AMP_GAIN_CTRL failed: %d\n" , ret); - goto err; - } - ret =cs35l41_set_pdata (cs35l41);if (ret <0 ) {dev_err (cs35l41->dev,"Set pdata failed: %d\n" , ret);
Signature · 1 line
2.34.0
PATCH v3 7/11 ASoC: cs35l41: Create shared function for errata patches
In reply to Lucas TanureASoC and HDA systems require the same errata patches, so move it to the shared code using a function the correctly applies the patches by revision
--- include/sound/cs35l41.h | 1 + sound/soc/codecs/cs35l41-lib.c | 86 ++++++++++++++++++++++++++++++++ sound/soc/codecs/cs35l41.c | 89 ++-------------------------------- 3 files changed, 90 insertions(+), 86 deletions(-)
include/sound/cs35l41.h +1 -0
@@ -765,5 +765,6 @@ extern struct regmap_config cs35l41_regmap_spi;int cs35l41_init_supplies (struct device *dev,struct regulator_bulk_data *supplies);int cs35l41_otp_unpack (struct device *dev,struct regmap *regmap); +int cs35l41_register_errata_patch (struct device *dev,struct regmap *reg,unsigned int reg_revid);#endif /* __CS35L41_H */
sound/soc/codecs/cs35l41-lib.c +86 -0
95 lines not on this page · raw message
sound/soc/codecs/cs35l41.c +3 -86
101 lines not on this page · raw message
Signature · 1 line
2.34.0
PATCH v3 8/11 ASoC: cs35l41: Create shared function for setting channels
In reply to Lucas TanureASoC and HDA will use the same register to set channels for the device
--- include/sound/cs35l41.h | 3 +++ sound/soc/codecs/cs35l41-lib.c | 32 ++++++++++++++++++++++++++++++++ sound/soc/codecs/cs35l41.c | 30 +++--------------------------- 3 files changed, 38 insertions(+), 27 deletions(-)
include/sound/cs35l41.h +3 -0
@@ -766,5 +766,8 @@ extern struct regmap_config cs35l41_regmap_spi;int cs35l41_init_supplies (struct device *dev,struct regulator_bulk_data *supplies);int cs35l41_otp_unpack (struct device *dev,struct regmap *regmap);int cs35l41_register_errata_patch (struct device *dev,struct regmap *reg,unsigned int reg_revid); +int cs35l41_set_channels (struct device *dev,struct regmap *reg, +unsigned int tx_num,unsigned int *tx_slot, +unsigned int rx_num,unsigned int *rx_slot);#endif /* __CS35L41_H */
sound/soc/codecs/cs35l41-lib.c +32 -0
@@ -951,3 +951,35 @@ int cs35l41_register_errata_patch(struct device *dev, struct regmap *reg, unsignreturn ret; } + +int cs35l41_set_channels (struct device *dev,struct regmap *reg, +unsigned int tx_num,unsigned int *tx_slot, +unsigned int rx_num,unsigned int *rx_slot) +{ +unsigned int val, mask; +int i; + +if (tx_num >4 || rx_num >2 ) +return -EINVAL ; + + val =0 ; + mask =0 ; +for (i =0 ; i < rx_num; i++) { +dev_dbg (dev,"rx slot %d position = %d\n" , i, rx_slot[i]); + val |= rx_slot[i] << (i *8 ); + mask |=0x3F << (i *8 ); + } +regmap_update_bits (reg,CS35L41_SP_FRAME_RX_SLOT , mask, val); + + val =0 ; + mask =0 ; +for (i =0 ; i < tx_num; i++) { +dev_dbg (dev,"tx slot %d position = %d\n" , i, tx_slot[i]); + val |= tx_slot[i] << (i *8 ); + mask |=0x3F << (i *8 ); + } +regmap_update_bits (reg,CS35L41_SP_FRAME_TX_SLOT , mask, val); + +return 0 ; +} +
sound/soc/codecs/cs35l41.c +3 -27
@@ -746,36 +746,12 @@ static const struct cs_dsp_region cs35l41_dsp1_regions[] = { {. type = WMFW_ADSP2_YM, .base = CS35L41_DSP1_YMEM_UNPACK24_0}, }; -static int cs35l41_set_channel_map (struct snd_soc_dai *dai,unsigned int tx_num, -unsigned int *tx_slot,unsigned int rx_num, -unsigned int *rx_slot) +static int cs35l41_set_channel_map (struct snd_soc_dai *dai,unsigned int tx_n, +unsigned int *tx_slot,unsigned int rx_n,unsigned int *rx_slot) {struct cs35l41_private *cs35l41 =snd_soc_component_get_drvdata (dai->component); -unsigned int val, mask; -int i; - -if (tx_num >4 || rx_num >2 ) -return -EINVAL ; - val =0 ; - mask =0 ; -for (i =0 ; i < rx_num; i++) { -dev_dbg (cs35l41->dev,"rx slot %d position = %d\n" , i, rx_slot[i]); - val |= rx_slot[i] << (i *8 ); - mask |=0x3F << (i *8 ); - } -regmap_update_bits (cs35l41->regmap,CS35L41_SP_FRAME_RX_SLOT , mask, val); - - val =0 ; - mask =0 ; -for (i =0 ; i < tx_num; i++) { -dev_dbg (cs35l41->dev,"tx slot %d position = %d\n" , i, tx_slot[i]); - val |= tx_slot[i] << (i *8 ); - mask |=0x3F << (i *8 ); - } -regmap_update_bits (cs35l41->regmap,CS35L41_SP_FRAME_TX_SLOT , mask, val); - -return 0 ; +return cs35l41_set_channels (cs35l41->dev, cs35l41->regmap, tx_n, tx_slot, rx_n, rx_slot); }static int cs35l41_set_dai_fmt (struct snd_soc_dai *dai,unsigned int fmt)
Signature · 1 line
2.34.0
PATCH v3 9/11 ASoC: cs35l41: Create shared function for boost configuration
In reply to Lucas TanureASoC and HDA will use the same registers to configure internal boost for the device
--- include/sound/cs35l41.h | 2 + sound/soc/codecs/cs35l41-lib.c | 97 ++++++++++++++++++++++++++++++ sound/soc/codecs/cs35l41.c | 105 +-------------------------------- 3 files changed, 101 insertions(+), 103 deletions(-)
include/sound/cs35l41.h +2 -0
@@ -769,5 +769,7 @@ int cs35l41_register_errata_patch(struct device *dev, struct regmap *reg, unsignint cs35l41_set_channels (struct device *dev,struct regmap *reg,unsigned int tx_num,unsigned int *tx_slot,unsigned int rx_num,unsigned int *rx_slot); +int cs35l41_boost_config (struct device *dev,struct regmap *regmap,int boost_ind,int boost_cap, +int boost_ipk);#endif /* __CS35L41_H */
sound/soc/codecs/cs35l41-lib.c +97 -0
100 lines not on this page · raw message
sound/soc/codecs/cs35l41.c +2 -103
123 lines not on this page · raw message
Signature · 1 line
2.34.0
PATCH v3 10/11 hda: cs35l41: Add support for CS35L41 in HDA systems
In reply to Lucas TanureAdd support for CS35L41 using a new separated driver that can be used in all upcoming designs
--- MAINTAINERS | 2 + sound/pci/hda/Kconfig | 10 + sound/pci/hda/Makefile | 28 +- sound/pci/hda/cs35l41_hda.c | 522 ++++++++++++++++++++++++++++++++ sound/pci/hda/cs35l41_hda.h | 69 +++++ sound/pci/hda/cs35l41_hda_i2c.c | 61 ++++ sound/pci/hda/hda_component.h | 20 ++ sound/pci/hda/patch_realtek.c | 103 +++++++ 8 files changed, 802 insertions(+), 13 deletions(-) create mode 100644 sound/pci/hda/cs35l41_hda.c create mode 100644 sound/pci/hda/cs35l41_hda.h create mode 100644 sound/pci/hda/cs35l41_hda_i2c.c create mode 100644 sound/pci/hda/hda_component.h
MAINTAINERS +2 -0
@@ -4513,10 +4513,12 @@ F: drivers/media/cec/i2c/ch7322.c CIRRUS LOGIC AUDIO CODEC DRIVERS M: James Schulman <[email protected]> M: David Rhodes <[email protected]> +M: Lucas Tanure <[email protected]> L: [email protected] (moderated for non-subscribers) L: [email protected] S: Maintained F: Documentation/devicetree/bindings/sound/cirrus,cs* +F: sound/pci/hda/cs35l41* F: sound/soc/codecs/cs* CIRRUS LOGIC DSP FIRMWARE DRIVER
sound/pci/hda/Kconfig +10 -0
@@ -91,6 +91,16 @@ config SND_HDA_PATCH_LOADER start up. The "patch" file can be specified via patch module option, such as patch=hda-init. +config SND_HDA_CODEC_CS35L41_I2C + tristate "Build CS35L41 HD-audio codec support for I2C Bus" + select SND_HDA_GENERIC + help + Say Y or M here to include CS35L41 I2C HD-audio codec support in + snd-hda-intel driver, such as ALC287. + +comment "Set to Y if you want auto-loading the codec driver" + depends on SND_HDA=y && SND_HDA_CODEC_CS35L41_I2C=m + config SND_HDA_CODEC_REALTEK tristate "Build Realtek HD-audio codec support" select SND_HDA_GENERIC
sound/pci/hda/Makefile +15 -13
@@ -13,25 +13,27 @@ snd-hda-codec-$(CONFIG_SND_HDA_INPUT_BEEP) += hda_beep.o CFLAGS_hda_controller.o := -I$(src) CFLAGS_hda_intel.o := -I$(src) -snd-hda-codec-generic-objs := hda_generic.o -snd-hda-codec-realtek-objs := patch_realtek.o -snd-hda-codec-cmedia-objs := patch_cmedia.o -snd-hda-codec-analog-objs := patch_analog.o -snd-hda-codec-idt-objs := patch_sigmatel.o -snd-hda-codec-si3054-objs := patch_si3054.o -snd-hda-codec-cirrus-objs := patch_cirrus.o -snd-hda-codec-cs8409-objs := patch_cs8409.o patch_cs8409-tables.o -snd-hda-codec-ca0110-objs := patch_ca0110.o -snd-hda-codec-ca0132-objs := patch_ca0132.o -snd-hda-codec-conexant-objs := patch_conexant.o -snd-hda-codec-via-objs := patch_via.o -snd-hda-codec-hdmi-objs := patch_hdmi.o hda_eld.o +snd-hda-codec-generic-objs := hda_generic.o +snd-hda-codec-cs35l41-i2c-objs := cs35l41_hda_i2c.o cs35l41_hda.o ../../soc/codecs/cs35l41-lib.o +snd-hda-codec-realtek-objs := patch_realtek.o +snd-hda-codec-cmedia-objs := patch_cmedia.o +snd-hda-codec-analog-objs := patch_analog.o +snd-hda-codec-idt-objs := patch_sigmatel.o +snd-hda-codec-si3054-objs := patch_si3054.o +snd-hda-codec-cirrus-objs := patch_cirrus.o +snd-hda-codec-cs8409-objs := patch_cs8409.o patch_cs8409-tables.o +snd-hda-codec-ca0110-objs := patch_ca0110.o +snd-hda-codec-ca0132-objs := patch_ca0132.o +snd-hda-codec-conexant-objs := patch_conexant.o +snd-hda-codec-via-objs := patch_via.o +snd-hda-codec-hdmi-objs := patch_hdmi.o hda_eld.o # common driver obj-$(CONFIG_SND_HDA) := snd-hda-codec.o # codec drivers obj-$(CONFIG_SND_HDA_GENERIC) += snd-hda-codec-generic.o +obj-$(CONFIG_SND_HDA_CODEC_CS35L41_I2C) += snd-hda-codec-cs35l41-i2c.o obj-$(CONFIG_SND_HDA_CODEC_REALTEK) += snd-hda-codec-realtek.o obj-$(CONFIG_SND_HDA_CODEC_CMEDIA) += snd-hda-codec-cmedia.o obj-$(CONFIG_SND_HDA_CODEC_ANALOG) += snd-hda-codec-analog.o
sound/pci/hda/cs35l41_hda.c new file +522 -0
522 lines not on this page · raw message
sound/pci/hda/cs35l41_hda.h new file +69 -0
69 lines not on this page · raw message
sound/pci/hda/cs35l41_hda_i2c.c new file +61 -0
61 lines not on this page · raw message
sound/pci/hda/hda_component.h new file +20 -0
@@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* +* HD audio Component Binding Interface +* +* Copyright (C) 2021 Cirrus Logic, Inc. and +* Cirrus Logic International Semiconductor Ltd. +*/ + +#include <linux/component.h> + +#define HDA_MAX_COMPONENTS 4 +#define HDA_MAX_NAME_SIZE 50 + +struct hda_component { +struct device *dev; +char name[HDA_MAX_NAME_SIZE ]; +void (*playback_hook)(struct device *dev,int action); +int (*set_channel_map)(struct device *dev,unsigned int rx_num,unsigned int *rx_slot, +unsigned int tx_num,unsigned int *tx_slot); +};
sound/pci/hda/patch_realtek.c +103 -0
139 lines not on this page · raw message
Signature · 1 line
2.34.0
Re: [PATCH 10/11] hda: cs35l41: Add support for CS35L41 in HDA systems
Quoted 11 lines · Lucas Tanure
sound/pci/hda/Makefile +0
-4@@ -13,25 +13,27 @@ snd-hda-codec-$(CONFIG_SND_HDA_INPUT_BEEP) += hda_beep.o CFLAGS_hda_controller.o := -I$(src) CFLAGS_hda_intel.o := -I$(src) -snd-hda-codec-generic-objs := hda_generic.o -snd-hda-codec-realtek-objs := patch_realtek.o -snd-hda-codec-cmedia-objs := patch_cmedia.o -snd-hda-codec-analog-objs := patch_analog.o
sound/pci/hda/Makefile snd-hda-codec-$(CONFIG_SND_HDA_INPUT_BEEP) += hda_beep.o · line 16
Quoted 10 lines
sound/pci/hda/Makefile +1
-9-snd-hda-codec-idt-objs := patch_sigmatel.o -snd-hda-codec-si3054-objs := patch_si3054.o -snd-hda-codec-cirrus-objs := patch_cirrus.o -snd-hda-codec-cs8409-objs := patch_cs8409.o patch_cs8409-tables.o -snd-hda-codec-ca0110-objs := patch_ca0110.o -snd-hda-codec-ca0132-objs := patch_ca0132.o -snd-hda-codec-conexant-objs := patch_conexant.o -snd-hda-codec-via-objs := patch_via.o -snd-hda-codec-hdmi-objs := patch_hdmi.o hda_eld.o +snd-hda-codec-generic-objs := hda_generic.o
You don't need to change other lines because of the newly added driver below...
sound/pci/hda/Makefile snd-hda-codec-$(CONFIG_SND_HDA_INPUT_BEEP) += hda_beep.o · line 17
Quoted 1 line
sound/pci/hda/Makefile +1
-0+snd-hda-codec-cs35l41-i2c-objs := cs35l41_hda_i2c.o cs35l41_hda.o ../../soc/codecs/cs35l41-lib.o
Linking the object in a different level of directory is too ugly and would be problematic if multiple drivers want the cs35l41-lib stuff. IMO, it's better to make symbols in cs35l41-lib exported and select the corresponding Kconfig from HD-audio driver.
And, snd-hda-codec-cs35l41-i2c is not really a codec driver. It's rather some bridge for i2c over HD-audio. So, better to avoid snd-hda-codec-* but have some different name. Otherwise people may misunderstand.
Quoted 2 lines
sound/pci/hda/patch_realtek.c +0
-0
(snip)
Quoted 86 lines
sound/pci/hda/patch_realtek.c +82
-0@@ -6497,6 +6502,98 @@ static void alc287_fixup_legion_15imhg05_speakers(struct hda_codec *codec, } } +static int comp_match_dev_name (struct device *dev,void *data) +{ +if (strcmp (dev_name (dev), data) ==0 ) +return 1 ; + +return 0 ; +} + +static int find_comp_by_dev_name (struct alc_spec *spec,const char *name) +{ +int i; + +for (i =0 ; i <HDA_MAX_COMPONENTS ; i++) { +if (strcmp (spec->comps[i].name, name) ==0 ) +return i; + } + +return -ENODEV ; +} + +static int comp_bind (struct device *dev) +{ +struct hda_codec *codec =dev_to_hda_codec (dev); +struct alc_spec *spec = codec->spec; + +return component_bind_all (dev, spec->comps); +} + +static void comp_unbind (struct device *dev) +{ +struct hda_codec *codec =dev_to_hda_codec (dev); +struct alc_spec *spec = codec->spec; + +component_unbind_all (dev, spec->comps); +} + +static const struct component_master_ops comp_master_ops = { + .bind = comp_bind, + .unbind = comp_unbind, +}; + +void alc287_legion_16achg6_playback_hook (struct hda_pcm_stream *hinfo,struct hda_codec *codec, +struct snd_pcm_substream *sub,int action) +{ +struct alc_spec *spec = codec->spec; +unsigned int rx_slot; +int i =0 ; + +switch (action) { +case HDA_GEN_PCM_ACT_PREPARE : + rx_slot =0 ; + i =find_comp_by_dev_name (spec,"i2c-CLSA0100:00-cs35l41-hda.0" ); +if (i >=0 ) + spec->comps[i].set_channel_map (spec->comps[i].dev,0 ,NULL ,1 , &rx_slot); + + rx_slot =1 ; + i =find_comp_by_dev_name (spec,"i2c-CLSA0100:00-cs35l41-hda.1" ); +if (i >=0 ) + spec->comps[i].set_channel_map (spec->comps[i].dev,0 ,NULL ,1 , &rx_slot); +break ; + } + +for (i =0 ; i <HDA_MAX_COMPONENTS ; i++) { +if (spec->comps[i].dev) + spec->comps[i].playback_hook (spec->comps[i].dev, action); + } + + +} + +static void alc287_fixup_legion_16achg6_speakers (struct hda_codec *codec, +const struct hda_fixup *fix,int action) +{ +struct device *dev =hda_codec_dev (codec); +struct alc_spec *spec = codec->spec; +int ret; + +switch (action) { +case HDA_FIXUP_ACT_PRE_PROBE : +component_match_add (dev, &spec->match, comp_match_dev_name, +"i2c-CLSA0100:00-cs35l41-hda.0" ); + component_match_add(dev, &spec->match, comp_match_dev_name,
sound/pci/hda/patch_realtek.c static void alc287_fixup_legion_15imhg05_speakers(struct hda_codec *codec, · line 6596
Quoted 10 lines
sound/pci/hda/patch_realtek.c +10
-0+ "i2c-CLSA0100:00-cs35l41-hda.1"); + ret =component_master_add_with_match (dev, &comp_master_ops, spec->match); +if (ret) +codec_err (codec,"Fail to register component aggregator %d\n" , ret); +else + spec->gen.pcm_playback_hook = alc287_legion_16achg6_playback_hook; +break ; + } +} +
Those are needed only if the new cs35l41 stuff is enabled, so they can be wrapped with #if IS_REACHABLE(xxx).
thanks,
Takashi
Re: [PATCH 10/11] hda: cs35l41: Add support for CS35L41 in HDA systems
In reply to Lucas Tanuresound/pci/hda/cs35l41_hda_i2c.c line 41
Quoted 4 lines
sound/pci/hda/cs35l41_hda_i2c.c new file +3
-0+#ifdef CONFIG_ACPI +static const struct acpi_device_id cs35l41_acpi_hda_match[] = { + {"CLSA0100", 0 },
I could be wrong but this doesn't look like a legit ACPI _HID?
Cirrus Logic can use 'CIR', "CLI", or 'CSC' PNP ID, or an PCI ID.
in the past you used
+#ifdef CONFIG_ACPI
+static const struct acpi_device_id cs35l41_acpi_match[] = {
+ { "CSC3541", 0 }, /* Cirrus Logic PnP ID + part ID */
+ {},
+};
+MODULE_DEVICE_TABLE(acpi, cs35l41_acpi_match); +#endif
Re: [PATCH 10/11] hda: cs35l41: Add support for CS35L41 in HDA systems
Quoted 14 lines · Pierre-Louis Bossart
sound/pci/hda/cs35l41_hda_i2c.c line 41
Quoted 4 lines
sound/pci/hda/cs35l41_hda_i2c.c new file +3
-0+#ifdef CONFIG_ACPI +static const struct acpi_device_id cs35l41_acpi_hda_match[] = { + {"CLSA0100", 0 },I could be wrong but this doesn't look like a legit ACPI
_HID?Cirrus Logic can use 'CIR', "CLI", or 'CSC' PNP ID, or an PCI ID.
in the past you used
Review
Quoted 7 lines
(quoted diff) +7
-0+#ifdef CONFIG_ACPI +static const struct acpi_device_id cs35l41_acpi_match[] = { + { "CSC3541", 0 }, /* Cirrus Logic PnP ID + part ID */ + {}, +}; +MODULE_DEVICE_TABLE(acpi, cs35l41_acpi_match); +#endif
This ACPI _HID is already released, there is nothing I can do about it. Future devices will use 'CSC' PnP ID.
Re: [PATCH 10/11] hda: cs35l41: Add support for CS35L41 in HDA systems
Quoted 13 lines · On 11/23/21 11:06 AM, [email protected] wrote:
Quoted 11 lines · Pierre-Louis Bossart
sound/pci/hda/cs35l41_hda_i2c.c line 41
Quoted 4 lines
sound/pci/hda/cs35l41_hda_i2c.c new file +3
-0+#ifdef CONFIG_ACPI +static const struct acpi_device_id cs35l41_acpi_hda_match[] = { + {"CLSA0100", 0 },I could be wrong but this doesn't look like a legit ACPI
_HID?Cirrus Logic can use 'CIR', "CLI", or 'CSC' PNP ID, or an PCI ID.
in the past you used
Quoted 13 lines
Review
Quoted 10 lines
(quoted diff) +7
-0+#ifdef CONFIG_ACPI +static const struct acpi_device_id cs35l41_acpi_match[] = { + { "CSC3541", 0 }, /* Cirrus Logic PnP ID + part ID */ + {}, +}; +MODULE_DEVICE_TABLE(acpi, cs35l41_acpi_match); +#endifThis ACPI
_HIDis already released, there is nothing I can do about it. Future devices will use 'CSC' PnP ID.
ok, add a comment then that you're adding support for an already-released value that's not compliant.
Mark Brown
maintainerRe: [PATCH 10/11] hda: cs35l41: Add support for CS35L41 in HDA systems
In reply to Lucas TanureQuoted 4 lines · Lucas Tanure
S: Maintained
F:Documentation/devicetree/bindings/sound/cirrus,cs*
+F:sound/pci/hda/cs35l41*
F:sound/soc/codecs/cs*
Perhaps just match anything starting with cs rather than just this part number rather than needing to churn in future?
BTW I notice that the CC list for this series is *huge* and it's hard to see why some of the people on CC are included - please think carefully about who you're sending things to and why. People get a lot of mail but there's no need to add to the flood, it makes it more likely that things that are important will end up getting missed.
kernel test robot
build botRe: [PATCH 10/11] hda: cs35l41: Add support for CS35L41 in HDA systems
In reply to Lucas TanureI love your patch! Perhaps something to improve:
Hi Lucas,
I love your patch! Perhaps something to improve:
[auto build test WARNING on next-20211123]
[cannot apply to broonie-sound/for-next tiwai-sound/for-next rafael-pm/linux-next linus/master v5.16-rc2 v5.16-rc1 v5.15 v5.16-rc2] [If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Lucas-Tanure/Add-support-for-Legion-7-16ACHg6-laptop/20211124-003454 base: aacdecce8147c20b01f865b4e214bb8dbe8c4af1 config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20211124/202111241121.KkNm9IFL-lkp(a)intel.com/config.gz) compiler: m68k-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/57fb53c7cacc1a5e603bd248f5609e48582f19ff
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Lucas-Tanure/Add-support-for-Legion-7-16ACHg6-laptop/20211124-003454 git checkout 57fb53c7cacc1a5e603bd248f5609e48582f19ff
# save the config file to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
All warnings (new ones prefixed by >>):
>> sound/pci/hda/patch_realtek.c:6546:6: warning: no previous prototype for 'alc287_legion_16achg6_playback_hook' [-Wmissing-prototypes]
6546 | void alc287_legion_16achg6_playback_hook(struct hda_pcm_stream *hinfo, struct hda_codec *codec,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
>> sound/pci/hda/cs35l41_hda.c:179:5: warning: no previous prototype for 'cs35l41_hda_bind' [-Wmissing-prototypes]
179 | int cs35l41_hda_bind(struct device *dev, struct device *master, void *master_data)
| ^~~~~~~~~~~~~~~~
sound/pci/hda/cs35l41_hda.c: In function 'cs35l41_hda_read_acpi':
sound/pci/hda/cs35l41_hda.c:314:59: error: invalid use of undefined type 'struct acpi_device'
314 | cs35l41->reset_gpio = fwnode_gpiod_get_index(&adev->fwnode, "reset", index, GPIOD_OUT_LOW,
| ^~
--
>> sound/pci/hda/../../soc/codecs/cs35l41-lib.c:54:6: warning: no previous prototype for 'cs35l41_readable_reg' [-Wmissing-prototypes]
54 | bool cs35l41_readable_reg(struct device *dev, unsigned int reg)
| ^~~~~~~~~~~~~~~~~~~~
>> sound/pci/hda/../../soc/codecs/cs35l41-lib.c:338:6: warning: no previous prototype for 'cs35l41_precious_reg' [-Wmissing-prototypes]
338 | bool cs35l41_precious_reg(struct device *dev, unsigned int reg)
| ^~~~~~~~~~~~~~~~~~~~
>> sound/pci/hda/../../soc/codecs/cs35l41-lib.c:351:6: warning: no previous prototype for 'cs35l41_volatile_reg' [-Wmissing-prototypes] 351 | bool cs35l41_volatile_reg(struct device *dev, unsigned int reg)
| ^~~~~~~~~~~~~~~~~~~~
vim +/alc287_legion_16achg6_playback_hook +6546 sound/pci/hda/patch_realtek.c
6545
> 6546 void alc287_legion_16achg6_playback_hook(struct hda_pcm_stream *hinfo, struct hda_codec *codec,
6547 struct snd_pcm_substream *sub, int action)
6548 {
6549 struct alc_spec *spec = codec->spec;
6550 unsigned int rx_slot;
6551 int i = 0;
6552
6553 switch (action) {
6554 case HDA_GEN_PCM_ACT_PREPARE:
6555 rx_slot = 0;
6556 i = find_comp_by_dev_name(spec, "i2c-CLSA0100:00-cs35l41-hda.0");
6557 if (i >= 0)
6558 spec->comps[i].set_channel_map(spec->comps[i].dev, 0, NULL, 1, &rx_slot);
6559
6560 rx_slot = 1;
6561 i = find_comp_by_dev_name(spec, "i2c-CLSA0100:00-cs35l41-hda.1");
6562 if (i >= 0)
6563 spec->comps[i].set_channel_map(spec->comps[i].dev, 0, NULL, 1, &rx_slot);
6564 break;
6565 }
6566
6567 for (i = 0; i < HDA_MAX_COMPONENTS; i++) {
6568 if (spec->comps[i].dev)
6569 spec->comps[i].playback_hook(spec->comps[i].dev, action);
6570 }
6571
6572
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
PATCH v3 11/11 ACPI / scan: Create platform device for CLSA0100 ACPI nodes
In reply to Lucas TanureThe ACPI device with CLSA0100 is a sound card with multiple instances of CS35L41.
We add an ID to the I2C multi instantiate list to enumerate all I2C slaves correctly.
--- drivers/acpi/scan.c | 1 + drivers/platform/x86/i2c-multi-instantiate.c | 7 +++++++ 2 files changed, 8 insertions(+)
drivers/acpi/scan.c +1 -0
@@ -1708,6 +1708,7 @@ static bool acpi_device_enumeration_by_parent(struct acpi_device *device) {"BSG2150", }, {"INT33FE", }, {"INT3515", }, + {"CLSA0100", }, {} };
drivers/platform/x86/i2c-multi-instantiate.c +7 -0
@@ -147,6 +147,12 @@ static const struct i2c_inst_data int3515_data[] = { {} }; +static const struct i2c_inst_data clsa0100_data[] = { + {"cs35l41-hda" ,IRQ_RESOURCE_GPIO ,0 }, + {"cs35l41-hda" ,IRQ_RESOURCE_GPIO ,0 }, + {} +}; +/* * Note new device-ids must also be added to i2c_multi_instantiate_ids in * drivers/acpi/scan.c: acpi_device_enumeration_by_parent().
@@ -155,6 +161,7 @@ static const struct acpi_device_id i2c_multi_inst_acpi_ids[] = { { "BSG1160", (unsigned long)bsg1160_data }, { "BSG2150", (unsigned long)bsg2150_data }, { "INT3515", (unsigned long)int3515_data }, + { "CLSA0100", (unsigned long)clsa0100_data }, { } };MODULE_DEVICE_TABLE (acpi, i2c_multi_inst_acpi_ids);
Signature · 1 line
2.34.0
Re: [PATCH 11/11] ACPI / scan: Create platform device for CLSA0100 ACPI nodes
Hi Lucas,
Quoted 29 lines · Lucas Tanure
The ACPI device with CLSA0100 is a sound card with multiple instances of CS35L41.
We add an ID to the I2C multi instantiate list to enumerate all I2C slaves correctly.
Signed-off-by Lucas Tanure <[email protected]>--- drivers/acpi/scan.c | 1 + drivers/platform/x86/i2c-multi-instantiate.c | 7 +++++++ 2 files changed, 8 insertions(+)drivers/acpi/scan.c +1
-0@@ -1708,6 +1708,7 @@ static bool acpi_device_enumeration_by_parent(struct acpi_device *device) {"BSG2150", }, {"INT33FE", }, {"INT3515", }, + {"CLSA0100", }, {} };drivers/platform/x86/i2c-multi-instantiate.c +0
-0
drivers/platform/x86/i2c-multi-instantiate.c static const struct i2c_inst_data int3515_data[] = { · line 152
Quoted 6 lines
drivers/platform/x86/i2c-multi-instantiate.c +3
-0@@ -147,6 +147,12 @@ static const struct i2c_inst_data int3515_data[] = { {} }; +static const struct i2c_inst_data clsa0100_data[] = { + {"cs35l41-hda" ,IRQ_RESOURCE_GPIO ,0 }, + {"cs35l41-hda" ,IRQ_RESOURCE_GPIO ,0 },
This suggests that both amplifiers are using the same GPIO pin as shared IRQ, is that correct ? Can you share an acpidump of the laptop's DSDT tables ?
Regards,
Hans
Quoted 15 lines
drivers/platform/x86/i2c-multi-instantiate.c +4
-0+ {} +}; +/* * Note new device-ids must also be added to i2c_multi_instantiate_ids in * drivers/acpi/scan.c: acpi_device_enumeration_by_parent(). @@ -155,6 +161,7 @@ static const struct acpi_device_id i2c_multi_inst_acpi_ids[] = { { "BSG1160", (unsigned long)bsg1160_data }, { "BSG2150", (unsigned long)bsg2150_data }, { "INT3515", (unsigned long)int3515_data }, + { "CLSA0100", (unsigned long)clsa0100_data }, { } };MODULE_DEVICE_TABLE (acpi, i2c_multi_inst_acpi_ids);
Re: [PATCH 11/11] ACPI / scan: Create platform device for CLSA0100 ACPI nodes
Quoted 42 lines · Hans de Goede
Hi Lucas,
Quoted 29 lines · Lucas Tanure
The ACPI device with CLSA0100 is a sound card with multiple instances of CS35L41.
We add an ID to the I2C multi instantiate list to enumerate all I2C slaves correctly.
Signed-off-by Lucas Tanure <[email protected]>--- drivers/acpi/scan.c | 1 + drivers/platform/x86/i2c-multi-instantiate.c | 7 +++++++ 2 files changed, 8 insertions(+)drivers/acpi/scan.c +1
-0@@ -1708,6 +1708,7 @@ static bool acpi_device_enumeration_by_parent(struct acpi_device *device) {"BSG2150", }, {"INT33FE", }, {"INT3515", }, + {"CLSA0100", }, {} };drivers/platform/x86/i2c-multi-instantiate.c +0
-0drivers/platform/x86/i2c-multi-instantiate.c static const struct i2c_inst_data int3515_data[] = { · line 152
Quoted 6 lines
drivers/platform/x86/i2c-multi-instantiate.c +3
-0@@ -147,6 +147,12 @@ static const struct i2c_inst_data int3515_data[] = { {} }; +static const struct i2c_inst_data clsa0100_data[] = { + {"cs35l41-hda" ,IRQ_RESOURCE_GPIO ,0 }, + {"cs35l41-hda" ,IRQ_RESOURCE_GPIO ,0 },This suggests that both amplifiers are using the same GPIO pin as shared IRQ, is that correct ? Can you share an acpidump of the laptop's DSDT tables ?
Quoted 4 lines
Regards,
Hans
DSDT attached.
Yes, both amps share the same IRQ gpio.
Quoted 19 lines
Quoted 11 lines
drivers/platform/x86/i2c-multi-instantiate.c +3
-0+ {} +}; +/* * Note new device-ids must also be added to i2c_multi_instantiate_ids in * drivers/acpi/scan.c: acpi_device_enumeration_by_parent(). drivers/platform/x86/i2c-multi-instantiate.c static const struct acpi_device_id i2c_multi_inst_acpi_ids[] = { · line 167
Quoted 7 lines
drivers/platform/x86/i2c-multi-instantiate.c +1
-0@@ -155,6 +161,7 @@ static const struct acpi_device_id i2c_multi_inst_acpi_ids[] = { { "BSG1160", (unsigned long)bsg1160_data }, { "BSG2150", (unsigned long)bsg2150_data }, { "INT3515", (unsigned long)int3515_data }, + { "CLSA0100", (unsigned long)clsa0100_data }, { } };MODULE_DEVICE_TABLE (acpi, i2c_multi_inst_acpi_ids);
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20210930 (64-bit version)
* Copyright (c) 2000 - 2021 Intel Corporation
*
* Disassembling to symbolic ASL+ operators
*
* Disassembly of dsdt.dat, Wed Nov 17 12:32:31 2021 *
* Original Table Header:
* Signature "DSDT"
* Length 0x0001901B (102427)
* Revision 0x01 **** 32-bit table (V1), no 64-bit math support
* Checksum 0x05
* OEM ID "LENOVO"
* OEM Table ID "CB-01 "
* OEM Revision 0x00000001 (1)
* Compiler ID "ACPI"
* Compiler Version 0x00040000 (262144)
*/
DefinitionBlock ("", "DSDT", 1, "LENOVO", "CB-01 ", 0x00000001)
{
/*
* iASL Warning: There were 10 external control methods found during
* disassembly, but only 0 were resolved (10 unresolved). Additional
* ACPI tables may be required to properly disassemble the code. This
* resulting disassembler output file may not compile because the
* disassembler did not know how many arguments to assign to the
* unresolved methods. Note: SSDTs can be dynamically loaded at
* runtime and may or may not be available via the host OS.
*
* To specify the tables needed to resolve external control method
* references, the -e option can be used to specify the filenames.
* Example iASL invocations:
* iasl -e ssdt1.aml ssdt2.aml ssdt3.aml -d dsdt.aml
* iasl -e dsdt.aml ssdt2.aml -d ssdt1.aml
* iasl -e ssdt*.aml -d dsdt.aml
*
* In addition, the -fe option can be used to specify a file containing
* control method external declarations with the associated method
* argument counts. Each line of the file must be of the form:
* External (<method pathname>, MethodObj, <argument count>)
* Invocation:
* iasl -fe refs.txt -d dsdt.aml
*
* The following methods were unresolved and many not compile properly
* because the disassembler had to guess at the number of arguments
* required for each:
*/
External (_SB_.ALIB, MethodObj) // Warning: Unknown method, guessing 2 arguments
External (_SB_.APTS, MethodObj) // Warning: Unknown method, guessing 3 arguments
External (_SB_.AWAK, MethodObj) // Warning: Unknown method, guessing 1 arguments
External (_SB_.NPCF, UnknownObj)
External (_SB_.PCI0.GPP0.PEGP, UnknownObj)
External (_SB_.PCI0.GPP0.PEGP.EDP0, UnknownObj)
External (_SB_.TPM2.PTS_, MethodObj) // Warning: Unknown method, guessing 1 arguments
External (AFN4, MethodObj) // Warning: Unknown method, guessing 1 arguments
External (AFN7, MethodObj) // Warning: Unknown method, guessing 1 arguments
External (ALIB, MethodObj) // Warning: Unknown method, guessing 2 arguments
External (M009, UnknownObj)
External (M010, MethodObj) // Warning: Unknown method, guessing 2 arguments
External (MPTS, MethodObj) // Warning: Unknown method, guessing 1 arguments
External (MWAK, MethodObj) // Warning: Unknown method, guessing 1 arguments
External (NPCF, UnknownObj)
OperationRegion (DBG0, SystemIO, 0x80, One)
Field (DBG0, ByteAcc, NoLock, Preserve)
{
IO80, 8
}
OperationRegion (DBG1, SystemIO, 0x80, 0x02)
Field (DBG1, WordAcc, NoLock, Preserve)
{
P80H, 16
}
OperationRegion (ACMS, SystemIO, 0x72, 0x02)
Field (ACMS, ByteAcc, NoLock, Preserve)
{
ACMX, 8,
ACMA, 8
}
IndexField (ACMX, ACMA, ByteAcc, NoLock, Preserve)
{
Offset (0xB9),
IMEN, 8
}
OperationRegion (PSMI, SystemIO, 0xB0, 0x02)
Field (PSMI, ByteAcc, NoLock, Preserve)
{
APMC, 8,
APMD, 8
}
OperationRegion (PMRG, SystemMemory, 0xFED80300, 0x0100)
Field (PMRG, AnyAcc, NoLock, Preserve)
{
, 6,
HPEN, 1,
Offset (0x60),
P1EB, 16,
Offset (0xF0),
, 3,
RSTU, 1
}
OperationRegion (GSMG, SystemMemory, 0xFED81500, 0x03FF)
Field (GSMG, AnyAcc, NoLock, Preserve)
{
Offset (0x5C),
Offset (0x5E),
GS23, 1,
, 5,
GV23, 1,
GE23, 1,
Offset (0xA0),
Offset (0xA2),
GS40, 1,
, 5,
GV40, 1,
GE40, 1
}
OperationRegion (GSMM, SystemMemory, 0xFED80000, 0x1000)
Field (GSMM, AnyAcc, NoLock, Preserve)
{
Offset (0x288),
, 1,
CLPS, 1,
Offset (0x2B0),
, 2,
SLPS, 2
}
OperationRegion (PMI2, SystemMemory, 0xFED80300, 0x0100)
Field (PMI2, AnyAcc, NoLock, Preserve)
{
Offset (0xBB),
, 6,
PWDE, 1,
Offset (0xBC)
}
OperationRegion (P1E0, SystemIO, P1EB, 0x04)
Field (P1E0, ByteAcc, NoLock, Preserve)
{
, 14,
PEWS, 1,
WSTA, 1,
, 14,
PEWD, 1
}
OperationRegion (IOCC, SystemIO, 0x0400, 0x80)
Field (IOCC, ByteAcc, NoLock, Preserve)
{
Offset (0x01),
, 2,
RTCS, 1
}
Name (PRWP, Package (0x02)
{
Zero,
Zero
})
Method (GPRW, 2, NotSerialized)
{
PRWP [Zero] = Arg0
PRWP [One] = Arg1
If ((DAS3 == Zero))
{
If ((Arg1 <= 0x03))
{
PRWP [One] = Zero
}
}
Return (PRWP) /* \PRWP */
}
Method (SPTS, 1, NotSerialized)
{
If ((Arg0 == 0x03))
{
RSTU = Zero
}
CLPS = One
SLPS = One
PEWS = PEWS /* \PEWS */
}
Method (SWAK, 1, NotSerialized)
{
If ((Arg0 == 0x03))
{
RSTU = One
}
PEWS = PEWS /* \PEWS */
PEWD = Zero
}
Method (TPST, 1, Serialized)
{
Local0 = (Arg0 + 0xB0000000)
OperationRegion (VARM, SystemIO, 0x80, 0x04)
Field (VARM, DWordAcc, NoLock, Preserve)
{
VARR, 32
}
VARR = Local0
}
OperationRegion (GNVS, SystemMemory, 0xCDF3BA98, 0x0000018B)
Field (GNVS, AnyAcc, NoLock, Preserve)
{
SMIF, 8,
PRM0, 8,
PRM1, 8,
BRTL, 8,
TLST, 8,
IGDS, 8,
LCDA, 16,
CSTE, 16,
NSTE, 16,
CADL, 16,
PADL, 16,
LIDS, 8,
PWRS, 8,
BVAL, 32,
ADDL, 16,
BCMD, 8,
SBFN, 8,
DID, 32,
INFO, 2048,
TOML, 8,
TOMH, 8,
CEBP, 8,
C0LS, 8,
C1LS, 8,
C0HS, 8,
C1HS, 8,
ROMS, 32,
MUXF, 8,
PDDN, 8,
CNSB, 8,
RDHW, 8,
DAS3, 8,
TNBH, 8,
TCP0, 8,
TCP1, 8,
ATNB, 8,
PCP0, 8,
PCP1, 8,
PWMN, 8,
LPTY, 8,
M92D, 8,
WKPM, 8,
ALST, 8,
AFUC, 8,
EXUS, 8,
GV0E, 8,
WLSH, 8,
TSSS, 8,
AOZP, 8,
TZFG, 8,
BPS0, 8,
NAPC, 8,
PCBA, 32,
PCBL, 32,
WLAN, 8,
BLTH, 8,
GPSS, 8,
NFCS, 8,
SBTY, 8,
BDID, 16,
MWTT, 8,
ACPM, 8,
KBCS, 8,
ACEC, 8,
DPTC, 8,
ECTL, 8,
MM64, 8,
HMB1, 64,
HMB2, 64,
HMM1, 64,
HMM2, 64,
HML1, 64,
HML2, 64,
WOVS, 8,
TCNT, 8,
NPWD, 8
}
OperationRegion (OGNS, SystemMemory, 0xCDF3BF18, 0x0000000C)
Field (OGNS, AnyAcc, Lock, Preserve)
{
OG00, 8,
OG01, 8,
M2WL, 8,
THPN, 8,
PBAR, 8,
THPD, 8,
DTEN, 8,
SDMO, 8,
TBEN, 8,
TBNH, 8,
RV2I, 8,
ISDS, 8
}
Method (SCMP, 2, NotSerialized)
{
Name (STG1, Buffer (0x50){})
Name (STG2, Buffer (0x50){})
STG1 = Arg0
STG2 = Arg1
If ((SizeOf (Arg0) != SizeOf (Arg1)))
{
Return (Zero)
}
Local0 = Zero
While ((Local0 < SizeOf (Arg0)))
{
If ((DerefOf (STG1 [Local0]) != DerefOf (STG2 [Local0]
)))
{
Return (Zero)
}
Local0++
}
Return (One)
}
Name (WNOS, Zero)
Name (MYOS, Zero)
Name (HTTS, Zero)
Name (OSTB, Ones)
Name (TPOS, Zero)
Name (LINX, Zero)
Name (OSSP, Zero)
Method (SEQL, 2, Serialized)
{
Local0 = SizeOf (Arg0)
Local1 = SizeOf (Arg1)
If ((Local0 != Local1))
{
Return (Zero)
}
Name (BUF0, Buffer (Local0){})
BUF0 = Arg0
Name (BUF1, Buffer (Local0){})
BUF1 = Arg1
Local2 = Zero
While ((Local2 < Local0))
{
Local3 = DerefOf (BUF0 [Local2])
Local4 = DerefOf (BUF1 [Local2])
If ((Local3 != Local4))
{
Return (Zero)
}
Local2++
}
Return (One)
}
Method (OSTP, 0, NotSerialized)
{
If ((OSTB == Ones))
{
If (CondRefOf (\_OSI, Local0))
{
OSTB = Zero
TPOS = Zero
If (_OSI ("Windows 2001"))
{
OSTB = 0x08
TPOS = 0x08
}
If (_OSI ("Windows 2001.1"))
{
OSTB = 0x20
TPOS = 0x20
}
If (_OSI ("Windows 2001 SP1"))
{
OSTB = 0x10
TPOS = 0x10
}
If (_OSI ("Windows 2001 SP2"))
{
OSTB = 0x11
TPOS = 0x11
}
If (_OSI ("Windows 2001 SP3"))
{
OSTB = 0x12
TPOS = 0x12
}
If (_OSI ("Windows 2006"))
{
OSTB = 0x40
TPOS = 0x40
}
If (_OSI ("Windows 2006 SP1"))
{
OSTB = 0x41
TPOS = 0x41
OSSP = One
}
If (_OSI ("Windows 2009"))
{
OSSP = One
OSTB = 0x50
TPOS = 0x50
}
If (_OSI ("Windows 2012"))
{
OSSP = One
OSTB = 0x60
TPOS = 0x60
}
If (_OSI ("Windows 2013"))
{
OSSP = One
OSTB = 0x61
TPOS = 0x61
}
If (_OSI ("Windows 2015"))
{
OSSP = One
OSTB = 0x70
TPOS = 0x70
}
If (_OSI ("Linux"))
{
LINX = One
OSTB = 0x80
TPOS = 0x80
}
}
ElseIf (CondRefOf (\_OS, Local0))
{
If (SEQL (_OS, "Microsoft Windows"))
{
OSTB = One
TPOS = One
}
ElseIf (SEQL (_OS, "Microsoft WindowsME: Millennium Edition"))
{
OSTB = 0x02
TPOS = 0x02
}
ElseIf (SEQL (_OS, "Microsoft Windows NT"))
{
OSTB = 0x04
TPOS = 0x04
}
Else
{
OSTB = Zero
TPOS = Zero
}
}
Else
{
OSTB = Zero
TPOS = Zero
}
}
Return (OSTB) /* \OSTB */
}
Name (BUFN, Zero)
Name (MBUF, Buffer (0x1000){})
OperationRegion (MDBG, SystemMemory, 0xCDEB3018, 0x00001004)
Field (MDBG, AnyAcc, Lock, Preserve)
{
MDG0, 32768
}
Method (DB2H, 1, Serialized)
{
SHOW (Arg0)
MDGC (0x20)
MDG0 = MBUF /* \MBUF */
}
Method (DW2H, 1, Serialized)
{
Local0 = Arg0
Local1 = (Arg0 >> 0x08)
Local0 &= 0xFF
Local1 &= 0xFF
DB2H (Local1)
BUFN--
DB2H (Local0)
}
Method (DD2H, 1, Serialized)
{
Local0 = Arg0
Local1 = (Arg0 >> 0x10)
Local0 &= 0xFFFF
Local1 &= 0xFFFF
DW2H (Local1)
BUFN--
DW2H (Local0)
}
Method (MBGS, 1, Serialized)
{
Local0 = SizeOf (Arg0)
Name (BUFS, Buffer (Local0){})
BUFS = Arg0
MDGC (0x20)
While (Local0)
{
MDGC (DerefOf (BUFS [(SizeOf (Arg0) - Local0)]))
Local0--
}
MDG0 = MBUF /* \MBUF */
}
Method (MBGH, 1, Serialized)
{
ToHexString (Arg0, Local1)
Local0 = SizeOf (Local1)
Name (BUFS, Buffer (Local0){})
BUFS = Local1
MDGC (0x20)
While (Local0)
{
MDGC (DerefOf (BUFS [(SizeOf (Local1) - Local0)]))
Local0--
}
MDG0 = MBUF /* \MBUF */
}
Method (SHOW, 1, Serialized)
{
MDGC (NTOC ((Arg0 >> 0x04)))
MDGC (NTOC (Arg0))
}
Method (LINE, 0, Serialized)
{
Local0 = BUFN /* \BUFN */
Local0 &= 0x0F
While (Local0)
{
MDGC (Zero)
Local0++
Local0 &= 0x0F
}
}
Method (MDGC, 1, Serialized)
{
MBUF [BUFN] = Arg0
BUFN += One
If ((BUFN > 0x0FFF))
{
BUFN &= 0x0FFF
UP_L (One)
}
}
Method (UP_L, 1, Serialized)
{
Local2 = Arg0
Local2 <<= 0x04
MOVE (Local2)
Local3 = (0x1000 - Local2)
While (Local2)
{
MBUF [Local3] = Zero
Local3++
Local2--
}
}
Method (MOVE, 1, Serialized)
{
Local4 = Arg0
BUFN = Zero
Local5 = (0x1000 - Local4)
While (Local5)
{
Local5--
MBUF [BUFN] = DerefOf (MBUF [Local4])
BUFN++
Local4++
}
}
Method (NTOC, 1, Serialized)
{
Local0 = (Arg0 & 0x0F)
If ((Local0 < 0x0A))
{
Local0 += 0x30
}
Else
{
Local0 += 0x37
}
Return (Local0)
}
Scope (_SB)
{
Device (PLTF)
{
Name (_HID, "ACPI0010" /* Processor Container Device */) // _HID: Hardware ID
Name (_CID, EisaId ("PNP0A05") /* Generic Container Device */) // _CID: Compatible ID
Name (_UID, One) // _UID: Unique ID
Device (C000)
{
Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
Name (_UID, Zero) // _UID: Unique ID
}
Device (C001)
{
Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
Name (_UID, One) // _UID: Unique ID
}
Device (C002)
{
Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
Name (_UID, 0x02) // _UID: Unique ID
}
Device (C003)
{
Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
Name (_UID, 0x03) // _UID: Unique ID
}
Device (C004)
{
Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
Name (_UID, 0x04) // _UID: Unique ID
}
Device (C005)
{
Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
Name (_UID, 0x05) // _UID: Unique ID
}
Device (C006)
{
Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
Name (_UID, 0x06) // _UID: Unique ID
}
Device (C007)
{
Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
Name (_UID, 0x07) // _UID: Unique ID
}
Device (C008)
{
Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
Name (_UID, 0x08) // _UID: Unique ID
}
Device (C009)
{
Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
Name (_UID, 0x09) // _UID: Unique ID
}
Device (C00A)
{
Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
Name (_UID, 0x0A) // _UID: Unique ID
}
Device (C00B)
{
Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
Name (_UID, 0x0B) // _UID: Unique ID
}
Device (C00C)
{
Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
Name (_UID, 0x0C) // _UID: Unique ID
}
Device (C00D)
{
Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
Name (_UID, 0x0D) // _UID: Unique ID
}
Device (C00E)
{
Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
Name (_UID, 0x0E) // _UID: Unique ID
}
Device (C00F)
{
Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
Name (_UID, 0x0F) // _UID: Unique ID
}
}
}
Name (_S0, Package (0x04) // _S0_: S0 System State
{
Zero,
Zero,
Zero,
Zero
})
If ((DAS3 == One))
{
Name (_S3, Package (0x04) // _S3_: S3 System State
{
0x03,
0x03,
Zero,
Zero
})
}
Name (_S4, Package (0x04) // _S4_: S4 System State
{
0x04,
0x04,
Zero,
Zero
})
Name (_S5, Package (0x04) // _S5_: S5 System State
{
0x05,
0x05,
Zero,
Zero
})
Scope (_GPE)
{
Method (_L08, 0, NotSerialized) // _Lxx: Level-Triggered GPE, xx=0x00-0xFF
{
TPST (0x3908)
If ((TBEN == Zero))
{
Notify (\_SB.PCI0.GPP0, 0x02) // Device Wake
Notify (\_SB.PCI0.GPP1, 0x02) // Device Wake
}
Notify (\_SB.PCI0.GPP5, 0x02) // Device Wake
Notify (\_SB.PCI0.GP17, 0x02) // Device Wake
Notify (\_SB.PCI0.GP18, 0x02) // Device Wake
Notify (\_SB.PWRB, 0x02) // Device Wake
}
Method (_E0B, 0, NotSerialized) // _Exx: Edge-Triggered GPE, xx=0x00-0xFF
{
Sleep (0x64)
P80H = 0x0B
Notify (\_SB.PCI0.GPP0.PEGP, 0x81) // Information Change
}
Method (_E0C, 0, NotSerialized) // _Exx: Edge-Triggered GPE, xx=0x00-0xFF
{
Sleep (0x64)
P80H = 0x0C
Notify (\_SB.PCI0.GPP0.PEGP, 0x81) // Information Change
}
Method (_E17, 0, NotSerialized) // _Exx: Edge-Triggered GPE, xx=0x00-0xFF
{
Sleep (0x64)
P80H = 0x17
Notify (\_SB.PCI0.GPP0.PEGP, 0x81) // Information Change
}
Method (_L19, 0, NotSerialized) // _Lxx: Level-Triggered GPE, xx=0x00-0xFF
{
TPST (0x3919)
Notify (\_SB.PCI0.GP17.XHC0, 0x02) // Device Wake
Notify (\_SB.PCI0.GP17.XHC1, 0x02) // Device Wake
Notify (\_SB.PWRB, 0x02) // Device Wake
}
}
Name (PICM, Zero)
Name (GPIC, Zero)
Method (_PIC, 1, NotSerialized) // _PIC: Interrupt Model
{
PICM = Arg0
GPIC = Arg0
If (PICM)
{
\_SB.DSPI ()
If (NAPC)
{
\_SB.PCI0.NAPE ()
}
}
}
Method (_PTS, 1, NotSerialized) // _PTS: Prepare To Sleep
{
SPTS (Arg0)
If ((Arg0 == One))
{
\_SB.S80H (0x51)
}
If ((Arg0 == 0x03))
{
\_SB.S80H (0x53)
SLPS = One
Local1 = 0x40
}
If ((Arg0 == 0x04))
{
\_SB.S80H (0x54)
SLPS = One
RSTU = One
Local1 = 0x80
}
If ((Arg0 == 0x05))
{
\_SB.S80H (0x55)
If ((WKPM == One))
{
PWDE = One
}
BCMD = 0x90
\_SB.BSMI (Zero)
\_SB.GSMI (0x03)
Local1 = 0xC0
}
If (CondRefOf (\_SB.TPM2.PTS))
{
\_SB.TPM2.PTS (Arg0)
}
\_SB.APTS (Arg0, MPTS (Arg0), If ((Arg0 == 0x03))
{
If ((Acquire (\_SB.PCI0.LPC0.EC0.LFCM, 0xA000) == Zero))
{
\_SB.PCI0.LPC0.EC0.ES3F = One
Release (\_SB.PCI0.LPC0.EC0.LFCM)
}
})
}
Name (FNQ0, Package (0x16)
{
Package (0x08)
{
0x05,
0x07,
0x06,
One,
0x08,
0x03,
0x0C,
0x0B
},
Package (0x08)
{
0xFDE8,
0x000156F8,
0x000156F8,
0x01F4,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0xAFC8,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0xAFC8,
0xD2F0,
0xFDE8,
0x0113,
0x0A,
0x64,
0x00019A28,
0xC738
},
Package (0x08)
{
0x88B8,
0xD2F0,
0xFDE8,
0x0113,
0x0A,
0x64,
0x00019A28,
0xC738
},
Package (0x08)
{
0x61A8,
0xAFC8,
0xBB80,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x927C,
0xBB80,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x4E20,
0x88B8,
0x9C40,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0xEA60,
0x00014C08,
0x00014C08,
0x01F4,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00019A28,
0xC738
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00019A28,
0xC738
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x7530,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x88B8,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x9C40,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
}
})
Name (FNQ1, Package (0x16)
{
Package (0x08)
{
0x05,
0x07,
0x06,
One,
0x08,
0x03,
0x0C,
0x0B
},
Package (0x08)
{
0x00011170,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0xD6D8,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0xAFC8,
0xD2F0,
0xFDE8,
0x0113,
0x0A,
0x64,
0x00019A28,
0xC738
},
Package (0x08)
{
0x88B8,
0xD2F0,
0xFDE8,
0x0113,
0x0A,
0x64,
0x00019A28,
0xC738
},
Package (0x08)
{
0x61A8,
0xAFC8,
0xBB80,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x927C,
0xBB80,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x4E20,
0x88B8,
0x9C40,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0xEA60,
0x00014C08,
0x00014C08,
0x01F4,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00019A28,
0xC738
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00019A28,
0xC738
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x7530,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x88B8,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x9C40,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
}
})
Name (FNQ2, Package (0x16)
{
Package (0x08)
{
0x05,
0x07,
0x06,
One,
0x08,
0x03,
0x0C,
0x0B
},
Package (0x08)
{
0x000124F8,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0xD6D8,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0xAFC8,
0xD2F0,
0xFDE8,
0x0113,
0x0A,
0x64,
0x00019A28,
0xC738
},
Package (0x08)
{
0xAFC8,
0xD2F0,
0xFDE8,
0x0113,
0x0A,
0x64,
0x00019A28,
0xC738
},
Package (0x08)
{
0x61A8,
0xAFC8,
0xBB80,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x927C,
0xBB80,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x4E20,
0x88B8,
0x9C40,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0xEA60,
0x00014C08,
0x00014C08,
0x01F4,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00019A28,
0xC738
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00019A28,
0xC738
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x7530,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x88B8,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x9C40,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
}
})
Name (FNQ3, Package (0x16)
{
Package (0x08)
{
0x05,
0x07,
0x06,
One,
0x08,
0x03,
0x0C,
0x0B
},
Package (0x08)
{
0x00013880,
0x000156F8,
0x000156F8,
0x01F4,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0xAFC8,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0xAFC8,
0xD2F0,
0xFDE8,
0x0113,
0x0A,
0x64,
0x00019A28,
0xC738
},
Package (0x08)
{
0xAFC8,
0xD2F0,
0xFDE8,
0x0113,
0x0A,
0x64,
0x00019A28,
0xC738
},
Package (0x08)
{
0x61A8,
0xAFC8,
0xBB80,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x927C,
0xBB80,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x4E20,
0x88B8,
0x9C40,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0xEA60,
0x00014C08,
0x00014C08,
0x01F4,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00019A28,
0xC738
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00019A28,
0xC738
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x7530,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x88B8,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x9C40,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
}
})
Name (FNQ4, Package (0x16)
{
Package (0x08)
{
0x05,
0x07,
0x06,
One,
0x08,
0x03,
0x0C,
0x0B
},
Package (0x08)
{
0x00013880,
0x000156F8,
0x000156F8,
0x01F4,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0xC350,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0xAFC8,
0xD2F0,
0xFDE8,
0x0113,
0x0A,
0x64,
0x00019A28,
0xC738
},
Package (0x08)
{
0xAFC8,
0xD2F0,
0xFDE8,
0x0113,
0x0A,
0x64,
0x00019A28,
0xC738
},
Package (0x08)
{
0x61A8,
0xAFC8,
0xBB80,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x927C,
0xBB80,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x4E20,
0x88B8,
0x9C40,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0xEA60,
0x00014C08,
0x00014C08,
0x01F4,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00019A28,
0xC738
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00019A28,
0xC738
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x7530,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x88B8,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x9C40,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
}
})
Name (FNQ6, Package (0x09)
{
Package (0x0D)
{
0x2E,
0x07,
0x06,
0x08,
0x20,
0x22,
0x24,
0x25,
0x26,
0x27,
0x28,
0x2C,
0x03
},
Package (0x0D)
{
0xFDE8,
0x000156F8,
0x000156F8,
0x1E,
0x199A,
0x2D00,
0x21,
0x2666,
0xFE8A,
0xFEEC,
0x03C4,
0x4FAD,
0x64
},
Package (0x0D)
{
0xAFC8,
0x000156F8,
0x000156F8,
0x1E,
0x199A,
0x2800,
0x21,
0x2666,
0xFE88,
0x040E,
0x0339,
0x000FBE25,
0x64
},
Package (0x0D)
{
0xAFC8,
0xD2F0,
0xFDE8,
0x0A,
0x199A,
0x2D00,
0x21,
0x2666,
0xFF45,
0x0306,
0x029A,
0x000FD500,
0x64
},
Package (0x0D)
{
0x88B8,
0xD2F0,
0xFDE8,
0x0A,
0x199A,
0x2800,
0x21,
0x2666,
0xFE61,
0x01D2,
0x037C,
0x3E,
0x64
},
Package (0x0D)
{
0x61A8,
0xAFC8,
0xBB80,
0x05,
0x199A,
0x2800,
0x21,
0x2666,
0xFE61,
0x01D2,
0x037C,
0x3E,
0x60
},
Package (0x0D)
{
0x61A8,
0x927C,
0xBB80,
0x05,
0x199A,
0x1F00,
0x21,
0x2666,
0xB9,
0x05CF,
0x77,
0x000F88BB,
0x60
},
Package (0x0D)
{
0x4E20,
0x88B8,
0x9C40,
0x05,
0x199A,
0x1F00,
0x21,
0x2666,
0xB9,
0x05CF,
0x77,
0x000F88BB,
0x60
},
Package (0x0D)
{
0xC350,
0xD2F0,
0xFDE8,
0x0A,
0x199A,
0x2D00,
0x21,
0x2666,
0xFF45,
0x0306,
0x029A,
0x000FD500,
0x64
}
})
Name (FNQ7, Package (0x16)
{
Package (0x08)
{
0x05,
0x07,
0x06,
One,
0x08,
0x03,
0x0C,
0x0B
},
Package (0x08)
{
0x00013880,
0x000156F8,
0x000156F8,
0x01F4,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0xAFC8,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0xAFC8,
0xD2F0,
0xFDE8,
0x0113,
0x0A,
0x64,
0x00019A28,
0xC738
},
Package (0x08)
{
0xAFC8,
0xD2F0,
0xFDE8,
0x0113,
0x0A,
0x64,
0x00019A28,
0xC738
},
Package (0x08)
{
0x61A8,
0xAFC8,
0xBB80,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x927C,
0xBB80,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x4E20,
0x88B8,
0x9C40,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0xEA60,
0x00014C08,
0x00014C08,
0x01F4,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00019A28,
0xC738
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00019A28,
0xC738
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x7530,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x88B8,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x9C40,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
}
})
Name (FNQ8, Package (0x16)
{
Package (0x08)
{
0x05,
0x07,
0x06,
One,
0x08,
0x03,
0x0C,
0x0B
},
Package (0x08)
{
0x00013880,
0x000156F8,
0x000156F8,
0x01F4,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0xC350,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0xAFC8,
0xD2F0,
0xFDE8,
0x0113,
0x0A,
0x64,
0x00019A28,
0xC738
},
Package (0x08)
{
0xAFC8,
0xD2F0,
0xFDE8,
0x0113,
0x0A,
0x64,
0x00019A28,
0xC738
},
Package (0x08)
{
0x61A8,
0xAFC8,
0xBB80,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x927C,
0xBB80,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x4E20,
0x88B8,
0x9C40,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0xEA60,
0x00014C08,
0x00014C08,
0x01F4,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00019A28,
0xC738
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00019A28,
0xC738
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x7530,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x88B8,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x9C40,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
}
})
Name (FNQ9, Package (0x16)
{
Package (0x08)
{
0x05,
0x07,
0x06,
One,
0x08,
0x03,
0x0C,
0x0B
},
Package (0x08)
{
0x00011170,
0x000156F8,
0x000156F8,
0x01F4,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0xAFC8,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0xAFC8,
0xD2F0,
0xFDE8,
0x0113,
0x0A,
0x64,
0x00019A28,
0xC738
},
Package (0x08)
{
0xAFC8,
0xD2F0,
0xFDE8,
0x0113,
0x0A,
0x64,
0x00019A28,
0xC738
},
Package (0x08)
{
0x61A8,
0xAFC8,
0xBB80,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x927C,
0xBB80,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x4E20,
0x88B8,
0x9C40,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0xEA60,
0x00014C08,
0x00014C08,
0x01F4,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00019A28,
0xC738
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00019A28,
0xC738
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x7530,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x88B8,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x9C40,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
}
})
Name (FNQA, Package (0x16)
{
Package (0x08)
{
0x05,
0x07,
0x06,
One,
0x08,
0x03,
0x0C,
0x0B
},
Package (0x08)
{
0x00011170,
0x000156F8,
0x000156F8,
0x01F4,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0xAFC8,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0xAFC8,
0xD2F0,
0xFDE8,
0x0113,
0x0A,
0x64,
0x00019A28,
0xC738
},
Package (0x08)
{
0x88B8,
0xD2F0,
0xFDE8,
0x0113,
0x0A,
0x64,
0x00019A28,
0xC738
},
Package (0x08)
{
0x61A8,
0xAFC8,
0xBB80,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x927C,
0xBB80,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x4E20,
0x88B8,
0x9C40,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0xEA60,
0x00014C08,
0x00014C08,
0x01F4,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00011170,
0x4E20
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x00019A28,
0xC738
},
Package (0x08)
{
0x2710,
0x2710,
0x2710,
0x32,
0x05,
0x5A,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00015F90,
0x80E8
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x00019A28,
0xC738
},
Package (0x08)
{
0x61A8,
0x88B8,
0x88B8,
0x32,
0x05,
0x5A,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x7530,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x88B8,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
},
Package (0x08)
{
0x9C40,
0x000156F8,
0x000156F8,
0xC8,
0x1E,
0x64,
0x0001ADB0,
0xE290
}
})
OperationRegion (ECMS, SystemIO, 0x72, 0x02)
Field (ECMS, ByteAcc, Lock, Preserve)
{
INDX, 8,
DATA, 8
}
Method (RECM, 1, Serialized)
{
INDX = Arg0
Return (DATA) /* \DATA */
}
Method (WECM, 2, Serialized)
{
INDX = Arg0
DATA = Arg1
}
Method (FNQR, 1, NotSerialized)
{
Name (XX11, Buffer (0x07){})
CreateWordField (XX11, Zero, SSZE)
CreateByteField (XX11, 0x02, SMUF)
CreateDWordField (XX11, 0x03, SMUD)
SSZE = 0x07
Local0 = 0x08
If ((MCSK == 0x04))
{
If ((GTYP == 0x02))
{
Local6 = FNQ4 /* \FNQ4 */
}
Else
{
Local6 = FNQ3 /* \FNQ3 */
}
}
ElseIf ((MCSK == 0x02))
{
If (((((0x04 == GTYP) || (0x05 == GTYP)) || (0x06 ==
GTYP)) || (0x07 == GTYP)))
{
Local6 = FNQ2 /* \FNQ2 */
}
ElseIf ((GTYP == 0x02))
{
Local6 = FNQ8 /* \FNQ8 */
}
Else
{
Local6 = FNQ7 /* \FNQ7 */
}
}
ElseIf (((((0x04 == GTYP) || (0x05 == GTYP)) || (
0x06 == GTYP)) || (0x07 == GTYP)))
{
Local6 = FNQ1 /* \FNQ1 */
}
ElseIf ((GTYP == 0x02))
{
Local6 = FNQ9 /* \FNQ9 */
}
Else
{
Local6 = FNQA /* \FNQA */
}
Local1 = ((Local1 = (Local0 * 0x05)) + 0x02)
Name (BUFF, Buffer (Local1){})
BUFF [Zero] = Local1
BUFF [One] = Zero
Local2 = One
Local3 = Zero
While ((Local3 < Local0))
{
BUFF [Local2 += One] = DerefOf (DerefOf (Local6 [
Zero]) [Local3])
BUFF [Local2 += One] = (DerefOf (DerefOf (
Local6 [Arg0]) [Local3]) & 0xFF)
BUFF [Local2 += One] = ((DerefOf (DerefOf (
Local6 [Arg0]) [Local3]) & 0xFF00) >> 0x08)
BUFF [Local2 += One] = ((DerefOf (DerefOf (
Local6 [Arg0]) [Local3]) & 0x00FF0000) >> 0x10)
BUFF [Local2 += One] = ((DerefOf (DerefOf (
Local6 [Arg0]) [Local3]) & 0xFF000000) >> 0x18)
Local3 += One
}
\_SB.ALIB (0x0C, BUFF)
OperationRegion (CPUP, SystemMemory, 0xFE00D6B0, 0x10)
Field (CPUP, ByteAcc, NoLock, Preserve)
{
CPP1, 16,
CPP2, 16
}
If ((\_SB.PCI0.LPC0.EC0.CAC1 == One))
{
If (((CPP2 != Zero) && (CPP1 != Zero)))
{
SMUF = 0x07
SMUD = CPP2 /* \FNQR.CPP2 */
\_SB.ALIB (0x0C, XX11)
SMUF = 0x05
SMUD = CPP1 /* \FNQR.CPP1 */
\_SB.ALIB (0x0C, XX11)
}
}
}
Method (FNQS, 1, NotSerialized)
{
Local0 = Arg0
Local1 = ((One == Local0) || (0x02 == Local0))
Local2 = ((0x03 == Local0) || (0x04 == Local0))
Local3 = (Local1 || Local2)
If (((0x02 == \_SB.PCI0.LPC0.EC0.ACTY ()) || (0x03 == \_SB.PCI0.LPC0.EC0.ACTY ())))
{
If (Local3)
{
Local0 = 0x05
}
If ((0x06 == Local0))
{
Local0 = 0x07
}
}
If ((LCK0 == Zero))
{
FNQR (Local0)
}
}
Scope (\)
{
Name (S4FG, Zero)
}
Method (_WAK, 1, NotSerialized) // _WAK: Wake
{
SWAK (Arg0)
\_SB.AWAK (Arg0)
If (((Arg0 == 0x03) || (Arg0 == 0x04)))
{
If ((GPIC != Zero))
{
\_SB.DSPI ()
If (NAPC)
{
\_SB.PCI0.NAPE ()
}
}
}
If ((Arg0 == 0x03))
{
\_SB.S80H (0xE3)
}
If ((Arg0 == 0x04))
{
If ((DSMF == 0x02))
{
S4FG = One
}
Else
{
S4FG = Zero
}
\_SB.S80H (0xE4)
}
\_SB.ADP0.ACDC = 0xFF
If ((Arg0 != 0x03))
{
If ((Acquire (\_SB.PCI0.LPC0.EC0.LFCM, 0xA000) == Zero))
{
If ((\_SB.PCI0.LPC0.EC0.SPMO == 0x02))
{
If ((\_SB.PCI0.LPC0.EC0.ADPT == Zero))
{
FNQS (0x07)
}
Else
{
FNQS (0x06)
}
LTGP = Zero
DTGP = Zero
}
ElseIf ((\_SB.PCI0.LPC0.EC0.SPMO == One))
{
FNQS (One)
LTGP = One
DTGP = One
}
Else
{
If ((\_SB.PCI0.LPC0.EC0.ADPT == Zero))
{
FNQS (0x05)
}
Else
{
FNQS (0x03)
}
LTGP = Zero
DTGP = Zero
}
Release (\_SB.PCI0.LPC0.EC0.LFCM)
}
Notify (\_SB.NPCF, 0xC0) // Hardware-Specific
}
If ((Arg0 == 0x03))
{
If ((Acquire (\_SB.PCI0.LPC0.EC0.LFCM, 0xA000) == Zero))
{
\_SB.PCI0.LPC0.EC0.ES3F = Zero
Release (\_SB.PCI0.LPC0.EC0.LFCM)
}
}
If ((TPOS == 0x40))
{
Local0 = One
}
If ((TPOS == 0x80))
{
Local0 = 0x02
}
If ((TPOS == 0x50))
{
Local0 = 0x03
}
If ((TPOS == 0x60))
{
Local0 = 0x04
}
If ((TPOS == 0x61))
{
Local0 = 0x05
}
If ((TPOS == 0x70))
{
Local0 = 0x06
}
If ((Acquire (\_SB.PCI0.LPC0.EC0.LFCM, 0xA000) == Zero))
{
\_SB.PCI0.LPC0.EC0.OSTY = Local0
Release (\_SB.PCI0.LPC0.EC0.LFCM)
}
If ((Acquire (\_SB.PCI0.LPC0.EC0.LFCM, 0xA000) == Zero))
{
If ((RGBD == One))
{
\_SB.PCI0.LPC0.EC0.RGBS = One
}
Else
{
\_SB.PCI0.LPC0.EC0.RGBS = Zero
}
Release (\_SB.PCI0.LPC0.EC0.LFCM)
}
MWAK (Arg0)
Return (Zero)
}
Scope (_SB)
{
Device (PCI0)
{
Name (_HID, EisaId ("PNP0A08") /* PCI Express Bus */) // _HID: Hardware ID
Name (_CID, EisaId ("PNP0A03") /* PCI Bus */) // _CID: Compatible ID
Name (_UID, One) // _UID: Unique ID
Name (_BBN, Zero) // _BBN: BIOS Bus Number
Name (_ADR, Zero) // _ADR: Address
Method (_INI, 0, NotSerialized) // _INI: Initialize
{
If ((GPIC != Zero))
{
DSPI ()
If (NAPC)
{
NAPE ()
}
}
OSTP ()
}
Name (SUPP, Zero)
Name (CTRL, Zero)
Method (_OSC, 4, NotSerialized) // _OSC: Operating System Capabilities
{
CreateDWordField (Arg3, Zero, CDW1)
CreateDWordField (Arg3, 0x04, CDW2)
CreateDWordField (Arg3, 0x08, CDW3)
If ((Arg0 == ToUUID ("33db4d5b-1ff7-401c-9657-7441c03dd766") /* PCI Host Bridge Device */))
{
SUPP = CDW2 /* \_SB_.PCI0._OSC.CDW2 */
CTRL = CDW3 /* \_SB_.PCI0._OSC.CDW3 */
If ((TBEN == One))
{
If ((TBNH != Zero))
{
CTRL &= 0xFFFFFFF5
}
Else
{
CTRL &= 0xFFFFFFF4
}
}
If (((SUPP & 0x16) != 0x16))
{
CTRL &= 0x1E
}
CTRL &= 0x1D
If (~(CDW1 & One))
{
If ((CTRL & One)){}
If ((CTRL & 0x04)){}
If ((CTRL & 0x10)){}
}
If ((Arg1 != One))
{
CDW1 |= 0x08
}
If ((CDW3 != CTRL))
{
CDW1 |= 0x10
}
CDW3 = CTRL /* \_SB_.PCI0.CTRL */
Return (Arg3)
}
Else
{
CDW1 |= 0x04
Return (Arg3)
}
}
Method (TOM, 0, NotSerialized)
{
Local0 = (TOML * 0x00010000)
Local1 = (TOMH * 0x01000000)
Local0 += Local1
Return (Local0)
}
Name (CRES, ResourceTemplate ()
{
WordBusNumber (ResourceProducer, MinFixed, MaxFixed, SubDecode,
0x0000, // Granularity
0x0000, // Range Minimum
0x00FF, // Range Maximum
0x0000, // Translation Offset
0x0100, // Length
0x00,, )
WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
0x0000, // Granularity
0x0000, // Range Minimum
0x0CF7, // Range Maximum
0x0000, // Translation Offset
0x0CF8, // Length
0x00,, , TypeStatic, DenseTranslation)
WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
0x0000, // Granularity
0x0D00, // Range Minimum
0xFFFF, // Range Maximum
0x0000, // Translation Offset
0xF300, // Length
,, , TypeStatic, DenseTranslation)
DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
0x00000000, // Granularity
0x000A0000, // Range Minimum
0x000BFFFF, // Range Maximum
0x00000000, // Translation Offset
0x00020000, // Length
0x00,, , AddressRangeMemory, TypeStatic)
DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, Cacheable, ReadOnly,
0x00000000, // Granularity
0x000C0000, // Range Minimum
0x000C3FFF, // Range Maximum
0x00000000, // Translation Offset
0x00004000, // Length
0x00,, , AddressRangeMemory, TypeStatic)
DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, Cacheable, ReadOnly,
0x00000000, // Granularity
0x000C4000, // Range Minimum
0x000C7FFF, // Range Maximum
0x00000000, // Translation Offset
0x00004000, // Length
0x00,, , AddressRangeMemory, TypeStatic)
DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly,
0x00000000, // Granularity
0x000C8000, // Range Minimum
0x000CBFFF, // Range Maximum
0x00000000, // Translation Offset
0x00004000, // Length
0x00,, , AddressRangeMemory, TypeStatic)
DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly,
0x00000000, // Granularity
0x000CC000, // Range Minimum
0x000CFFFF, // Range Maximum
0x00000000, // Translation Offset
0x00004000, // Length
0x00,, , AddressRangeMemory, TypeStatic)
DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
0x00000000, // Granularity
0x000D0000, // Range Minimum
0x000D3FFF, // Range Maximum
0x00000000, // Translation Offset
0x00004000, // Length
0x00,, , AddressRangeMemory, TypeStatic)
DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
0x00000000, // Granularity
0x000D4000, // Range Minimum
0x000D7FFF, // Range Maximum
0x00000000, // Translation Offset
0x00004000, // Length
0x00,, , AddressRangeMemory, TypeStatic)
DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
0x00000000, // Granularity
0x000D8000, // Range Minimum
0x000DBFFF, // Range Maximum
0x00000000, // Translation Offset
0x00004000, // Length
0x00,, , AddressRangeMemory, TypeStatic)
DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
0x00000000, // Granularity
0x000DC000, // Range Minimum
0x000DFFFF, // Range Maximum
0x00000000, // Translation Offset
0x00004000, // Length
0x00,, , AddressRangeMemory, TypeStatic)
DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
0x00000000, // Granularity
0x000E0000, // Range Minimum
0x000E3FFF, // Range Maximum
0x00000000, // Translation Offset
0x00004000, // Length
0x00,, , AddressRangeMemory, TypeStatic)
DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
0x00000000, // Granularity
0x000E4000, // Range Minimum
0x000E7FFF, // Range Maximum
0x00000000, // Translation Offset
0x00004000, // Length
0x00,, , AddressRangeMemory, TypeStatic)
DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
0x00000000, // Granularity
0x000E8000, // Range Minimum
0x000EBFFF, // Range Maximum
0x00000000, // Translation Offset
0x00004000, // Length
0x00,, , AddressRangeMemory, TypeStatic)
DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
0x00000000, // Granularity
0x000EC000, // Range Minimum
0x000EFFFF, // Range Maximum
0x00000000, // Translation Offset
0x00004000, // Length
0x00,, , AddressRangeMemory, TypeStatic)
DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
0x00000000, // Granularity
0x80000000, // Range Minimum
0xF7FFFFFF, // Range Maximum
0x00000000, // Translation Offset
0x78000000, // Length
0x00,, _Y00, AddressRangeMemory, TypeStatic)
DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
0x00000000, // Granularity
0xFC000000, // Range Minimum
0xFEAFFFFF, // Range Maximum
0x00000000, // Translation Offset
0x02B00000, // Length
0x00,, _Y01, AddressRangeMemory, TypeStatic)
DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
0x00000000, // Granularity
0xFED45000, // Range Minimum
0xFED811FF, // Range Maximum
0x00000000, // Translation Offset
0x0003C200, // Length
0x00,, , AddressRangeMemory, TypeStatic)
DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
0x00000000, // Granularity
0xFED81900, // Range Minimum
0xFED81FFF, // Range Maximum
0x00000000, // Translation Offset
0x00000700, // Length
0x00,, , AddressRangeMemory, TypeStatic)
DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
0x00000000, // Granularity
0xFEDC0000, // Range Minimum
0xFEDC0FFF, // Range Maximum
0x00000000, // Translation Offset
0x00001000, // Length
0x00,, , AddressRangeMemory, TypeStatic)
DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
0x00000000, // Granularity
0xFEDC6000, // Range Minimum
0xFEDC6FFF, // Range Maximum
0x00000000, // Translation Offset
0x00001000, // Length
0x00,, , AddressRangeMemory, TypeStatic)
IO (Decode16,
0x0CF8, // Range Minimum
0x0CF8, // Range Maximum
0x01, // Alignment
0x08, // Length
)
QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
0x0000000000000000, // Granularity
0x0000000000000000, // Range Minimum
0x0000000000000000, // Range Maximum
0x0000000000000000, // Translation Offset
0x0000000000000000, // Length
,, _Y02, AddressRangeMemory, TypeStatic)
QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
0x0000000000000000, // Granularity
0x0000000000000000, // Range Minimum
0x0000000000000000, // Range Maximum
0x0000000000000000, // Translation Offset
0x0000000000000000, // Length
,, _Y03, AddressRangeMemory, TypeStatic)
})
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
CreateDWordField (CRES, \_SB.PCI0._Y00._MIN, BTMN) // _MIN: Minimum Base Address
CreateDWordField (CRES, \_SB.PCI0._Y00._MAX, BTMX) // _MAX: Maximum Base Address
CreateDWordField (CRES, \_SB.PCI0._Y00._LEN, BTLN) // _LEN: Length
CreateDWordField (CRES, \_SB.PCI0._Y01._MIN, BTN1) // _MIN: Minimum Base Address
CreateDWordField (CRES, \_SB.PCI0._Y01._MAX, BTX1) // _MAX: Maximum Base Address
CreateDWordField (CRES, \_SB.PCI0._Y01._LEN, BTL1) // _LEN: Length
BTMN = TOM ()
BTMX = (PCBA - One)
BTLN = (PCBA - BTMN) /* \_SB_.PCI0._CRS.BTMN */
BTN1 = (PCBL + One)
BTL1 = (BTX1 - BTN1) /* \_SB_.PCI0._CRS.BTN1 */
BTL1 += One
If ((MM64 == One))
{
CreateQWordField (CRES, \_SB.PCI0._Y02._MIN, M1MN) // _MIN: Minimum Base Address
CreateQWordField (CRES, \_SB.PCI0._Y02._MAX, M1MX) // _MAX: Maximum Base Address
CreateQWordField (CRES, \_SB.PCI0._Y02._LEN, M1LN) // _LEN: Length
M1MN = HMB1 /* \HMB1 */
M1MX = HMM1 /* \HMM1 */
M1LN = HML1 /* \HML1 */
CreateQWordField (CRES, \_SB.PCI0._Y03._MIN, M2MN) // _MIN: Minimum Base Address
CreateQWordField (CRES, \_SB.PCI0._Y03._MAX, M2MX) // _MAX: Maximum Base Address
CreateQWordField (CRES, \_SB.PCI0._Y03._LEN, M2LN) // _LEN: Length
M2MN = HMB2 /* \HMB2 */
M2MX = HMM2 /* \HMM2 */
M2LN = HML2 /* \HML2 */
}
Return (CRES) /* \_SB_.PCI0.CRES */
}
Device (MEMR)
{
Name (_HID, EisaId ("PNP0C02") /* PNP Motherboard Resources */) // _HID: Hardware ID
Name (BAR3, 0xFDE00000)
Name (MEM1, ResourceTemplate ()
{
Memory32Fixed (ReadWrite,
0x00000000, // Address Base
0x00000000, // Address Length
_Y04)
Memory32Fixed (ReadWrite,
0x00000000, // Address Base
0x00000000, // Address Length
_Y05)
Memory32Fixed (ReadWrite,
0x00000000, // Address Base
0x00000000, // Address Length
_Y06)
})
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
CreateDWordField (MEM1, \_SB.PCI0.MEMR._Y04._BAS, MB01) // _BAS: Base Address
CreateDWordField (MEM1, \_SB.PCI0.MEMR._Y04._LEN, ML01) // _LEN: Length
CreateDWordField (MEM1, \_SB.PCI0.MEMR._Y05._BAS, MB02) // _BAS: Base Address
CreateDWordField (MEM1, \_SB.PCI0.MEMR._Y05._LEN, ML02) // _LEN: Length
CreateDWordField (MEM1, \_SB.PCI0.MEMR._Y06._BAS, MB03) // _BAS: Base Address
CreateDWordField (MEM1, \_SB.PCI0.MEMR._Y06._LEN, ML03) // _LEN: Length
If (GPIC)
{
MB01 = 0xFEC00000
MB02 = 0xFEE00000
ML01 = 0x1000
If (NAPC)
{
ML01 += 0x1000
}
ML02 = 0x1000
}
If ((BAR3 != 0xFFF00000))
{
MB03 = BAR3 /* \_SB_.PCI0.MEMR.BAR3 */
ML03 = 0x00100000
}
Return (MEM1) /* \_SB_.PCI0.MEMR.MEM1 */
}
}
Mutex (NAPM, 0x00)
Method (NAPE, 0, NotSerialized)
{
Acquire (NAPM, 0xFFFF)
Local0 = (PCBA + 0xB8)
OperationRegion (VARM, SystemMemory, Local0, 0x08)
Field (VARM, DWordAcc, NoLock, Preserve)
{
NAPX, 32,
NAPD, 32
}
Local1 = NAPX /* \_SB_.PCI0.NAPE.NAPX */
NAPX = 0x14300000
Local0 = NAPD /* \_SB_.PCI0.NAPE.NAPD */
Local0 &= 0xFFFFFFEF
NAPD = Local0
NAPX = Local1
Release (NAPM)
}
Name (PR00, Package (0x0E)
{
Package (0x04)
{
0x0001FFFF,
Zero,
LNKA,
Zero
},
Package (0x04)
{
0x0001FFFF,
One,
LNKB,
Zero
},
Package (0x04)
{
0x0001FFFF,
0x02,
LNKC,
Zero
},
Package (0x04)
{
0x0002FFFF,
Zero,
LNKE,
Zero
},
Package (0x04)
{
0x0002FFFF,
One,
LNKF,
Zero
},
Package (0x04)
{
0x0002FFFF,
0x02,
LNKG,
Zero
},
Package (0x04)
{
0x0002FFFF,
0x03,
LNKH,
Zero
},
Package (0x04)
{
0x0008FFFF,
Zero,
LNKA,
Zero
},
Package (0x04)
{
0x0008FFFF,
One,
LNKB,
Zero
},
Package (0x04)
{
0x0008FFFF,
0x02,
LNKC,
Zero
},
Package (0x04)
{
0x0014FFFF,
Zero,
LNKA,
Zero
},
Package (0x04)
{
0x0014FFFF,
One,
LNKB,
Zero
},
Package (0x04)
{
0x0014FFFF,
0x02,
LNKC,
Zero
},
Package (0x04)
{
0x0014FFFF,
0x03,
LNKD,
Zero
}
})
Name (AR00, Package (0x0E)
{
Package (0x04)
{
0x0001FFFF,
Zero,
Zero,
0x10
},
Package (0x04)
{
0x0001FFFF,
One,
Zero,
0x11
},
Package (0x04)
{
0x0001FFFF,
0x02,
Zero,
0x12
},
Package (0x04)
{
0x0002FFFF,
Zero,
Zero,
0x14
},
Package (0x04)
{
0x0002FFFF,
One,
Zero,
0x15
},
Package (0x04)
{
0x0002FFFF,
0x02,
Zero,
0x16
},
Package (0x04)
{
0x0002FFFF,
0x03,
Zero,
0x17
},
Package (0x04)
{
0x0008FFFF,
Zero,
Zero,
0x10
},
Package (0x04)
{
0x0008FFFF,
One,
Zero,
0x11
},
Package (0x04)
{
0x0008FFFF,
0x02,
Zero,
0x12
},
Package (0x04)
{
0x0014FFFF,
Zero,
Zero,
0x10
},
Package (0x04)
{
0x0014FFFF,
One,
Zero,
0x11
},
Package (0x04)
{
0x0014FFFF,
0x02,
Zero,
0x12
},
Package (0x04)
{
0x0014FFFF,
0x03,
Zero,
0x13
}
})
Name (NR00, Package (0x0E)
{
Package (0x04)
{
0x0001FFFF,
Zero,
Zero,
0x28
},
Package (0x04)
{
0x0001FFFF,
One,
Zero,
0x29
},
Package (0x04)
{
0x0001FFFF,
0x02,
Zero,
0x2A
},
Package (0x04)
{
0x0002FFFF,
Zero,
Zero,
0x24
},
Package (0x04)
{
0x0002FFFF,
One,
Zero,
0x25
},
Package (0x04)
{
0x0002FFFF,
0x02,
Zero,
0x26
},
Package (0x04)
{
0x0002FFFF,
0x03,
Zero,
0x27
},
Package (0x04)
{
0x0008FFFF,
Zero,
Zero,
0x20
},
Package (0x04)
{
0x0008FFFF,
One,
Zero,
0x21
},
Package (0x04)
{
0x0008FFFF,
One,
Zero,
0x22
},
Package (0x04)
{
0x0014FFFF,
Zero,
Zero,
0x10
},
Package (0x04)
{
0x0014FFFF,
One,
Zero,
0x11
},
Package (0x04)
{
0x0014FFFF,
0x02,
Zero,
0x12
},
Package (0x04)
{
0x0014FFFF,
0x03,
Zero,
0x13
}
})
Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
{
If (PICM)
{
If (NAPC)
{
Return (NR00) /* \_SB_.PCI0.NR00 */
}
Else
{
Return (AR00) /* \_SB_.PCI0.AR00 */
}
}
Else
{
Return (PR00) /* \_SB_.PCI0.PR00 */
}
}
Device (GPP0)
{
Name (_ADR, 0x00010001) // _ADR: Address
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
{
If ((WKPM == One))
{
Return (GPRW (0x08, 0x03))
}
Else
{
Return (GPRW (0x08, Zero))
}
}
Name (PR01, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
LNKA,
Zero
},
Package (0x04)
{
0xFFFF,
One,
LNKB,
Zero
},
Package (0x04)
{
0xFFFF,
0x02,
LNKC,
Zero
},
Package (0x04)
{
0xFFFF,
0x03,
LNKD,
Zero
}
})
Name (AR01, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
Zero,
0x10
},
Package (0x04)
{
0xFFFF,
One,
Zero,
0x11
},
Package (0x04)
{
0xFFFF,
0x02,
Zero,
0x12
},
Package (0x04)
{
0xFFFF,
0x03,
Zero,
0x13
}
})
Name (NR01, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
Zero,
0x18
},
Package (0x04)
{
0xFFFF,
One,
Zero,
0x19
},
Package (0x04)
{
0xFFFF,
0x02,
Zero,
0x1A
},
Package (0x04)
{
0xFFFF,
0x03,
Zero,
0x1B
}
})
Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
{
If (PICM)
{
If (NAPC)
{
Return (NR01) /* \_SB_.PCI0.GPP0.NR01 */
}
Else
{
Return (AR01) /* \_SB_.PCI0.GPP0.AR01 */
}
}
Else
{
Return (PR01) /* \_SB_.PCI0.GPP0.PR01 */
}
}
}
Device (GPP1)
{
Name (_ADR, 0x00010002) // _ADR: Address
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
{
If ((WKPM == One))
{
Return (GPRW (0x08, 0x03))
}
Else
{
Return (GPRW (0x08, Zero))
}
}
Name (PR02, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
LNKE,
Zero
},
Package (0x04)
{
0xFFFF,
One,
LNKF,
Zero
},
Package (0x04)
{
0xFFFF,
0x02,
LNKG,
Zero
},
Package (0x04)
{
0xFFFF,
0x03,
LNKH,
Zero
}
})
Name (AR02, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
Zero,
0x14
},
Package (0x04)
{
0xFFFF,
One,
Zero,
0x15
},
Package (0x04)
{
0xFFFF,
0x02,
Zero,
0x16
},
Package (0x04)
{
0xFFFF,
0x03,
Zero,
0x17
}
})
Name (NR02, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
Zero,
0x1C
},
Package (0x04)
{
0xFFFF,
One,
Zero,
0x1D
},
Package (0x04)
{
0xFFFF,
0x02,
Zero,
0x1E
},
Package (0x04)
{
0xFFFF,
0x03,
Zero,
0x1F
}
})
Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
{
If (PICM)
{
If (NAPC)
{
Return (NR02) /* \_SB_.PCI0.GPP1.NR02 */
}
Else
{
Return (AR02) /* \_SB_.PCI0.GPP1.AR02 */
}
}
Else
{
Return (PR02) /* \_SB_.PCI0.GPP1.PR02 */
}
}
Device (DEV0)
{
Name (_ADR, Zero) // _ADR: Address
Method (_RMV, 0, NotSerialized) // _RMV: Removal Status
{
Return (Zero)
}
}
Device (DEV1)
{
Name (_ADR, One) // _ADR: Address
Method (_RMV, 0, NotSerialized) // _RMV: Removal Status
{
Return (Zero)
}
}
}
Device (GPP2)
{
Name (_ADR, 0x00010003) // _ADR: Address
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
{
If ((WKPM == One))
{
Return (GPRW (0x0D, 0x03))
}
Else
{
Return (GPRW (0x0D, Zero))
}
}
Name (PR03, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
LNKA,
Zero
},
Package (0x04)
{
0xFFFF,
One,
LNKB,
Zero
},
Package (0x04)
{
0xFFFF,
0x02,
LNKC,
Zero
},
Package (0x04)
{
0xFFFF,
0x03,
LNKD,
Zero
}
})
Name (AR03, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
Zero,
0x10
},
Package (0x04)
{
0xFFFF,
One,
Zero,
0x11
},
Package (0x04)
{
0xFFFF,
0x02,
Zero,
0x12
},
Package (0x04)
{
0xFFFF,
0x03,
Zero,
0x13
}
})
Name (NR03, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
Zero,
0x20
},
Package (0x04)
{
0xFFFF,
One,
Zero,
0x21
},
Package (0x04)
{
0xFFFF,
0x02,
Zero,
0x22
},
Package (0x04)
{
0xFFFF,
0x03,
Zero,
0x23
}
})
Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
{
If (PICM)
{
If (NAPC)
{
Return (NR03) /* \_SB_.PCI0.GPP2.NR03 */
}
Else
{
Return (AR03) /* \_SB_.PCI0.GPP2.AR03 */
}
}
Else
{
Return (PR03) /* \_SB_.PCI0.GPP2.PR03 */
}
}
Device (WWAN)
{
Name (_ADR, Zero) // _ADR: Address
}
}
Device (GPP3)
{
Name (_ADR, 0x00020001) // _ADR: Address
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
{
If ((WKPM == One))
{
Return (GPRW (0x0F, 0x03))
}
Else
{
Return (GPRW (0x0F, Zero))
}
}
Name (PR04, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
LNKE,
Zero
},
Package (0x04)
{
0xFFFF,
One,
LNKF,
Zero
},
Package (0x04)
{
0xFFFF,
0x02,
LNKG,
Zero
},
Package (0x04)
{
0xFFFF,
0x03,
LNKH,
Zero
}
})
Name (AR04, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
Zero,
0x14
},
Package (0x04)
{
0xFFFF,
One,
Zero,
0x15
},
Package (0x04)
{
0xFFFF,
0x02,
Zero,
0x16
},
Package (0x04)
{
0xFFFF,
0x03,
Zero,
0x17
}
})
Name (NR04, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
Zero,
0x24
},
Package (0x04)
{
0xFFFF,
One,
Zero,
0x25
},
Package (0x04)
{
0xFFFF,
0x02,
Zero,
0x26
},
Package (0x04)
{
0xFFFF,
0x03,
Zero,
0x27
}
})
Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
{
If (PICM)
{
If (NAPC)
{
Return (NR04) /* \_SB_.PCI0.GPP3.NR04 */
}
Else
{
Return (AR04) /* \_SB_.PCI0.GPP3.AR04 */
}
}
Else
{
Return (PR04) /* \_SB_.PCI0.GPP3.PR04 */
}
}
Device (RTL8)
{
Name (_ADR, Zero) // _ADR: Address
}
}
Device (GPP4)
{
Name (_ADR, 0x00020002) // _ADR: Address
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
{
If ((WKPM == One))
{
Return (GPRW (0x0E, 0x03))
}
Else
{
Return (GPRW (0x0E, Zero))
}
}
Name (PR05, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
LNKA,
Zero
},
Package (0x04)
{
0xFFFF,
One,
LNKB,
Zero
},
Package (0x04)
{
0xFFFF,
0x02,
LNKC,
Zero
},
Package (0x04)
{
0xFFFF,
0x03,
LNKD,
Zero
}
})
Name (AR05, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
Zero,
0x10
},
Package (0x04)
{
0xFFFF,
One,
Zero,
0x11
},
Package (0x04)
{
0xFFFF,
0x02,
Zero,
0x12
},
Package (0x04)
{
0xFFFF,
0x03,
Zero,
0x13
}
})
Name (NR05, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
Zero,
0x28
},
Package (0x04)
{
0xFFFF,
One,
Zero,
0x29
},
Package (0x04)
{
0xFFFF,
0x02,
Zero,
0x2A
},
Package (0x04)
{
0xFFFF,
0x03,
Zero,
0x2B
}
})
Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
{
If (PICM)
{
If (NAPC)
{
Return (NR05) /* \_SB_.PCI0.GPP4.NR05 */
}
Else
{
Return (AR05) /* \_SB_.PCI0.GPP4.AR05 */
}
}
Else
{
Return (PR05) /* \_SB_.PCI0.GPP4.PR05 */
}
}
Device (WL00)
{
Name (_ADR, Zero) // _ADR: Address
Method (MTDS, 0, Serialized)
{
Name (MTDS, Package (0x12)
{
0x4D,
0x54,
0x44,
0x53,
One,
0x02,
One,
0x24,
0x16,
0x16,
0x20,
0x20,
0x02,
0x24,
0x16,
0x16,
0x20,
0x20
})
Return (MTDS) /* \_SB_.PCI0.GPP4.WL00.MTDS.MTDS */
}
Method (MTGS, 0, Serialized)
{
Name (MTGS, Package (0x15)
{
0x4D,
0x54,
0x47,
0x53,
One,
0x03,
One,
0xFF,
Zero,
0xFF,
Zero,
0x02,
0xFF,
Zero,
0xFF,
Zero,
0x03,
0xFF,
Zero,
0xFF,
Zero
})
Return (MTGS) /* \_SB_.PCI0.GPP4.WL00.MTGS.MTGS */
}
Method (MTCC, 0, Serialized)
{
Name (MTCC, Package (0x07)
{
0x4D,
0x54,
0x43,
0x43,
Zero,
0x55,
0x53
})
Return (MTCC) /* \_SB_.PCI0.GPP4.WL00.MTCC.MTCC */
}
OperationRegion (WLPC, PCI_Config, Zero, 0x90)
Field (WLPC, ByteAcc, NoLock, Preserve)
{
WVID, 16,
Offset (0x44),
ICAP, 32,
ICTR, 16,
Offset (0x84),
MCAP, 32,
MCTR, 16
}
PowerResource (WRST, 0x05, 0x0000)
{
Method (_STA, 0, NotSerialized) // _STA: Status
{
Return (One)
}
Method (_ON, 0, NotSerialized) // _ON_: Power On
{
}
Method (_OFF, 0, NotSerialized) // _OFF: Power Off
{
}
Method (_RST, 0, NotSerialized) // _RST: Device Reset
{
If ((WVID == 0x14C3))
{
If ((MCAP & 0x10000000))
{
Local0 = MCTR /* \_SB_.PCI0.GPP4.WL00.MCTR */
Local0 |= 0x8000
MCTR = Local0
}
}
ElseIf ((ICAP & 0x10000000))
{
Local0 = ICTR /* \_SB_.PCI0.GPP4.WL00.ICTR */
Local0 |= 0x8000
ICTR = Local0
}
}
}
Method (_PRR, 0, NotSerialized) // _PRR: Power Resource for Reset
{
Return (Package (0x01)
{
WRST
})
}
}
}
Device (GPP5)
{
Name (_ADR, 0x00020003) // _ADR: Address
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
{
If ((WKPM == One))
{
Return (GPRW (0x08, 0x03))
}
Else
{
Return (GPRW (0x08, Zero))
}
}
Name (PR06, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
LNKE,
Zero
},
Package (0x04)
{
0xFFFF,
One,
LNKF,
Zero
},
Package (0x04)
{
0xFFFF,
0x02,
LNKG,
Zero
},
Package (0x04)
{
0xFFFF,
0x03,
LNKH,
Zero
}
})
Name (AR06, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
Zero,
0x14
},
Package (0x04)
{
0xFFFF,
One,
Zero,
0x15
},
Package (0x04)
{
0xFFFF,
0x02,
Zero,
0x16
},
Package (0x04)
{
0xFFFF,
0x03,
Zero,
0x17
}
})
Name (NR06, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
Zero,
0x2C
},
Package (0x04)
{
0xFFFF,
One,
Zero,
0x2D
},
Package (0x04)
{
0xFFFF,
0x02,
Zero,
0x2E
},
Package (0x04)
{
0xFFFF,
0x03,
Zero,
0x2F
}
})
Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
{
If (PICM)
{
If (NAPC)
{
Return (NR06) /* \_SB_.PCI0.GPP5.NR06 */
}
Else
{
Return (AR06) /* \_SB_.PCI0.GPP5.AR06 */
}
}
Else
{
Return (PR06) /* \_SB_.PCI0.GPP5.PR06 */
}
}
Device (DEV0)
{
Name (_ADR, Zero) // _ADR: Address
}
}
Device (GPP6)
{
Name (_ADR, 0x00020004) // _ADR: Address
Name (PR07, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
LNKA,
Zero
},
Package (0x04)
{
0xFFFF,
One,
LNKB,
Zero
},
Package (0x04)
{
0xFFFF,
0x02,
LNKC,
Zero
},
Package (0x04)
{
0xFFFF,
0x03,
LNKD,
Zero
}
})
Name (AR07, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
Zero,
0x10
},
Package (0x04)
{
0xFFFF,
One,
Zero,
0x11
},
Package (0x04)
{
0xFFFF,
0x02,
Zero,
0x12
},
Package (0x04)
{
0xFFFF,
0x03,
Zero,
0x13
}
})
Name (NR07, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
Zero,
0x30
},
Package (0x04)
{
0xFFFF,
One,
Zero,
0x31
},
Package (0x04)
{
0xFFFF,
0x02,
Zero,
0x32
},
Package (0x04)
{
0xFFFF,
0x03,
Zero,
0x33
}
})
Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
{
If (PICM)
{
If (NAPC)
{
Return (NR07) /* \_SB_.PCI0.GPP6.NR07 */
}
Else
{
Return (AR07) /* \_SB_.PCI0.GPP6.AR07 */
}
}
Else
{
Return (PR07) /* \_SB_.PCI0.GPP6.PR07 */
}
}
}
Device (GP17)
{
Name (_ADR, 0x00080001) // _ADR: Address
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
{
If ((WKPM == One))
{
Return (GPRW (0x19, 0x03))
}
Else
{
Return (GPRW (0x19, Zero))
}
}
Name (PR17, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
LNKG,
Zero
},
Package (0x04)
{
0xFFFF,
One,
LNKH,
Zero
},
Package (0x04)
{
0xFFFF,
0x02,
LNKE,
Zero
},
Package (0x04)
{
0xFFFF,
0x03,
LNKF,
Zero
}
})
Name (AR17, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
Zero,
0x16
},
Package (0x04)
{
0xFFFF,
One,
Zero,
0x17
},
Package (0x04)
{
0xFFFF,
0x02,
Zero,
0x14
},
Package (0x04)
{
0xFFFF,
0x03,
Zero,
0x15
}
})
Name (NR17, Package (0x04)
{
Package (0x04)
{
0xFFFF,
Zero,
Zero,
0x26
},
Package (0x04)
{
0xFFFF,
One,
Zero,
0x27
},
Package (0x04)
{
0xFFFF,
0x02,
Zero,
0x24
},
Package (0x04)
{
0xFFFF,
0x03,
Zero,
0x25
}
})
Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
{
If (PICM)
{
If (NAPC)
{
Return (NR17) /* \_SB_.PCI0.GP17.NR17 */
}
Else
{
Return (AR17) /* \_SB_.PCI0.GP17.AR17 */
}
}
Else
{
Return (PR17) /* \_SB_.PCI0.GP17.PR17 */
}
}
Device (VGA)
{
Name (_ADR, Zero) // _ADR: Address
Method (_STA, 0, NotSerialized) // _STA: Status
{
Return (0x0F)
}
Name (DOSA, Zero)
Method (_DOS, 1, NotSerialized) // _DOS: Disable Output Switching
{
DOSA = Arg0
}
Method (_DOD, 0, NotSerialized) // _DOD: Display Output Devices
{
Return (Package (0x07)
{
0x00010110,
0x00010210,
0x00010220,
0x00010230,
0x00010240,
0x00031000,
0x00032000
})
}
Device (LCD)
{
Name (_ADR, 0x0110) // _ADR: Address
Name (BCLB, Package (0x34)
{
0x5A,
0x3C,
0x02,
0x04,
0x06,
0x08,
0x0A,
0x0C,
0x0E,
0x10,
0x12,
0x14,
0x16,
0x18,
0x1A,
0x1C,
0x1E,
0x20,
0x22,
0x24,
0x26,
0x28,
0x2A,
0x2C,
0x2E,
0x30,
0x32,
0x34,
0x36,
0x38,
0x3A,
0x3C,
0x3E,
0x40,
0x42,
0x44,
0x46,
0x48,
0x4A,
0x4C,
0x4E,
0x50,
0x52,
0x54,
0x56,
0x58,
0x5A,
0x5C,
0x5E,
0x60,
0x62,
0x64
})
Method (_BCL, 0, NotSerialized) // _BCL: Brightness Control Levels
{
Return (BCLB) /* \_SB_.PCI0.GP17.VGA_.LCD_.BCLB */
}
Method (_BCM, 1, NotSerialized) // _BCM: Brightness Control Method
{
Divide ((Arg0 * 0xFF), 0x64, Local1, Local0)
AFN7 (Local0)
BRTL = Arg0
}
}
Method (_DDC, 1, NotSerialized) // _DDC: Display Data Current
{
If (((MCSK == One) || (MCSK == 0x03)))
{
If (((PMID == 0xE509) && (PPID == 0x0A2D)))
{
Return (Zero)
}
ElseIf (((PMID == 0x6F0E) && (PPID == 0x1507)))
{
Return (Zero)
}
ElseIf (((PMID == 0xE430) && (PPID == 0x06DE)))
{
Return (Zero)
}
ElseIf ((Arg0 == One))
{
Return (BDDN) /* \BDDN */
}
ElseIf ((Arg0 == 0x02))
{
Return (BDDN) /* \BDDN */
}
}
Return (Zero)
}
}
Device (PSP)
{
Name (_ADR, 0x02) // _ADR: Address
}
Device (ACP)
{
Name (_ADR, 0x05) // _ADR: Address
Method (_WOV, 0, NotSerialized)
{
Return (WOVS) /* \WOVS */
}
}
Device (AZAL)
{
Name (_ADR, 0x06) // _ADR: Address
}
Device (HDAU)
{
Name (_ADR, One) // _ADR: Address
}
Device (XHC0)
{
Name (_ADR, 0x03) // _ADR: Address
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
{
Return (GPRW (0x19, 0x03))
}
Device (RHUB)
{
Name (_ADR, Zero) // _ADR: Address
Device (HSP1)
{
Name (_ADR, One) // _ADR: Address
Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities
{
0xFF,
0x09,
Zero,
Zero
})
Name (_PLD, Package (0x01) // _PLD: Physical Location of Device
{
ToPLD (
PLD_Revision = 0x2,
PLD_IgnoreColor = 0x1,
PLD_Red = 0x0,
PLD_Green = 0x0,
PLD_Blue = 0x0,
PLD_Width = 0x0,
PLD_Height = 0x0,
PLD_UserVisible = 0x1,
PLD_Dock = 0x0,
PLD_Lid = 0x0,
PLD_Panel = "UNKNOWN",
PLD_VerticalPosition = "UPPER",
PLD_HorizontalPosition = "LEFT",
PLD_Shape = "UNKNOWN",
PLD_GroupOrientation = 0x0,
PLD_GroupToken = 0x0,
PLD_GroupPosition = 0x5,
PLD_Bay = 0x0,
PLD_Ejectable = 0x0,
PLD_EjectRequired = 0x0,
PLD_CabinetNumber = 0x0,
PLD_CardCageNumber = 0x0,
PLD_Reference = 0x0,
PLD_Rotation = 0x0,
PLD_Order = 0x0)
})
}
Device (HSP2)
{
Name (_ADR, 0x02) // _ADR: Address
Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities
{
0xFF,
0xFF,
Zero,
Zero
})
Name (_PLD, Package (0x01) // _PLD: Physical Location of Device
{
ToPLD (
PLD_Revision = 0x2,
PLD_IgnoreColor = 0x1,
PLD_Red = 0x0,
PLD_Green = 0x0,
PLD_Blue = 0x0,
PLD_Width = 0x0,
PLD_Height = 0x0,
PLD_UserVisible = 0x0,
PLD_Dock = 0x0,
PLD_Lid = 0x0,
PLD_Panel = "UNKNOWN",
PLD_VerticalPosition = "UPPER",
PLD_HorizontalPosition = "LEFT",
PLD_Shape = "UNKNOWN",
PLD_GroupOrientation = 0x0,
PLD_GroupToken = 0x0,
PLD_GroupPosition = 0x1,
PLD_Bay = 0x0,
PLD_Ejectable = 0x0,
PLD_EjectRequired = 0x0,
PLD_CabinetNumber = 0x0,
PLD_CardCageNumber = 0x0,
PLD_Reference = 0x0,
PLD_Rotation = 0x0,
PLD_Order = 0x0)
})
Device (HS01)
{
Name (_ADR, One) // _ADR: Address
Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities
{
0xFF,
0x03,
Zero,
Zero
})
Name (_PLD, Package (0x01) // _PLD: Physical Location of Device
{
ToPLD (
PLD_Revision = 0x2,
PLD_IgnoreColor = 0x1,
PLD_Red = 0x0,
PLD_Green = 0x0,
PLD_Blue = 0x0,
PLD_Width = 0x0,
PLD_Height = 0x0,
PLD_UserVisible = 0x1,
PLD_Dock = 0x0,
PLD_Lid = 0x0,
PLD_Panel = "UNKNOWN",
PLD_VerticalPosition = "UPPER",
PLD_HorizontalPosition = "CENTER",
PLD_Shape = "UNKNOWN",
PLD_GroupOrientation = 0x0,
PLD_GroupToken = 0x10,
PLD_GroupPosition = 0x9,
PLD_Bay = 0x0,
PLD_Ejectable = 0x0,
PLD_EjectRequired = 0x0,
PLD_CabinetNumber = 0x0,
PLD_CardCageNumber = 0x0,
PLD_Reference = 0x0,
PLD_Rotation = 0x0,
PLD_Order = 0x0)
})22,020 lines not shown · raw message
Part of this message is not shown here. View the raw message.
Hans de Goede
Reviewed-byRe: [PATCH 11/11] ACPI / scan: Create platform device for CLSA0100 ACPI nodes
Hi,
Quoted 41 lines · Lucas tanure
Quoted 40 lines · Hans de Goede
Hi Lucas,
Quoted 28 lines · Lucas Tanure
The ACPI device with CLSA0100 is a sound card with multiple instances of CS35L41.
We add an ID to the I2C multi instantiate list to enumerate all I2C slaves correctly.
Signed-off-by Lucas Tanure <[email protected]>---
drivers/acpi/scan.c | 1 +drivers/platform/x86/i2c-multi-instantiate.c| 7 +++++++2 files changed, 8 insertions(+)drivers/acpi/scan.c +1
-0@@ -1708,6 +1708,7 @@ static bool acpi_device_enumeration_by_parent(struct acpi_device *device) {"BSG2150", }, {"INT33FE", }, {"INT3515", }, + {"CLSA0100", }, {} };diff --git
a/drivers/platform/x86/i2c-multi-instantiate.cb/drivers/platform/x86/i2c-multi-instantiate.cindex4956a1df5b90..ed25a0adc656100644drivers/platform/x86/i2c-multi-instantiate.c static const struct i2c_inst_data int3515_data[] = { · line 151
Quoted 5 lines
drivers/platform/x86/i2c-multi-instantiate.c +2
-0@@ -147,6 +147,12 @@ static const struct i2c_inst_data int3515_data[] = { {} }; +static const struct i2c_inst_data clsa0100_data[] = { + { "cs35l41-hda", IRQ_RESOURCE_GPIO, 0 }, + { "cs35l41-hda", IRQ_RESOURCE_GPIO, 0 },This suggests that both amplifiers are using the same GPIO pin as shared IRQ, is that correct ? Can you share an acpidump of the laptop's DSDT tables ?
Quoted 7 lines
Quoted 4 lines
Regards,
Hans
DSDT attached.
Yes, both amps share the same IRQ gpio.
Thanks, this patch looks good to me:
Regards,
Hans
Quoted 20 lines
Quoted 20 lines
Quoted 19 lines
drivers/platform/x86/i2c-multi-instantiate.c +4
-0+ {} +}; + /** Note new device-ids must also be added to i2c_multi_instantiate_ids in * drivers/acpi/scan.c: acpi_device_enumeration_by_parent(). @@ -155,6 +161,7 @@ static const struct acpi_device_id i2c_multi_inst_acpi_ids[] = { { "BSG1160", (unsigned long)bsg1160_data }, { "BSG2150", (unsigned long)bsg2150_data }, { "INT3515", (unsigned long)int3515_data }, + { "CLSA0100", (unsigned long)clsa0100_data }, { } }; MODULE_DEVICE_TABLE(acpi, i2c_multi_inst_acpi_ids);
Re: [PATCH 11/11] ACPI / scan: Create platform device for CLSA0100 ACPI nodes
Quoted 8 lines · Hans de Goede
Quoted 7 lines · Lucas tanure
Quoted 6 lines · Hans de Goede
Quoted 5 lines · Lucas Tanure
The ACPI device with CLSA0100 is a sound card with multiple instances of CS35L41.
We add an ID to the I2C multi instantiate list to enumerate all I2C slaves correctly.
...
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
drivers/acpi/scan.c static bool acpi_device_enumeration_by_parent(struct acpi_device *device) · line 1713
Quoted 7 lines
drivers/acpi/scan.c +1
-0@@ -1708,6 +1708,7 @@ static bool acpi_device_enumeration_by_parent(struct acpi_device *device) {"BSG2150", }, {"INT33FE", }, {"INT3515", }, + {"CLSA0100", },
Can we keep it sorted, please?
Ditto for the other driver.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
(quoted diff) +0
-0{}
Signature · 2 lines
With Best Regards, Andy Shevchenko
Mark Brown
maintainerRe: (subset) [PATCH v3 00/11] Add support for Legion 7 16ACHg6 laptop
In reply to Lucas TanureQuoted 10 lines · Lucas Tanure
Add support for laptops that have CS35L41 connected to an HDA codec by I2S and direct I2C/SPI connection to the CPU
Hardware:
- The 16ACHg6 laptop has two CS35L41 amplifiers, connected
to Realtek ALC287 by an I2S bus and by and direct I2C to the CPU.
- The ALC287 codec is connected to the CPU by an HDA bus.
- The CS35L41 has a DSP which will require firmware to be loaded.[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-linus
Thanks!
[01/11] ASoC: cs35l41: Set the max SPI speed for the whole device
commit: 872fc0b6bde8b2dd6891c740cd792d214255dca3
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark