@@ -2070,13 +2070,13 @@ static void scic_sds_controller_afe_initialization(struct scic_sds_controller *s
20702070 writel (0x00005500 , & scic -> scu_registers -> afe .afe_bias_control );
20712071 else if (is_a2 ())
20722072 writel (0x00005A00 , & scic -> scu_registers -> afe .afe_bias_control );
2073- else if (is_b0 ())
2073+ else if (is_b0 () || is_c0 () )
20742074 writel (0x00005F00 , & scic -> scu_registers -> afe .afe_bias_control );
20752075
20762076 udelay (AFE_REGISTER_WRITE_DELAY );
20772077
20782078 /* Enable PLL */
2079- if (is_b0 ())
2079+ if (is_b0 () || is_c0 () )
20802080 writel (0x80040A08 , & scic -> scu_registers -> afe .afe_pll_control0 );
20812081 else
20822082 writel (0x80040908 , & scic -> scu_registers -> afe .afe_pll_control0 );
@@ -2102,6 +2102,16 @@ static void scic_sds_controller_afe_initialization(struct scic_sds_controller *s
21022102 /* Configure transmitter SSC parameters */
21032103 writel (0x00030000 , & scic -> scu_registers -> afe .scu_afe_xcvr [phy_id ].afe_tx_ssc_control );
21042104 udelay (AFE_REGISTER_WRITE_DELAY );
2105+ } else if (is_c0 ()) {
2106+ /* Configure transmitter SSC parameters */
2107+ writel (0x0003000 , & scic -> scu_registers -> afe .scu_afe_xcvr [phy_id ].afe_tx_ssc_control );
2108+ udelay (AFE_REGISTER_WRITE_DELAY );
2109+
2110+ /*
2111+ * All defaults, except the Receive Word Alignament/Comma Detect
2112+ * Enable....(0xe800) */
2113+ writel (0x00004500 , & scic -> scu_registers -> afe .scu_afe_xcvr [phy_id ].afe_xcvr_control0 );
2114+ udelay (AFE_REGISTER_WRITE_DELAY );
21052115 } else {
21062116 /*
21072117 * All defaults, except the Receive Word Alignament/Comma Detect
@@ -2120,15 +2130,23 @@ static void scic_sds_controller_afe_initialization(struct scic_sds_controller *s
21202130 writel (0x000003D4 , & scic -> scu_registers -> afe .scu_afe_xcvr [phy_id ].afe_channel_control );
21212131 else if (is_a2 ())
21222132 writel (0x000003F0 , & scic -> scu_registers -> afe .scu_afe_xcvr [phy_id ].afe_channel_control );
2123- else {
2133+ else if ( is_b0 ()) {
21242134 /* Power down TX and RX (PWRDNTX and PWRDNRX) */
2125- writel (0x000003d7 , & scic -> scu_registers -> afe .scu_afe_xcvr [phy_id ].afe_channel_control );
2135+ writel (0x000003D7 , & scic -> scu_registers -> afe .scu_afe_xcvr [phy_id ].afe_channel_control );
2136+ udelay (AFE_REGISTER_WRITE_DELAY );
2137+
2138+ /*
2139+ * Power up TX and RX out from power down (PWRDNTX and PWRDNRX)
2140+ * & increase TX int & ext bias 20%....(0xe85c) */
2141+ writel (0x000003D4 , & scic -> scu_registers -> afe .scu_afe_xcvr [phy_id ].afe_channel_control );
2142+ } else {
2143+ writel (0x000001E7 , & scic -> scu_registers -> afe .scu_afe_xcvr [phy_id ].afe_channel_control );
21262144 udelay (AFE_REGISTER_WRITE_DELAY );
21272145
21282146 /*
21292147 * Power up TX and RX out from power down (PWRDNTX and PWRDNRX)
21302148 * & increase TX int & ext bias 20%....(0xe85c) */
2131- writel (0x000003d4 , & scic -> scu_registers -> afe .scu_afe_xcvr [phy_id ].afe_channel_control );
2149+ writel (0x000001E4 , & scic -> scu_registers -> afe .scu_afe_xcvr [phy_id ].afe_channel_control );
21322150 }
21332151 udelay (AFE_REGISTER_WRITE_DELAY );
21342152
@@ -2149,12 +2167,22 @@ static void scic_sds_controller_afe_initialization(struct scic_sds_controller *s
21492167 writel (0x3F09983F , & scic -> scu_registers -> afe .scu_afe_xcvr [phy_id ].afe_rx_ssc_control0 );
21502168 else if (is_a2 ())
21512169 writel (0x3F11103F , & scic -> scu_registers -> afe .scu_afe_xcvr [phy_id ].afe_rx_ssc_control0 );
2152- else {
2170+ else if ( is_b0 ()) {
21532171 writel (0x3F11103F , & scic -> scu_registers -> afe .scu_afe_xcvr [phy_id ].afe_rx_ssc_control0 );
21542172 udelay (AFE_REGISTER_WRITE_DELAY );
2173+ /* Enable TX equalization (0xe824) */
2174+ writel (0x00040000 , & scic -> scu_registers -> afe .scu_afe_xcvr [phy_id ].afe_tx_control );
2175+ } else {
2176+ writel (0x0140DF0F , & scic -> scu_registers -> afe .scu_afe_xcvr [phy_id ].afe_rx_ssc_control1 );
2177+ udelay (AFE_REGISTER_WRITE_DELAY );
2178+
2179+ writel (0x3F6F103F , & scic -> scu_registers -> afe .scu_afe_xcvr [phy_id ].afe_rx_ssc_control0 );
2180+ udelay (AFE_REGISTER_WRITE_DELAY );
2181+
21552182 /* Enable TX equalization (0xe824) */
21562183 writel (0x00040000 , & scic -> scu_registers -> afe .scu_afe_xcvr [phy_id ].afe_tx_control );
21572184 }
2185+
21582186 udelay (AFE_REGISTER_WRITE_DELAY );
21592187
21602188 writel (oem_phy -> afe_tx_amp_control0 ,
0 commit comments