NFC: pn544: Add SE discover operation
authorArron Wang <arron.wang@intel.com>
Fri, 23 Aug 2013 08:01:58 +0000 (16:01 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 24 Sep 2013 23:35:38 +0000 (01:35 +0200)
commit5faba2fdf9819ebebd6d1a1cef70fddb0518cd08
treeb9d52b453da916f760424af305df68b029847ace
parentb75ff5e84bb6c2d43a8ec39b240c80f0543821f0
NFC: pn544: Add SE discover operation

For the SWP secure element, we send the proprietary SELF_TEST_SWP
command and check the response.
For the WI secure element, we simply try to switch to the default
embedded SE mode. If that works, it means we have an embedded SE.

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