net/nfp: add FW upload logic
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Fri, 1 Sep 2017 14:12:10 +0000 (15:12 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:48 +0000 (02:49 +0200)
commit1e37fb52c6f4fe2820a7967d196cab39b332644b
treef68727d7638a6ef008942046f5f9c895968aa6cd
parentdd63df2bfff35c00dbb4a2f8a1f20340c17956e7
net/nfp: add FW upload logic

PMD will use this function for uploading the firmware. First, a
symbol resolution is done for finding out if there is a firmware
already there. If not, a NFP reset is called before using NSPU
fw upload code.

PMD PF probe function is now using this logic.

Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
drivers/net/nfp/nfp_net.c
drivers/net/nfp/nfp_nspu.c
drivers/net/nfp/nfp_nspu.h