Linux Kernel
3.7.1
|
#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) |
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).