Skip to content

Commit 78b027f

Browse files
RuibinChangstephanosio
authored andcommitted
ITE drivers/timer: fix tests/drivers/flash build error
There wasn't the build error in PR#44060, but now tool chain isn't happy about putting the arch_busy_wait() to __ram_code section, then it shows a build error: https://github.com/zephyrproject-rtos/zephyr/runs/5755633537?check_suite_focus=true#step:10:933 So I remove __ram_code of arch_busy_wait(), and this will need extra fetch code time when arch_busy_wait() code isn't in the dynamic cache. Verified by follow test pattern: west build -p auto -b it8xxx2_evb tests/drivers/flash Signed-off-by: Ruibin Chang <[email protected]>
1 parent 736520a commit 78b027f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/timer/ite_it8xxx2_timer.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
#include <logging/log.h>
1616
LOG_MODULE_REGISTER(timer, LOG_LEVEL_ERR);
1717

18-
/* RAM code section */
19-
#define __timer_ram_code __attribute__((section(".__ram_code")))
20-
2118
/* Event timer configurations */
2219
#define EVENT_TIMER EXT_TIMER_3
2320
#define EVENT_TIMER_IRQ DT_INST_IRQ_BY_IDX(0, 0, irq)
@@ -138,7 +135,7 @@ void timer_5ms_one_shot(void)
138135
#endif /* CONFIG_SOC_IT8XXX2_PLL_FLASH_48M */
139136

140137
#ifdef CONFIG_ARCH_HAS_CUSTOM_BUSY_WAIT
141-
__timer_ram_code void arch_busy_wait(uint32_t usec_to_wait)
138+
void arch_busy_wait(uint32_t usec_to_wait)
142139
{
143140
if (!usec_to_wait) {
144141
return;

0 commit comments

Comments
 (0)