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:
parent
c609528dc2
commit
ba2413f544
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue