]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: pn544: Pass hardware variant information when downloading firmware
authorArron Wang <arron.wang@intel.com>
Wed, 11 Dec 2013 09:25:23 +0000 (17:25 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 16 Feb 2014 22:49:54 +0000 (23:49 +0100)
commit9fb04cbf4cf6b442b5946e9332f06635c8c4226f
tree4eafcf813750d21535e93770863991e373db21f9
parent06071f24683ee8ede9cfc1ca07e1633f2b52bbc0
NFC: pn544: Pass hardware variant information when downloading firmware

Different pn544 hardware variant may use different commands to download
new firmwares. The C2 does a regular firmware download while the C3 uses
a more secure protocol.
As a consequence we need to pass the hardware variant from the HCI SW
version command reply down to the pn544 i2c layer, in order to use the
right protocol at run time.

Signed-off-by: Arron Wang <arron.wang@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/pn544/i2c.c
drivers/nfc/pn544/pn544.c
drivers/nfc/pn544/pn544.h