author | Luciano Coelho <coelho@ti.com> | |
Fri, 20 Jan 2012 13:08:34 +0000 (15:08 +0200) | ||
committer | Luciano Coelho <coelho@ti.com> | |
Mon, 23 Jan 2012 07:21:15 +0000 (09:21 +0200) | ||
commit | e7453a0b609685df4282e7eaf36a87488c7b85a3 | |
tree | 5edcb4417cc043cad555f7ceae394df68c081641 | tree | snapshot (tar.xz tar.gz zip) |
parent | eb0795352e13781b1588ababcc9d44a8dc49456e | commit | diff |
plt: add support to read the MAC from fuse and write to NVS
Add a new command "plt set_mac" to allow reading the MAC address from
the fuse ROM and writing to the NVS.
To ease the usage, also allow a real MAC address to be passed. If a
real MAC is passed, we wouldn't need to know the interface to use, but
it's better to have everything in a single command.
If the MAC needs to be assigned offline (ie. not in a device with a
valid wl12xx interface), the old "set nvs_mac" command still works.
Signed-off-by: Luciano Coelho <coelho@ti.com>
Add a new command "plt set_mac" to allow reading the MAC address from
the fuse ROM and writing to the NVS.
To ease the usage, also allow a real MAC address to be passed. If a
real MAC is passed, we wouldn't need to know the interface to use, but
it's better to have everything in a single command.
If the MAC needs to be assigned offline (ie. not in a device with a
valid wl12xx interface), the old "set nvs_mac" command still works.
Signed-off-by: Luciano Coelho <coelho@ti.com>
plt.c | diff | blob | history |