AC97 audio working
authorlekernel <sebastien.bourdeauducq@lekernel.net>
Tue, 22 Jun 2010 12:41:38 +0000 (14:41 +0200)
committerlekernel <sebastien.bourdeauducq@lekernel.net>
Tue, 22 Jun 2010 12:41:38 +0000 (14:41 +0200)
boards/milkymist-one/rtl/setup.v
boards/milkymist-one/rtl/system.v
boards/milkymist-one/synthesis/xst.ucf

index e4f3925..dc9d20c 100644 (file)
@@ -21,7 +21,7 @@
  * but when working on a specific part, it's very useful to be
  * able to cut down synthesis times.
  */
-//`define ENABLE_AC97
+`define ENABLE_AC97
 //`define ENABLE_PFPU
 //`define ENABLE_TMU
 `define ENABLE_ETHERNET
index 7424179..cb22386 100644 (file)
@@ -873,7 +873,7 @@ vga #(
 //---------------------------------------------------------------------------
 `ifdef ENABLE_AC97
 wire ac97_clk_b;
-AUTOBUF b_ac97(
+BUFG b_ac97(
        .I(ac97_clk),
        .O(ac97_clk_b)
 );
index 605c8a4..c09d1fb 100644 (file)
@@ -5,4 +5,11 @@ INST "ddram/clkgen_dqs" LOC = DCM_X0Y6;
 INST "ddram/b1" LOC = BUFGMUX_X2Y4;
 INST "ddram/b2" LOC = BUFGMUX_X2Y2;
 
+INST "b_phy_tx_clk0" LOC = BUFIO2_X3Y10;
+INST "b_phy_tx_clk" LOC = BUFGMUX_X3Y7;
+INST "b_phy_rx_clk0" LOC = BUFIO2_X3Y11;
+INST "b_phy_rx_clk" LOC = BUFGMUX_X3Y8;
+
+NET "ac97_clk" CLOCK_DEDICATED_ROUTE = FALSE;
+
 CONFIG STEPPING = "ES";