From 10a3b24daf379162caf84fe757f849d7ba48c379 Mon Sep 17 00:00:00 2001 From: Andrea Merello Date: Wed, 1 Mar 2017 11:32:07 +0100 Subject: flash: efm32: add support for EFR-familty (e.g. bluegecko) This patch adds support for Blue Gecko and Mighty Gecko chips from Silabs. They have different EFM32_MSC_REGBASE and LOCK register offset. Based on the original patch from Andreas Kemnade. Change-Id: I166c14960ced7c880b68083badd1b31372fefabe Cc: Andreas Kemnade Signed-off-by: Andrea Merello Reviewed-on: http://openocd.zylin.com/4034 Reviewed-by: Jonas Norling Tested-by: jenkins Reviewed-by: Fredrik Hederstierna Reviewed-by: Spencer Oliver Reviewed-by: chrysn --- contrib/loaders/flash/efm32.S | 4 ---- 1 file changed, 4 deletions(-) (limited to 'contrib') diff --git a/contrib/loaders/flash/efm32.S b/contrib/loaders/flash/efm32.S index 25d63010..c5de55c2 100644 --- a/contrib/loaders/flash/efm32.S +++ b/contrib/loaders/flash/efm32.S @@ -44,11 +44,7 @@ #define EFM32_MSC_ADDRB_OFFSET 0x010 #define EFM32_MSC_WDATA_OFFSET 0x018 #define EFM32_MSC_STATUS_OFFSET 0x01c -#define EFM32_MSC_LOCK_OFFSET 0x03c - /* unlock MSC */ - ldr r6, =#0x1b71 - str r6, [r0, #EFM32_MSC_LOCK_OFFSET] /* set WREN to 1 */ movs r6, #1 str r6, [r0, #EFM32_MSC_WRITECTRL_OFFSET] -- cgit v1.2.3-18-g5258