crypto: ixp4xx - Add device tree support
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 25 May 2021 08:50:56 +0000 (10:50 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 3 Jun 2021 12:24:05 +0000 (20:24 +0800)
commit76f24b4f46b8ca380d6e2c91bd84e0e47a9f4bcd
treece0bab742d10c1d4042fac3fceaa83897a570061
parent937264905aa21655cb1142146997f211153e6e27
crypto: ixp4xx - Add device tree support

This makes the IXP4xx driver probe from the device tree
and retrieve the NPE and two queue manager handled used
to process crypto from the device tree.

As the crypto engine is topologically a part of the NPE
hardware, we augment the NPE driver to spawn the
crypto engine as a child.

The platform data probe path is going away in due time,
for now it is an isolated else clause.

Cc: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ixp4xx_crypto.c
drivers/soc/ixp4xx/ixp4xx-npe.c