From 42e9adcfc9963b54c71e8851e1a6a41a001531e5 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 3 Nov 2022 12:41:28 -0400 Subject: armcm_reset: Introduce Kconfig FLASH_BOOT_ADDRESS value Specify the arm architecture flash bootup address for each chip type in Kconfig using a new FLASH_BOOT_ADDRESS setting. Signed-off-by: Kevin O'Connor --- src/generic/armcm_reset.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/generic/armcm_reset.c') diff --git a/src/generic/armcm_reset.c b/src/generic/armcm_reset.c index 67ff5f57..6cd9ad8c 100644 --- a/src/generic/armcm_reset.c +++ b/src/generic/armcm_reset.c @@ -17,10 +17,10 @@ static void canboot_reset(uint64_t req_signature) { - if (!(CONFIG_FLASH_START & 0x00FFFFFF)) + if (CONFIG_FLASH_START == CONFIG_FLASH_BOOT_ADDRESS) // No bootloader return; - uint32_t *bl_vectors = (uint32_t *)(CONFIG_FLASH_START & 0xFF000000); + uint32_t *bl_vectors = (uint32_t *)CONFIG_FLASH_BOOT_ADDRESS; uint64_t *boot_sig = (uint64_t *)(bl_vectors[1] - 9); uint64_t *req_sig = (uint64_t *)bl_vectors[0]; if (boot_sig == (void *)ALIGN((size_t)boot_sig, 8) && -- cgit v1.2.3-70-g09d2