diff options
author | Mark A. Greer <mgreer@animalcreek.com> | 2014-09-03 02:12:22 +0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2014-09-08 01:13:43 +0400 |
commit | 6c08df422ede7db94776b8099a5f43597629234c (patch) | |
tree | ad51c8b06218b34aa1f30140b54ed7a53f73e050 /drivers/nfc/trf7970a.c | |
parent | 17b2151733ecdc96ee4fecdf5fae973b8cb0fea7 (diff) | |
download | linux-6c08df422ede7db94776b8099a5f43597629234c.tar.xz |
NFC: trf7970a: Disable SYS_CLK Output
Currently, support for providing the external
SYS_CLK signal on pin 27 is not supported so
turn it off by writing to the 'Modulator and
SYS_CLK Control' register immediately after
reset.
Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc/trf7970a.c')
-rw-r--r-- | drivers/nfc/trf7970a.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/nfc/trf7970a.c b/drivers/nfc/trf7970a.c index 4709bea8deb2..9c0549d4f276 100644 --- a/drivers/nfc/trf7970a.c +++ b/drivers/nfc/trf7970a.c @@ -775,6 +775,12 @@ static int trf7970a_init(struct trf7970a *trf) if (ret) goto err_out; + ret = trf7970a_write(trf, TRF7970A_MODULATOR_SYS_CLK_CTRL, 0); + if (ret) + goto err_out; + + trf->modulator_sys_clk_ctrl = 0; + /* Must clear NFC Target Detection Level reg due to erratum */ ret = trf7970a_write(trf, TRF7970A_NFC_TARGET_LEVEL, 0); if (ret) |