phy_write_mmd_indirect
Prev | PHY Support | Next

## Name

phy_write_mmd_indirect — writes data to the MMD registers

## Synopsis

`void phy_write_mmd_indirect (` | struct mii_bus * bus,
| int prtad,
| int devad,
| int addr,
| u32 data`)`;

## Arguments

`bus`

  the target MII bus

`prtad`

  MMD Address

`devad`

  MMD DEVAD

`addr`

  PHY address on the MII bus

`data`

  data to write in the MMD register

## Description

Write data from the MMD registers of the specified phy address.

## To write these register we have

1) Write reg 13 // DEVAD 2) Write reg 14 // MMD Address 3) Write reg 13 // MMD Data Command for MMD DEVAD 3) Write reg 14 // Write MMD data

Prev | Up | Next
phy_read_mmd_indirect | Home | get_phy_device