diff mbox

[U-Boot] arm: omap-common: add secure ROM signature verify index for AM33xx

Message ID 20170111161952.7019-1-afd@ti.com
State Accepted
Commit 4ac19bae2d1914b1612c720c71442f77aff331de
Delegated to: Tom Rini
Headers show

Commit Message

Andrew Davis Jan. 11, 2017, 4:19 p.m. UTC
On AM33xx devices the secure ROM uses a different call index for
signature verification, the function and arguments are the same.

Signed-off-by: Andrew F. Davis <afd@ti.com>
---
 arch/arm/mach-omap2/sec-common.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Tom Rini Jan. 15, 2017, 6:32 p.m. UTC | #1
On Wed, Jan 11, 2017 at 10:19:52AM -0600, Andrew F. Davis wrote:

> On AM33xx devices the secure ROM uses a different call index for
> signature verification, the function and arguments are the same.
> 
> Signed-off-by: Andrew F. Davis <afd@ti.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/sec-common.c b/arch/arm/mach-omap2/sec-common.c
index 246a2393da..c5a000ac3a 100644
--- a/arch/arm/mach-omap2/sec-common.c
+++ b/arch/arm/mach-omap2/sec-common.c
@@ -21,7 +21,11 @@ 
 #include <spl.h>
 
 /* Index for signature verify ROM API */
+#ifdef CONFIG_AM33XX
+#define API_HAL_KM_VERIFYCERTIFICATESIGNATURE_INDEX	(0x0000000C)
+#else
 #define API_HAL_KM_VERIFYCERTIFICATESIGNATURE_INDEX	(0x0000000E)
+#endif
 
 static uint32_t secure_rom_call_args[5] __aligned(ARCH_DMA_MINALIGN);