1. 25 6月, 2014 1 次提交
  2. 27 2月, 2014 1 次提交
  3. 13 9月, 2013 2 次提交
    • A
      crypto: caam - enable instantiation of all RNG4 state handles · 1005bccd
      Alex Porosanu 提交于
      RNG4 block contains multiple (i.e. 2) state handles that can be
      initialized. This patch adds the necessary code for detecting
      which of the two state handles has been instantiated by another
      piece of software e.g. u-boot and instantiate the other one (or
      both if none was instantiated). Only the state handle(s)
      instantiated by this driver will be deinstantiated when removing
      the module.
      Signed-off-by: NAlex Porosanu <alexandru.porosanu@freescale.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      1005bccd
    • A
      crypto: caam - fix RNG4 instantiation · 84cf4827
      Alex Porosanu 提交于
      The RNG4 block in CAAM needs to be 'seeded' first before being used
      for generating pseudo-random data. The 'seeding' is done by getting
      entropy from the TRNG ring oscillator. The RTFRQMAX register controls
      the maximum allowable number of samples that can be aquired during
      an entropy sample. Depending on the clock at which the RNG4 block
      (and for that matter the SEC block) runs, it's possible that a
      hard-coded value for the maximum frequency is inadequate, i.e. more
      samples than needed are taken. This is an error, and thus the RNG4
      block doesn't get initialized.  The patch attempts to alleviate
      this issue by trying with progressivly larger frequencies, until
      the number of samples is adequate.
      This patch also fixes how a descriptor is deemed as being finished:
      instead of checking the VALID field in the DECO debug register,
      it makes sure that the DECO is idle, by checking the DECO state field
      of the said register.
      Signed-off-by: NAlex Porosanu <alexandru.porosanu@freescale.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      84cf4827
  4. 01 8月, 2013 1 次提交
  5. 14 5月, 2013 1 次提交
  6. 22 3月, 2013 1 次提交
  7. 11 7月, 2012 1 次提交
  8. 27 6月, 2012 1 次提交
  9. 20 12月, 2011 1 次提交
  10. 03 5月, 2011 1 次提交
  11. 27 3月, 2011 1 次提交
    • K
      crypto: caam - Add support for the Freescale SEC4/CAAM · 8e8ec596
      Kim Phillips 提交于
      The SEC4 supercedes the SEC2.x/3.x as Freescale's
      Integrated Security Engine.  Its programming model is
      incompatible with all prior versions of the SEC (talitos).
      
      The SEC4 is also known as the Cryptographic Accelerator
      and Assurance Module (CAAM); this driver is named caam.
      
      This initial submission does not include support for Data Path
      mode operation - AEAD descriptors are submitted via the job
      ring interface, while the Queue Interface (QI) is enabled
      for use by others.  Only AEAD algorithms are implemented
      at this time, for use with IPsec.
      
      Many thanks to the Freescale STC team for their contributions
      to this driver.
      Signed-off-by: NSteve Cornelius <sec@pobox.com>
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      8e8ec596