amlogic: sha_dma: Move register mappings to platform header
authorCarlo Caione <ccaione@baylibre.com>
Wed, 18 Sep 2019 09:12:35 +0000 (10:12 +0100)
committerCarlo Caione <ccaione@baylibre.com>
Wed, 18 Sep 2019 09:22:31 +0000 (10:22 +0100)
The registers location for the SHA DMA driver is not unique for the
different platforms. Move the mapping out of the driver and into the
platform-specific header.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
Change-Id: Ice64637844a3cb384b01e466cb8c1cea5f764129

drivers/amlogic/crypto/sha_dma.c
plat/amlogic/gxbb/gxbb_def.h
plat/amlogic/gxl/gxl_def.h

index d48ded987a647661623744d310371e4b4ce04e95..fceb1c0d3eb32dd02f1cc9c70e20369e0473149c 100644 (file)
@@ -9,10 +9,7 @@
 #include <crypto/sha_dma.h>
 #include <lib/mmio.h>
 
-#define AML_SHA_DMA_BASE 0xc883e000
-
-#define AML_SHA_DMA_DESC (AML_SHA_DMA_BASE + 0x08)
-#define AML_SHA_DMA_STATUS (AML_SHA_DMA_BASE + 0x18)
+#include "aml_private.h"
 
 #define ASD_MODE_SHA224 0x7
 #define ASD_MODE_SHA256 0x6
index 2f6d1d2aecf80279cdc222eb4a032dbba22ed8a2..2c92624067e57f9bb345a93db711d914f77a33af 100644 (file)
 #define AML_HIU_MAILBOX_STAT_3                 UL(0xDA83C42C)
 #define AML_HIU_MAILBOX_CLR_3                  UL(0xDA83C430)
 
+#define AML_SHA_DMA_BASE                       UL(0xC883E000)
+#define AML_SHA_DMA_DESC                       (AML_SHA_DMA_BASE + 0x08)
+#define AML_SHA_DMA_STATUS                     (AML_SHA_DMA_BASE + 0x18)
+
 /*******************************************************************************
  * System Monitor Call IDs and arguments
  ******************************************************************************/
index 6f49ed2b0b6dde684fcc4ba2105cebe243f047b7..ea19338e7e77f4e7da09510fc7689dc85b48f2a6 100644 (file)
 #define AML_HIU_MAILBOX_STAT_3                 UL(0xDA83C42C)
 #define AML_HIU_MAILBOX_CLR_3                  UL(0xDA83C430)
 
+#define AML_SHA_DMA_BASE                       UL(0xC883E000)
+#define AML_SHA_DMA_DESC                       (AML_SHA_DMA_BASE + 0x08)
+#define AML_SHA_DMA_STATUS                     (AML_SHA_DMA_BASE + 0x18)
+
 /*******************************************************************************
  * System Monitor Call IDs and arguments
  ******************************************************************************/