diff options
Diffstat (limited to 'src/mainboard/intel')
-rw-r--r-- | src/mainboard/intel/kunimitsu/acpi/mainboard.asl | 39 | ||||
-rwxr-xr-x | src/mainboard/intel/kunimitsu/gpio.h | 8 |
2 files changed, 47 insertions, 0 deletions
diff --git a/src/mainboard/intel/kunimitsu/acpi/mainboard.asl b/src/mainboard/intel/kunimitsu/acpi/mainboard.asl index 73d43bc276..2eaee84d55 100644 --- a/src/mainboard/intel/kunimitsu/acpi/mainboard.asl +++ b/src/mainboard/intel/kunimitsu/acpi/mainboard.asl @@ -44,6 +44,45 @@ Scope (\_SB) { Name (_HID, EisaId ("PNP0C0C")) } + + Device (MAXM) + { + Name (_HID, "MX98357A") + Name (_DDN, "Maxim Integrated 98357A Amplifier") + Name (_UID, 1) + Name (_CRS, ResourceTemplate() + { + GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, + IoRestrictionOutputOnly, + "\\_SB.PCI0.GPIO", 0x00, ResourceConsumer,,) + { + AUDIO_DB_ID + } + }) + Name (_DSD, Package () + { + ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package () { + /* + * Create a named GPIO + * "sdmode-gpio" for the + * kernel codec driver + * to use. + */ + + "sdmode-gpio", Package () { + ^MAXM, 0, 0, 0 + } + }, + } + }) + + Method (_STA) + { + Return (0xF) + } + } } /* diff --git a/src/mainboard/intel/kunimitsu/gpio.h b/src/mainboard/intel/kunimitsu/gpio.h index a06e42d876..cfec92e75a 100755 --- a/src/mainboard/intel/kunimitsu/gpio.h +++ b/src/mainboard/intel/kunimitsu/gpio.h @@ -50,6 +50,14 @@ #define EC_SCI_GPI GPE0_DW2_16 #define EC_SMI_GPI GPP_E15 +/* + * GPP_E3 is AUDIO_DB_ID. + * It is a dual purpose GPIO, used for Audio Daughter + * Board Identification & to control the shutdown mode pin + * of the Maxim amp. + */ +#define AUDIO_DB_ID GPP_E3 + #ifndef __ACPI__ /* Pad configuration in ramstage. */ static const struct pad_config gpio_table[] = { |