Browse Source
Use generic hook infrastrucutre instead of custom Kconfig and hooks for ARC. Replace soc_early_asm_init_percpu() with platform_reset() Signed-off-by: Anas Nashif <anas.nashif@intel.com>pull/78152/head
6 changed files with 24 additions and 23 deletions
@ -0,0 +1,14 @@ |
|||||||
|
/* |
||||||
|
* Copyright (c) 2023 Synopsys, Inc. All rights reserved. |
||||||
|
* |
||||||
|
* SPDX-License-Identifier: Apache-2.0 |
||||||
|
*/ |
||||||
|
|
||||||
|
#include <zephyr/toolchain.h> |
||||||
|
#include <zephyr/linker/sections.h> |
||||||
|
#include <zephyr/arch/cpu.h> |
||||||
|
|
||||||
|
GTEXT(soc_reset_hook) |
||||||
|
SECTION_FUNC(TEXT, soc_reset_hook) |
||||||
|
mov r0, 1 /* disable LPB for HS4XD */ |
||||||
|
sr r0, [_ARC_V2_LPB_CTRL] |
@ -1,17 +0,0 @@ |
|||||||
/*
|
|
||||||
* Copyright (c) 2023 Synopsys, Inc. All rights reserved. |
|
||||||
* |
|
||||||
* SPDX-License-Identifier: Apache-2.0 |
|
||||||
*/ |
|
||||||
|
|
||||||
#ifndef _ARC_HSDK4XD_SOC_CTRL_H_ |
|
||||||
#define _ARC_HSDK4XD_SOC_CTRL_H_ |
|
||||||
|
|
||||||
#ifdef _ASMLANGUAGE |
|
||||||
.macro soc_early_asm_init_percpu |
|
||||||
mov r0, 1 /* disable LPB for HS4XD */ |
|
||||||
sr r0, [_ARC_V2_LPB_CTRL] |
|
||||||
.endm |
|
||||||
#endif /* _ASMLANGUAGE */ |
|
||||||
|
|
||||||
#endif /* _ARC_HSDK4XD_SOC_CTRL_H_ */ |
|
Loading…
Reference in new issue