aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/x201/mainboard.c
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2014-01-10 01:01:42 +0100
committerVladimir Serbinenko <phcoder@gmail.com>2014-01-23 19:39:15 +0100
commit517406aac7d9c7efb12f5e419213cd1b2d8f01a5 (patch)
tree628e540d6007e0e224074b7195330ef4f3560815 /src/mainboard/lenovo/x201/mainboard.c
parent0dbea2322a6cd02568d3fbe296183c4a6032a8f2 (diff)
X201: Add azalia verb.
Adds missing sound codec configuration. Change-Id: I3a7097ab0a7c85524f2400471323f5d2d15569ed Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/4641 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/mainboard/lenovo/x201/mainboard.c')
-rw-r--r--src/mainboard/lenovo/x201/mainboard.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mainboard/lenovo/x201/mainboard.c b/src/mainboard/lenovo/x201/mainboard.c
index 6321777774..75e44f4856 100644
--- a/src/mainboard/lenovo/x201/mainboard.c
+++ b/src/mainboard/lenovo/x201/mainboard.c
@@ -37,6 +37,7 @@
#include <pc80/mc146818rtc.h>
#include "dock.h"
+#include "hda_verb.h"
#include <arch/x86/include/arch/acpigen.h>
#if CONFIG_PCI_OPTION_ROM_RUN_YABEL || CONFIG_PCI_OPTION_ROM_RUN_REALMODE
#include <x86emu/regs.h>
@@ -92,6 +93,17 @@ const char *smbios_mainboard_version(void)
return "Lenovo X201";
}
+/* Audio Setup */
+
+extern const u32 *cim_verb_data;
+extern u32 cim_verb_data_size;
+
+static void verb_setup(void)
+{
+ cim_verb_data = mainboard_cim_verb_data;
+ cim_verb_data_size = sizeof(mainboard_cim_verb_data);
+}
+
static void mainboard_enable(device_t dev)
{
device_t dev0;
@@ -150,6 +162,7 @@ static void mainboard_enable(device_t dev)
connected to anything and hence we don't init it.
*/
pc_keyboard_init(0);
+ verb_setup();
}
struct chip_operations mainboard_ops = {