ARM: EDMA: Fix clearing of unused list for DT DMA resources

HWMOD removal for MMC is breaking edma_start as the events are being manually
triggered due to unused channel list not being clear.

The above issue is fixed by reading the "dmas" property from the DT node if it
exists and clearing the bits in the unused channel list if the dma controller
used by any device is EDMA. For this purpose we use the of_* helpers to parse
the arguments in the dmas phandle list.

Also introduced is a minor clean up of a checkpatch error in old code.

Reviewed-by: Sekhar Nori <nsekhar@ti.com>
Reported-by: Balaji T K <balajitk@ti.com>
Cc: Pantel Antoniou <panto@antoniou-consulting.com>
Signed-off-by: Joel Fernandes <joelf@ti.com>
am33xx: dts: Add nodes for AES and SHAM

Signed-off-by: Joel Fernandes <joelf@ti.com>
am33xx: dts: Fix AES interrupt number

Signed-off-by: Joel Fernandes <joelf@ti.com>
omap4: dts: Add node for AES

Signed-off-by: Joel Fernandes <joelf@ti.com>
omap4: hwmod: Add hwmod data for aes1 crypto module

    Crypto modules AES0/1 belong to:
       PD_L4_PER power domain
       CD_L4_SEC clock domain
       On the L3, the AES modules are mapped to
       L3_CLK2: Peripherals and multimedia sub clock domain

We add hwmod data for the same.

Signed-off-by: Joel Fernandes <joelf@ti.com>
omap4: hwmod: add hwmod data for DES3DES

Signed-off-by: Joel Fernandes <joelf@ti.com>
crypto: omap-des: Add omap-des driver for OMAP4/AM43xx

Add omap-des driver with platform data for OMAP4. Support added for DES
ECB and CBC modes.

Where possible, code is reused from omap-aes driver with changes made for
adjusting key size, block size, removing non-existent encryption modes
and adding support for OMAP4 platform data and offsets.

Tests have been conducted with the CRYPTO test manager, and functionality
is verified at different page length alignments.

Signed-off-by: Joel Fernandes <joelf@ti.com>
crypto: omap-des: Add config and build options

Add config and build options for the newly added omap-des driver.

Signed-off-by: Joel Fernandes <joelf@ti.com>
crypto: omap-des: Add triple DES (des3_ede) support to driver

OMAP DES module supports 3DES operation where 3 64-bit keys are used to
perform a DES encrypt-decrypt-encrypt (ede) operation on a buffer.

Signed-off-by: Joel Fernandes <joelf@ti.com>
[HACK] crypto: omap-des: Rajendra's review comments

Signed-off-by: Joel Fernandes <joelf@ti.com>
ARM: am437x: dts: Add AES node for am437x

AM437x SoC has AES module similar to the one on OMAP4.
Add DT node for the same.

Signed-off-by: Joel Fernandes <joelf@ti.com>
ARM: am437x: dts: Add DES node for am437x

AM437x SoC has a DES3DES module similar to the one on OMAP4.
Add DT node for the same.

Signed-off-by: Joel Fernandes <joelf@ti.com>