azalia: Move shared variable to separate file

Change-Id: Icf46ad1397c67478887c80a627b8f4eb0a67e542
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/6695
Tested-by: build bot (Jenkins)
Reviewed-by: Idwer Vollering <vidwer@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Vladimir Serbinenko 2014-08-17 23:48:42 +02:00
parent b46f5891d2
commit 6a3a8ce1a8
41 changed files with 39 additions and 121 deletions

View File

@ -25,4 +25,9 @@
void azalia_audio_init(struct device *dev); void azalia_audio_init(struct device *dev);
extern struct device_operations default_azalia_audio_ops; extern struct device_operations default_azalia_audio_ops;
extern const u32 *cim_verb_data;
extern u32 cim_verb_data_size;
extern const u32 *pc_beep_verbs;
extern u32 pc_beep_verbs_size;
#endif /* DEVICE_AZALIA_H */ #endif /* DEVICE_AZALIA_H */

View File

@ -34,12 +34,10 @@
#include <arch/x86/include/arch/acpigen.h> #include <arch/x86/include/arch/acpigen.h>
#include <smbios.h> #include <smbios.h>
#include <x86emu/x86emu.h> #include <x86emu/x86emu.h>
#include <device/azalia_device.h>
#include "hda_verb.h" #include "hda_verb.h"
#define PANEL INT15_5F35_CL_DISPLAY_DEFAULT #define PANEL INT15_5F35_CL_DISPLAY_DEFAULT
extern const u32 *cim_verb_data;
extern u32 cim_verb_data_size;
#if CONFIG_PCI_OPTION_ROM_RUN_YABEL || CONFIG_PCI_OPTION_ROM_RUN_REALMODE #if CONFIG_PCI_OPTION_ROM_RUN_YABEL || CONFIG_PCI_OPTION_ROM_RUN_REALMODE
static int int15_handler(void) static int int15_handler(void)
{ {

View File

@ -118,5 +118,3 @@ static const u32 mainboard_cim_verb_data[] = {
0x02571f01, 0x02571f01,
}; };
extern const u32 *cim_verb_data;
extern u32 cim_verb_data_size;

View File

@ -19,6 +19,7 @@
*/ */
#include <device/device.h> #include <device/device.h>
#include <device/azalia_device.h>
#include "hda_verb.h" #include "hda_verb.h"
static void verb_setup(void) static void verb_setup(void)

View File

@ -102,6 +102,3 @@ static const u32 mainboard_cim_verb_data[] = {
0x01f71e11, 0x01f71e11,
0x01f71f41, 0x01f71f41,
}; };
extern const u32 *cim_verb_data;
extern u32 cim_verb_data_size;

View File

@ -23,6 +23,7 @@
#include <arch/io.h> #include <arch/io.h>
#include <boot/tables.h> #include <boot/tables.h>
#include <device/pci_def.h> #include <device/pci_def.h>
#include <device/azalia_device.h>
#include "hda_verb.h" #include "hda_verb.h"
static void verb_setup(void) static void verb_setup(void)

View File

@ -103,6 +103,3 @@ static const u32 mainboard_cim_verb_data[] = {
0x01F71E11, 0x01F71E11,
0x01F71F41, 0x01F71F41,
}; };
extern const u32 *cim_verb_data;
extern u32 cim_verb_data_size;

View File

@ -24,6 +24,8 @@
#include <device/pci_def.h> #include <device/pci_def.h>
#include <arch/io.h> #include <arch/io.h>
#include <delay.h> #include <delay.h>
#include <device/azalia_device.h>
#include "hda_verb.h" #include "hda_verb.h"
#include "ec_oem.c" #include "ec_oem.c"

View File

@ -34,6 +34,7 @@
#include <arch/io.h> #include <arch/io.h>
#include <arch/interrupt.h> #include <arch/interrupt.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include <device/azalia_device.h>
#include "hda_verb.h" #include "hda_verb.h"
#include <southbridge/intel/lynxpoint/pch.h> #include <southbridge/intel/lynxpoint/pch.h>
#include "ec.h" #include "ec.h"
@ -133,9 +134,6 @@ static int int15_handler(void)
/* Audio Setup */ /* Audio Setup */
extern const u32 * cim_verb_data;
extern u32 cim_verb_data_size;
static void verb_setup(void) static void verb_setup(void)
{ {
cim_verb_data = mainboard_cim_verb_data; cim_verb_data = mainboard_cim_verb_data;

View File

@ -39,6 +39,7 @@
#include <smbios.h> #include <smbios.h>
#include <device/pci.h> #include <device/pci.h>
#include <ec/quanta/ene_kb3940q/ec.h> #include <ec/quanta/ene_kb3940q/ec.h>
#include <device/azalia_device.h>
#if CONFIG_CHROMEOS #if CONFIG_CHROMEOS
#include <vendorcode/google/chromeos/fmap.h> #include <vendorcode/google/chromeos/fmap.h>
#else #else
@ -282,11 +283,6 @@ static int int15_handler(void)
/* Audio Setup */ /* Audio Setup */
extern const u32 *cim_verb_data;
extern u32 cim_verb_data_size;
extern const u32 *pc_beep_verbs;
extern u32 pc_beep_verbs_size;
static void verb_setup(void) static void verb_setup(void)
{ {
cim_verb_data = mainboard_cim_verb_data; cim_verb_data = mainboard_cim_verb_data;

View File

@ -36,6 +36,7 @@
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h" #include "hda_verb.h"
#include <southbridge/intel/lynxpoint/pch.h> #include <southbridge/intel/lynxpoint/pch.h>
#include <device/azalia_device.h>
#include "ec.h" #include "ec.h"
#include "onboard.h" #include "onboard.h"
@ -133,11 +134,6 @@ static int int15_handler(void)
/* Audio Setup */ /* Audio Setup */
extern const u32 * cim_verb_data;
extern u32 cim_verb_data_size;
extern const u32 * pc_beep_verbs;
extern u32 pc_beep_verbs_size;
static void verb_setup(void) static void verb_setup(void)
{ {
cim_verb_data = mainboard_cim_verb_data; cim_verb_data = mainboard_cim_verb_data;

View File

@ -40,6 +40,7 @@
#include <smbios.h> #include <smbios.h>
#include <device/pci.h> #include <device/pci.h>
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
#include <device/azalia_device.h>
/* placeholder for evenual link post. Not sure what we'll /* placeholder for evenual link post. Not sure what we'll
* do but it will look nice * do but it will look nice
@ -150,11 +151,6 @@ static int int15_handler(void)
/* Audio Setup */ /* Audio Setup */
extern const u32 * cim_verb_data;
extern u32 cim_verb_data_size;
extern const u32 * pc_beep_verbs;
extern u32 pc_beep_verbs_size;
static void verb_setup(void) static void verb_setup(void)
{ {
cim_verb_data = mainboard_cim_verb_data; cim_verb_data = mainboard_cim_verb_data;

View File

@ -33,6 +33,7 @@
#include <pc80/mc146818rtc.h> #include <pc80/mc146818rtc.h>
#include <southbridge/intel/lynxpoint/pch.h> #include <southbridge/intel/lynxpoint/pch.h>
#include <x86emu/x86emu.h> #include <x86emu/x86emu.h>
#include <device/azalia_device.h>
#include "hda_verb.h" #include "hda_verb.h"
#include "onboard.h" #include "onboard.h"
@ -131,11 +132,6 @@ static int int15_handler(void)
/* Audio Setup */ /* Audio Setup */
extern const u32 * cim_verb_data;
extern u32 cim_verb_data_size;
extern const u32 * pc_beep_verbs;
extern u32 pc_beep_verbs_size;
static void verb_setup(void) static void verb_setup(void)
{ {
cim_verb_data = mainboard_cim_verb_data; cim_verb_data = mainboard_cim_verb_data;

View File

@ -39,6 +39,7 @@
#include <smbios.h> #include <smbios.h>
#include <device/pci.h> #include <device/pci.h>
#include <ec/compal/ene932/ec.h> #include <ec/compal/ene932/ec.h>
#include <device/azalia_device.h>
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {
@ -136,11 +137,6 @@ static int int15_handler(void)
/* Audio Setup */ /* Audio Setup */
extern const u32 * cim_verb_data;
extern u32 cim_verb_data_size;
extern const u32 * pc_beep_verbs;
extern u32 pc_beep_verbs_size;
static void verb_setup(void) static void verb_setup(void)
{ {
cim_verb_data = mainboard_cim_verb_data; cim_verb_data = mainboard_cim_verb_data;

View File

@ -36,6 +36,7 @@
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h" #include "hda_verb.h"
#include <southbridge/intel/lynxpoint/pch.h> #include <southbridge/intel/lynxpoint/pch.h>
#include <device/azalia_device.h>
#include "ec.h" #include "ec.h"
#include "onboard.h" #include "onboard.h"
@ -133,11 +134,6 @@ static int int15_handler(void)
/* Audio Setup */ /* Audio Setup */
extern const u32 * cim_verb_data;
extern u32 cim_verb_data_size;
extern const u32 * pc_beep_verbs;
extern u32 pc_beep_verbs_size;
static void verb_setup(void) static void verb_setup(void)
{ {
cim_verb_data = mainboard_cim_verb_data; cim_verb_data = mainboard_cim_verb_data;

View File

@ -38,6 +38,7 @@
#include <southbridge/intel/lynxpoint/pch.h> #include <southbridge/intel/lynxpoint/pch.h>
#include "ec.h" #include "ec.h"
#include "onboard.h" #include "onboard.h"
#include <device/azalia_device.h>
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {
@ -133,11 +134,6 @@ static int int15_handler(void)
/* Audio Setup */ /* Audio Setup */
extern const u32 * cim_verb_data;
extern u32 cim_verb_data_size;
extern const u32 * pc_beep_verbs;
extern u32 pc_beep_verbs_size;
static void verb_setup(void) static void verb_setup(void)
{ {
cim_verb_data = mainboard_cim_verb_data; cim_verb_data = mainboard_cim_verb_data;

View File

@ -39,6 +39,7 @@
#include <smbios.h> #include <smbios.h>
#include <device/pci.h> #include <device/pci.h>
#include <ec/quanta/it8518/ec.h> #include <ec/quanta/it8518/ec.h>
#include <device/azalia_device.h>
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {
@ -136,11 +137,6 @@ static int int15_handler(void)
/* Audio Setup */ /* Audio Setup */
extern const u32 * cim_verb_data;
extern u32 cim_verb_data_size;
extern const u32 * pc_beep_verbs;
extern u32 pc_beep_verbs_size;
static void verb_setup(void) static void verb_setup(void)
{ {
cim_verb_data = mainboard_cim_verb_data; cim_verb_data = mainboard_cim_verb_data;

View File

@ -26,7 +26,7 @@
#include <pc80/mc146818rtc.h> #include <pc80/mc146818rtc.h>
#include <arch/io.h> #include <arch/io.h>
#include <arch/interrupt.h> #include <arch/interrupt.h>
#include <device/azalia_device.h>
#include "superio_hwm.h" #include "superio_hwm.h"
#if CONFIG_VGA_ROM_RUN #if CONFIG_VGA_ROM_RUN
@ -67,9 +67,6 @@ static int int15_handler(void)
/* Audio Setup */ /* Audio Setup */
extern u32 * cim_verb_data;
extern u32 cim_verb_data_size;
static void verb_setup(void) static void verb_setup(void)
{ {
// Default VERB is fine on this mainboard. // Default VERB is fine on this mainboard.

View File

@ -35,6 +35,7 @@
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h" #include "hda_verb.h"
#include <southbridge/intel/lynxpoint/pch.h> #include <southbridge/intel/lynxpoint/pch.h>
#include <device/azalia_device.h>
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {
@ -130,9 +131,6 @@ static int int15_handler(void)
/* Audio Setup */ /* Audio Setup */
extern const u32 * cim_verb_data;
extern u32 cim_verb_data_size;
static void verb_setup(void) static void verb_setup(void)
{ {
cim_verb_data = mainboard_cim_verb_data; cim_verb_data = mainboard_cim_verb_data;

View File

@ -33,6 +33,7 @@
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h" #include "hda_verb.h"
#include <southbridge/intel/fsp_bd82x6x/pch.h> #include <southbridge/intel/fsp_bd82x6x/pch.h>
#include <device/azalia_device.h>
#if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME) #if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME)
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
@ -142,9 +143,6 @@ static int int15_handler(void)
/* Audio Setup */ /* Audio Setup */
extern const u32 * cim_verb_data;
extern u32 cim_verb_data_size;
static void verb_setup(void) static void verb_setup(void)
{ {
cim_verb_data = mainboard_cim_verb_data; cim_verb_data = mainboard_cim_verb_data;

View File

@ -35,6 +35,7 @@
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h" #include "hda_verb.h"
#include <southbridge/intel/bd82x6x/pch.h> #include <southbridge/intel/bd82x6x/pch.h>
#include <device/azalia_device.h>
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {
@ -142,9 +143,6 @@ static int int15_handler(void)
/* Audio Setup */ /* Audio Setup */
extern const u32 * cim_verb_data;
extern u32 cim_verb_data_size;
static void verb_setup(void) static void verb_setup(void)
{ {
cim_verb_data = mainboard_cim_verb_data; cim_verb_data = mainboard_cim_verb_data;

View File

@ -35,6 +35,7 @@
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h" #include "hda_verb.h"
#include <southbridge/intel/lynxpoint/pch.h> #include <southbridge/intel/lynxpoint/pch.h>
#include <device/azalia_device.h>
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {
@ -130,9 +131,6 @@ static int int15_handler(void)
/* Audio Setup */ /* Audio Setup */
extern const u32 * cim_verb_data;
extern u32 cim_verb_data_size;
static void verb_setup(void) static void verb_setup(void)
{ {
cim_verb_data = mainboard_cim_verb_data; cim_verb_data = mainboard_cim_verb_data;

View File

@ -89,6 +89,3 @@ static u32 mainboard_cim_verb_data[] = {
/* BTL Gain */ /* BTL Gain */
0x017F417, /* Gain = 16.79dB */ 0x017F417, /* Gain = 16.79dB */
}; };
extern const u32 *cim_verb_data;
extern u32 cim_verb_data_size;

View File

@ -20,6 +20,7 @@
#include <device/device.h> #include <device/device.h>
#include <console/console.h> #include <console/console.h>
#include <device/azalia_device.h>
#include "hda_verb.h" #include "hda_verb.h"
static void verb_setup(void) static void verb_setup(void)

View File

@ -26,6 +26,7 @@
#include <pc80/mc146818rtc.h> #include <pc80/mc146818rtc.h>
#include <arch/io.h> #include <arch/io.h>
#include <arch/interrupt.h> #include <arch/interrupt.h>
#include <device/azalia_device.h>
#define BOOT_DISPLAY_DEFAULT 0 #define BOOT_DISPLAY_DEFAULT 0
#define BOOT_DISPLAY_CRT (1 << 0) #define BOOT_DISPLAY_CRT (1 << 0)
@ -206,9 +207,6 @@ static void hwm_setup(void)
/* Audio Setup */ /* Audio Setup */
extern u32 * cim_verb_data;
extern u32 cim_verb_data_size;
static void verb_setup(void) static void verb_setup(void)
{ {
// Default VERB is fine on this mainboard. // Default VERB is fine on this mainboard.

View File

@ -35,6 +35,7 @@
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h" #include "hda_verb.h"
#include <southbridge/intel/bd82x6x/pch.h> #include <southbridge/intel/bd82x6x/pch.h>
#include <device/azalia_device.h>
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {
@ -170,9 +171,6 @@ static int int15_handler(void)
/* Audio Setup */ /* Audio Setup */
extern const u32 *cim_verb_data;
extern u32 cim_verb_data_size;
static void verb_setup(void) static void verb_setup(void)
{ {
cim_verb_data = mainboard_cim_verb_data; cim_verb_data = mainboard_cim_verb_data;

View File

@ -40,6 +40,7 @@
#include <cbfs.h> #include <cbfs.h>
#include <pc80/keyboard.h> #include <pc80/keyboard.h>
#include <ec/lenovo/h8/h8.h> #include <ec/lenovo/h8/h8.h>
#include <device/azalia_device.h>
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {
@ -139,11 +140,6 @@ const char *smbios_mainboard_version(void)
/* Audio Setup */ /* Audio Setup */
extern const u32 *cim_verb_data;
extern u32 cim_verb_data_size;
extern const u32 *pc_beep_verbs;
extern u32 pc_beep_verbs_size;
static void verb_setup(void) static void verb_setup(void)
{ {
cim_verb_data = mainboard_cim_verb_data; cim_verb_data = mainboard_cim_verb_data;

View File

@ -40,6 +40,7 @@
#include <cbfs.h> #include <cbfs.h>
#include <pc80/keyboard.h> #include <pc80/keyboard.h>
#include <ec/lenovo/h8/h8.h> #include <ec/lenovo/h8/h8.h>
#include <device/azalia_device.h>
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {
@ -139,11 +140,6 @@ const char *smbios_mainboard_version(void)
/* Audio Setup */ /* Audio Setup */
extern const u32 *cim_verb_data;
extern u32 cim_verb_data_size;
extern const u32 *pc_beep_verbs;
extern u32 pc_beep_verbs_size;
static void verb_setup(void) static void verb_setup(void)
{ {
cim_verb_data = mainboard_cim_verb_data; cim_verb_data = mainboard_cim_verb_data;

View File

@ -41,8 +41,6 @@ static const u32 mainboard_cim_verb_data[] = {
PIN_CFG(0x1c, 0x40f001f0), PIN_CFG(0x1c, 0x40f001f0),
PIN_CFG(0x1d, 0x90a601f0) PIN_CFG(0x1d, 0x90a601f0)
}; };
extern const u32 *cim_verb_data;
extern u32 cim_verb_data_size;
static const u32 mainboard_pc_beep_verbs[] = { static const u32 mainboard_pc_beep_verbs[] = {
0x00170500, /* power up codec */ 0x00170500, /* power up codec */
@ -54,5 +52,3 @@ static const u32 mainboard_pc_beep_verbs[] = {
0x00c3b015, /* set lout1 output volume -15dB */ 0x00c3b015, /* set lout1 output volume -15dB */
0x0143b000, /* unmute speakers */ 0x0143b000, /* unmute speakers */
}; };
extern const u32 * pc_beep_verbs;
extern u32 pc_beep_verbs_size;

View File

@ -35,6 +35,7 @@
#include <ec/lenovo/pmh7/pmh7.h> #include <ec/lenovo/pmh7/pmh7.h>
#include <ec/acpi/ec.h> #include <ec/acpi/ec.h>
#include <ec/lenovo/h8/h8.h> #include <ec/lenovo/h8/h8.h>
#include <device/azalia_device.h>
#include "hda_verb.h" #include "hda_verb.h"

View File

@ -35,6 +35,7 @@
#include <ec/lenovo/h8/h8.h> #include <ec/lenovo/h8/h8.h>
#include <northbridge/intel/nehalem/nehalem.h> #include <northbridge/intel/nehalem/nehalem.h>
#include <southbridge/intel/bd82x6x/pch.h> #include <southbridge/intel/bd82x6x/pch.h>
#include <device/azalia_device.h>
#include <pc80/mc146818rtc.h> #include <pc80/mc146818rtc.h>
#include "dock.h" #include "dock.h"
@ -104,9 +105,6 @@ const char *smbios_mainboard_version(void)
/* Audio Setup */ /* Audio Setup */
extern const u32 *cim_verb_data;
extern u32 cim_verb_data_size;
static void verb_setup(void) static void verb_setup(void)
{ {
cim_verb_data = mainboard_cim_verb_data; cim_verb_data = mainboard_cim_verb_data;

View File

@ -41,6 +41,7 @@
#include <pc80/keyboard.h> #include <pc80/keyboard.h>
#include <ec/lenovo/h8/h8.h> #include <ec/lenovo/h8/h8.h>
#include <build.h> #include <build.h>
#include <device/azalia_device.h>
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {
@ -149,11 +150,6 @@ const char *smbios_mainboard_version(void)
/* Audio Setup */ /* Audio Setup */
extern const u32 *cim_verb_data;
extern u32 cim_verb_data_size;
extern const u32 *pc_beep_verbs;
extern u32 pc_beep_verbs_size;
static void verb_setup(void) static void verb_setup(void)
{ {
cim_verb_data = mainboard_cim_verb_data; cim_verb_data = mainboard_cim_verb_data;

View File

@ -19,6 +19,7 @@
*/ */
#include <device/device.h> #include <device/device.h>
#include <device/azalia_device.h>
#if 0 #if 0
#include "hda_verb.h" #include "hda_verb.h"

View File

@ -24,6 +24,7 @@
#include <device/pci.h> #include <device/pci.h>
#include <device/pci_ids.h> #include <device/pci_ids.h>
#include <device/pci_ops.h> #include <device/pci_ops.h>
#include <device/azalia_device.h>
// #include "hda_verb.h" // #include "hda_verb.h"
static void verb_setup(void) static void verb_setup(void)

View File

@ -103,6 +103,3 @@ static u32 mainboard_cim_verb_data[] = {
0x01f71ec5, 0x01f71ec5,
0x01f71f01, 0x01f71f01,
}; };
extern u32 *cim_verb_data;
extern u32 cim_verb_data_size;

View File

@ -24,6 +24,7 @@
#include <device/pci.h> #include <device/pci.h>
#include <device/pci_ids.h> #include <device/pci_ids.h>
#include <device/pci_ops.h> #include <device/pci_ops.h>
#include <device/azalia_device.h>
#include "hda_verb.h" #include "hda_verb.h"
static void verb_setup(void) static void verb_setup(void)

View File

@ -44,6 +44,7 @@
#include <cpu/x86/lapic.h> #include <cpu/x86/lapic.h>
#include <device/pci.h> #include <device/pci.h>
#include <smbios.h> #include <smbios.h>
#include <device/azalia_device.h>
static acpi_cstate_t cst_entries[] = { static acpi_cstate_t cst_entries[] = {
{1, 1, 1000, {0x7f, 1, 2, {0}, 1, 0}}, {1, 1, 1000, {0x7f, 1, 2, {0}, 1, 0}},
@ -87,9 +88,6 @@ static int int15_handler(void)
/* Audio Setup */ /* Audio Setup */
extern const u32 *cim_verb_data;
extern u32 cim_verb_data_size;
static void verb_setup(void) static void verb_setup(void)
{ {
cim_verb_data = mainboard_cim_verb_data; cim_verb_data = mainboard_cim_verb_data;

View File

@ -57,8 +57,6 @@ static const u32 mainboard_cim_verb_data[] = {
/* Pin Complex (NID 0x1f), S/PDIF-IN: not connected */ /* Pin Complex (NID 0x1f), S/PDIF-IN: not connected */
PIN_CFG(0x1f, 0x411111f0) PIN_CFG(0x1f, 0x411111f0)
}; };
extern const u32 *cim_verb_data;
extern u32 cim_verb_data_size;
static const u32 mainboard_pc_beep_verbs[] = { static const u32 mainboard_pc_beep_verbs[] = {
0x00170500, /* power up codec */ 0x00170500, /* power up codec */
@ -70,5 +68,3 @@ static const u32 mainboard_pc_beep_verbs[] = {
0x00c3b015, /* set lout1 output volume -15dB */ 0x00c3b015, /* set lout1 output volume -15dB */
0x0143b000, /* unmute speakers */ 0x0143b000, /* unmute speakers */
}; };
extern const u32 * pc_beep_verbs;
extern u32 pc_beep_verbs_size;

View File

@ -29,6 +29,7 @@
#endif #endif
#include <pc80/keyboard.h> #include <pc80/keyboard.h>
#include <ec/acpi/ec.h> #include <ec/acpi/ec.h>
#include <device/azalia_device.h>
#include "hda_verb.h" #include "hda_verb.h"
#if CONFIG_GENERATE_ACPI_TABLES #if CONFIG_GENERATE_ACPI_TABLES

View File

@ -38,6 +38,7 @@
#include "onboard.h" #include "onboard.h"
#include <southbridge/intel/bd82x6x/pch.h> #include <southbridge/intel/bd82x6x/pch.h>
#include <smbios.h> #include <smbios.h>
#include <device/azalia_device.h>
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {
@ -136,11 +137,6 @@ static int int15_handler(void)
/* Audio Setup */ /* Audio Setup */
extern const u32 * cim_verb_data;
extern u32 cim_verb_data_size;
extern const u32 * pc_beep_verbs;
extern u32 pc_beep_verbs_size;
static void verb_setup(void) static void verb_setup(void)
{ {
cim_verb_data = mainboard_cim_verb_data; cim_verb_data = mainboard_cim_verb_data;

View File

@ -35,6 +35,7 @@
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include "hda_verb.h" #include "hda_verb.h"
#include <southbridge/intel/bd82x6x/pch.h> #include <southbridge/intel/bd82x6x/pch.h>
#include <device/azalia_device.h>
void mainboard_suspend_resume(void) void mainboard_suspend_resume(void)
{ {
@ -129,11 +130,6 @@ static int int15_handler(void)
/* Audio Setup */ /* Audio Setup */
extern const u32 * cim_verb_data;
extern u32 cim_verb_data_size;
extern const u32 * pc_beep_verbs;
extern u32 pc_beep_verbs_size;
static void verb_setup(void) static void verb_setup(void)
{ {
cim_verb_data = mainboard_cim_verb_data; cim_verb_data = mainboard_cim_verb_data;