Lines Matching refs:gm_phy_write
150 static int gm_phy_write(struct sky2_hw *hw, unsigned port, u16 reg, u16 val) in gm_phy_write() function
346 gm_phy_write(hw, port, PHY_MARV_EXT_CTRL, ectrl); in sky2_phy_init()
362 gm_phy_write(hw, port, PHY_MARV_FE_SPEC_2, spec); in sky2_phy_init()
386 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, ctrl); in sky2_phy_init()
393 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 2); in sky2_phy_init()
397 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, ctrl); in sky2_phy_init()
401 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 1); in sky2_phy_init()
406 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, ctrl); in sky2_phy_init()
409 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, pg); in sky2_phy_init()
485 gm_phy_write(hw, port, PHY_MARV_1000T_CTRL, ct1000); in sky2_phy_init()
487 gm_phy_write(hw, port, PHY_MARV_AUNE_ADV, adv); in sky2_phy_init()
488 gm_phy_write(hw, port, PHY_MARV_CTRL, ctrl); in sky2_phy_init()
505 gm_phy_write(hw, port, PHY_MARV_FE_LED_PAR, ctrl); in sky2_phy_init()
515 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, ctrl); in sky2_phy_init()
522 gm_phy_write(hw, port, PHY_MARV_FE_LED_PAR, ctrl); in sky2_phy_init()
529 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 3); in sky2_phy_init()
532 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, in sky2_phy_init()
539 gm_phy_write(hw, port, PHY_MARV_PHY_STAT, in sky2_phy_init()
548 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, pg); in sky2_phy_init()
557 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 3); in sky2_phy_init()
560 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, in sky2_phy_init()
567 gm_phy_write(hw, port, PHY_MARV_INT_MASK, in sky2_phy_init()
570 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, pg); in sky2_phy_init()
583 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 255); in sky2_phy_init()
586 gm_phy_write(hw, port, 0x18, 0xaa99); in sky2_phy_init()
587 gm_phy_write(hw, port, 0x17, 0x2011); in sky2_phy_init()
591 gm_phy_write(hw, port, 0x18, 0xa204); in sky2_phy_init()
592 gm_phy_write(hw, port, 0x17, 0x2002); in sky2_phy_init()
596 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 0); in sky2_phy_init()
600 gm_phy_write(hw, port, PHY_MARV_PAGE_ADDR, 17); in sky2_phy_init()
601 gm_phy_write(hw, port, PHY_MARV_PAGE_DATA, 0x3f60); in sky2_phy_init()
604 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 0x00ff); in sky2_phy_init()
607 gm_phy_write(hw, port, 24, 0x2800); in sky2_phy_init()
608 gm_phy_write(hw, port, 23, 0x2001); in sky2_phy_init()
611 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 0); in sky2_phy_init()
615 gm_phy_write(hw, port, PHY_MARV_LED_CTRL, ledctrl); in sky2_phy_init()
624 gm_phy_write(hw, port, PHY_MARV_LED_OVER, ledover); in sky2_phy_init()
654 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 0x00fb); in sky2_phy_init()
656 gm_phy_write(hw, port, 1, 0x4099); in sky2_phy_init()
657 gm_phy_write(hw, port, 3, 0x1120); in sky2_phy_init()
658 gm_phy_write(hw, port, 11, 0x113c); in sky2_phy_init()
659 gm_phy_write(hw, port, 14, 0x8100); in sky2_phy_init()
660 gm_phy_write(hw, port, 15, 0x112a); in sky2_phy_init()
661 gm_phy_write(hw, port, 17, 0x1008); in sky2_phy_init()
663 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 0x00fc); in sky2_phy_init()
664 gm_phy_write(hw, port, 1, 0x20b0); in sky2_phy_init()
666 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 0x00ff); in sky2_phy_init()
670 gm_phy_write(hw, port, 17, eee_afe[i].val); in sky2_phy_init()
671 gm_phy_write(hw, port, 16, eee_afe[i].reg | 1u<<13); in sky2_phy_init()
675 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 0); in sky2_phy_init()
680 gm_phy_write(hw, port, PHY_MARV_EXT_CTRL, in sky2_phy_init()
687 gm_phy_write(hw, port, PHY_MARV_INT_MASK, PHY_M_IS_AN_COMPL); in sky2_phy_init()
689 gm_phy_write(hw, port, PHY_MARV_INT_MASK, PHY_M_DEF_MSK); in sky2_phy_init()
711 gm_phy_write(hw, port, PHY_MARV_CTRL, PHY_CT_ANE); in sky2_phy_power_up()
729 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 2); in sky2_phy_power_down()
734 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, ctrl); in sky2_phy_power_down()
737 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 0); in sky2_phy_power_down()
749 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 2); in sky2_phy_power_down()
754 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, ctrl); in sky2_phy_power_down()
757 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 0); in sky2_phy_power_down()
761 gm_phy_write(hw, port, PHY_MARV_CTRL, PHY_CT_PDOWN); in sky2_phy_power_down()
1393 err = gm_phy_write(hw, sky2->port, data->reg_num & 0x1f, in sky2_ioctl()
2186 gm_phy_write(hw, port, PHY_MARV_INT_MASK, PHY_M_DEF_MSK); in sky2_link_up()
2209 gm_phy_write(hw, port, PHY_MARV_INT_MASK, 0); in sky2_link_down()
3943 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 3); in sky2_led()
3947 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, in sky2_led()
3954 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, in sky2_led()
3961 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, in sky2_led()
3968 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, in sky2_led()
3975 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, pg); in sky2_led()
3977 gm_phy_write(hw, port, PHY_MARV_LED_OVER, in sky2_led()