arch: arc: change to CONFIG_INIT_ARCH_HW_AT_BOOT

align kconfig option CONFIG_ARC_CUSTOM_INIT to
CONFIG_INIT_ARCH_HW_AT_BOOT. Remove unused CONFIG_ARC_CUSTOM_INIT in
kconfig.

Signed-off-by: Yuguo Zou <yuguo.zou@synopsys.com>
This commit is contained in:
Yuguo Zou 2020-10-30 11:01:41 +08:00 committed by Carles Cufí
parent c609528dc2
commit ba2413f544
3 changed files with 4 additions and 9 deletions

View file

@ -328,10 +328,4 @@ config ARC_EXCEPTION_DEBUG
and parameters, at a cost of code/data size for the human-readable
strings.
config ARC_CUSTOM_INIT
bool "Enable custom initialization code"
help
This option enables custom initialization code as a supplement
method of initialization to some corner cases on SoCs and boards.
endmenu

View file

@ -122,12 +122,13 @@ invalidate_dcache:
done_cache_invalidate:
/*
* ARC Custom Initialization
* Init ARC internal architecture state
* Force to initialize internal architecture state to reset values
* For scenarios where board hardware is not re-initialized between tests,
* some settings need to be restored to its default initial states as a
* substitution of normal hardware reset sequence.
*/
#if defined(CONFIG_ARC_CUSTOM_INIT)
#ifdef CONFIG_INIT_ARCH_HW_AT_BOOT
/* Set MPU (v3) registers to default */
#if CONFIG_ARC_MPU_VER == 3
/* Set default reset value to _ARC_V2_MPU_EN register */

View file

@ -20,4 +20,4 @@ CONFIG_GPIO=y
CONFIG_ARC_MPU_ENABLE=y
CONFIG_ARC_HAS_SECURE=y
CONFIG_TRUSTED_EXECUTION_SECURE=y
CONFIG_ARC_CUSTOM_INIT=y
CONFIG_INIT_ARCH_HW_AT_BOOT=y