Skip to content

Commit 6fa9ba2

Browse files
simontrimmertiwai
authored andcommitted
platform/x86: serial-multi-instantiate: Add support for CS35L54 and CS35L57
Add the ACPI HIDs and smi_node descriptions for the CS35L54 and CS35L57 Boosted Smart Amplifiers. Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com> Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Message-ID: <20240308135900.603192-4-rf@opensource.cirrus.com>
1 parent 769dca2 commit 6fa9ba2

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

drivers/acpi/scan.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,7 +1725,9 @@ static bool acpi_device_enumeration_by_parent(struct acpi_device *device)
17251725
{"BSG1160", },
17261726
{"BSG2150", },
17271727
{"CSC3551", },
1728+
{"CSC3554", },
17281729
{"CSC3556", },
1730+
{"CSC3557", },
17291731
{"INT33FE", },
17301732
{"INT3515", },
17311733
/* Non-conforming _HID for Cirrus Logic already released */

drivers/platform/x86/serial-multi-instantiate.c

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,19 @@ static const struct smi_node cs35l41_hda = {
329329
.bus_type = SMI_AUTO_DETECT,
330330
};
331331

332+
static const struct smi_node cs35l54_hda = {
333+
.instances = {
334+
{ "cs35l54-hda", IRQ_RESOURCE_AUTO, 0 },
335+
{ "cs35l54-hda", IRQ_RESOURCE_AUTO, 0 },
336+
{ "cs35l54-hda", IRQ_RESOURCE_AUTO, 0 },
337+
{ "cs35l54-hda", IRQ_RESOURCE_AUTO, 0 },
338+
/* a 5th entry is an alias address, not a real device */
339+
{ "cs35l54-hda_dummy_dev" },
340+
{}
341+
},
342+
.bus_type = SMI_AUTO_DETECT,
343+
};
344+
332345
static const struct smi_node cs35l56_hda = {
333346
.instances = {
334347
{ "cs35l56-hda", IRQ_RESOURCE_AUTO, 0 },
@@ -342,6 +355,19 @@ static const struct smi_node cs35l56_hda = {
342355
.bus_type = SMI_AUTO_DETECT,
343356
};
344357

358+
static const struct smi_node cs35l57_hda = {
359+
.instances = {
360+
{ "cs35l57-hda", IRQ_RESOURCE_AUTO, 0 },
361+
{ "cs35l57-hda", IRQ_RESOURCE_AUTO, 0 },
362+
{ "cs35l57-hda", IRQ_RESOURCE_AUTO, 0 },
363+
{ "cs35l57-hda", IRQ_RESOURCE_AUTO, 0 },
364+
/* a 5th entry is an alias address, not a real device */
365+
{ "cs35l57-hda_dummy_dev" },
366+
{}
367+
},
368+
.bus_type = SMI_AUTO_DETECT,
369+
};
370+
345371
/*
346372
* Note new device-ids must also be added to ignore_serial_bus_ids in
347373
* drivers/acpi/scan.c: acpi_device_enumeration_by_parent().
@@ -350,7 +376,9 @@ static const struct acpi_device_id smi_acpi_ids[] = {
350376
{ "BSG1160", (unsigned long)&bsg1160_data },
351377
{ "BSG2150", (unsigned long)&bsg2150_data },
352378
{ "CSC3551", (unsigned long)&cs35l41_hda },
379+
{ "CSC3554", (unsigned long)&cs35l54_hda },
353380
{ "CSC3556", (unsigned long)&cs35l56_hda },
381+
{ "CSC3557", (unsigned long)&cs35l57_hda },
354382
{ "INT3515", (unsigned long)&int3515_data },
355383
/* Non-conforming _HID for Cirrus Logic already released */
356384
{ "CLSA0100", (unsigned long)&cs35l41_hda },

0 commit comments

Comments
 (0)