platform: msm_shared: Pass physical address in BAM descriptor.

Pass physical address of the DDR location in BAM descriptor instead
of virtual address.

Change-Id: I5139392af9271139cdc649708c642de4833d8038
diff --git a/platform/msm_shared/crypto5_eng.c b/platform/msm_shared/crypto5_eng.c
index 0861cc8..933d30b 100644
--- a/platform/msm_shared/crypto5_eng.c
+++ b/platform/msm_shared/crypto5_eng.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are
@@ -186,7 +186,7 @@
 
 	ret = bam_add_one_desc(&dev->bam,
 						   CRYPTO_WRITE_PIPE_INDEX,
-						   (unsigned char*)start,
+						   (unsigned char*)PA((addr_t)start),
 						   ce_size,
 						   BAM_DESC_CMD_FLAG | flags);
 
@@ -487,13 +487,12 @@
 	if(buffer)
 	{
 		arch_clean_invalidate_cache_range((addr_t) buffer, total_bytes_to_write);
-
-		bam_status = ADD_WRITE_DESC(&dev->bam, buffer, total_bytes_to_write, wr_flags);
+		bam_status = ADD_WRITE_DESC(&dev->bam, (unsigned char*)PA((addr_t)buffer), total_bytes_to_write, wr_flags);
 	}
 	else
 	{
 		arch_clean_invalidate_cache_range((addr_t) data_ptr, total_bytes_to_write);
-		bam_status = ADD_WRITE_DESC(&dev->bam, data_ptr, total_bytes_to_write, wr_flags);
+		bam_status = ADD_WRITE_DESC(&dev->bam, (unsigned char*)PA((addr_t)data_ptr), total_bytes_to_write, wr_flags);
 	}
 
 	if (bam_status)