Patchwork [U-Boot,4/4,v8] Exynos: config: Enable hash command

login
register
mail settings
Submitter Akshay Saraswat
Date March 21, 2013, 7 a.m.
Message ID <1363849259-2007-5-git-send-email-akshay.s@samsung.com>
Download mbox | patch
Permalink /patch/229566/
State Accepted
Delegated to: Minkyu Kang
Headers show

Comments

Akshay Saraswat - March 21, 2013, 7 a.m.
This enables hash command.

Tested with command "hash sha256 0x40008000 0x2B 0x40009000".
Used mm and md to write a standard string to memory location
0x40008000 and ran the above command to verify the output.

Signed-off-by: ARUN MANKUZHI <arun.m@samsung.com>
Signed-off-by: Akshay Saraswat <akshay.s@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
---
Changes since v2:
	- New patch to enable config for hash command.

Changes since v3:
	- Added new generic config for ace_sha to enable ace support in hash.c.

Changes since v4:
	- Added "Acked-by: Simon Glass <sjg@chromium.org>".

Changes since v5:
	- Removed "Acked-by: Simon Glass <sjg@chromium.org>" because of a change.
	- Changed CONFIG_ACE_SHA to CONFIG_SHA_HW_ACCEL.

Changes since v6:
	- Added "Acked-by: Simon Glass <sjg@chromium.org>".

Changes since v7:
	- None.

 include/configs/exynos5250-dt.h | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/include/configs/exynos5250-dt.h b/include/configs/exynos5250-dt.h
index 1fb47a0..9680b9d 100644
--- a/include/configs/exynos5250-dt.h
+++ b/include/configs/exynos5250-dt.h
@@ -48,6 +48,7 @@ 
 
 /* Enable ACE acceleration for SHA1 and SHA256 */
 #define CONFIG_EXYNOS_ACE_SHA
+#define CONFIG_SHA_HW_ACCEL
 
 #define CONFIG_SYS_SDRAM_BASE		0x40000000
 #define CONFIG_SYS_TEXT_BASE		0x43E00000
@@ -117,6 +118,7 @@ 
 #define CONFIG_CMD_EXT2
 #define CONFIG_CMD_FAT
 #define CONFIG_CMD_NET
+#define CONFIG_CMD_HASH
 
 #define CONFIG_BOOTDELAY		3
 #define CONFIG_ZERO_BOOTDELAY_CHECK