Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
phy.c File Reference
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/firmware.h>
#include <linux/usb/wusb.h>
#include "i1480-dfu.h"

Go to the source code of this file.

Functions

int i1480_phy_fw_upload (struct i1480 *i1480)
 

Function Documentation

int i1480_phy_fw_upload ( struct i1480 i1480)

Upload a PHY firmware, wait for it to start

: Device instance : Name of the file that contains the firmware

We assume the MAC fw is up and running. This means we can use the MPI interface to write the PHY firmware. Once done, we issue an MBOA Reset, which will force the MAC to reset and reinitialize the PHY. If that works, we are ready to go.

Max packet size for the MPI write is 512, so the max buffer is 480 (which gives us 160 byte triads of MSB, LSB and VAL for the data).

Definition at line 162 of file phy.c.