Persimmon audio codec verb patch.
[coreboot.git] / src / mainboard / amd / persimmon / platform_cfg.h
index c6d2bd5175eb3503ec6520b62e6d14235b487391..97aa47e2e206ed0ab1347980a344f85fd22c7ddd 100644 (file)
@@ -36,6 +36,7 @@
  * bigger than 1M you have to set the ROM size outside CIMx module and
  * before AGESA module get call.
  */
+#ifndef BIOS_SIZE
 #if CONFIG_COREBOOT_ROMSIZE_KB_1024 == 1
   #define BIOS_SIZE BIOS_SIZE_1M
 #elif CONFIG_COREBOOT_ROMSIZE_KB_2048 == 1
@@ -45,6 +46,7 @@
 #elif CONFIG_COREBOOT_ROMSIZE_KB_8192 == 1
   #define BIOS_SIZE BIOS_SIZE_8M
 #endif
+#endif
 
 /**
  * @def SPREAD_SPECTRUM
  * @breif INCHIP Sata Controller Mode
  *   NOTE: DO NOT ALLOW SATA & IDE use same mode
  */
-#define SATA_MODE                      NATIVE_IDE_MODE
+#define SATA_MODE                      CONFIG_SB800_SATA_MODE
 
 /**
  * @breif INCHIP Sata IDE Controller Mode
  */
 #define SB_GPP_GEN2                    TRUE
 
+/**
+ * @def SB_GPP_UNHIDE_PORTS
+ *    TRUE   - ports visable always, even port empty
+ *    FALSE  - ports invisable if port empty
+ */
+#define SB_GPP_UNHIDE_PORTS            FALSE
 
 /**
  * @def   GEC_CONFIG
  */
 #define GEC_CONFIG                     0
 
+const static CODECENTRY persimmon_codec_alc269[] =
+{
+       /* NID, PinConfig */
+       {0x12, 0x411111F0},
+       {0x14, 0x99130110},
+       {0x21, 0x0121401F},
+       {0x17, 0x411111F0},
+       {0x18, 0x01A19820},
+       {0x19, 0x411111F0},
+       {0x1A, 0x0181302F},
+       {0x1B, 0x411111F0},
+       {0x1D, 0x40069E05},
+       {0x1E, 0x411111F0},
+       {0x20, 0x0001FFFF},
+       {0xff, 0xffffffff} /* end of table */
+};
+
+const static CODECTBLLIST persimmon_codec_tablelist[] =
+{
+       {0x010ec0269, (CODECENTRY*)&persimmon_codec_alc269[0]},
+       {0x0FFFFFFFFUL, (CODECENTRY*)0x0FFFFFFFFUL}
+};
+
+/**
+ * @def AZALIA_OEM_VERB_TABLE
+ *  Mainboard specific cocec verb table list
+ */
+#define AZALIA_OEM_VERB_TABLE          (&persimmon_codec_tablelist[0])
+
 #endif