File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 8
8
#include <zephyr/irq.h>
9
9
#include <kswap.h>
10
10
#include <zephyr/tracing/tracing.h>
11
+ #include <zephyr/drivers/clock_control/renesas_rx_cgc.h>
11
12
12
13
typedef void (* fp )(void );
13
14
extern void _start (void );
@@ -24,6 +25,14 @@ extern void z_rx_irq_exit(void);
24
25
25
26
#define __ISR__ __attribute__((interrupt, naked))
26
27
28
+ #define SET_OFS1_HOCO_BITS (reg , freq ) \
29
+ ((reg) & ~(0b11 << 12)) | ((((freq) == 24000000 ? 0b10 \
30
+ : (freq) == 32000000 ? 0b11 \
31
+ : (freq) == 48000000 ? 0b01 \
32
+ : (freq) == 64000000 ? 0b00 \
33
+ : 0b11) \
34
+ << 12))
35
+
27
36
static ALWAYS_INLINE void REGISTER_SAVE (void )
28
37
{
29
38
__asm volatile (
@@ -421,7 +430,9 @@ const void *FixedVectors[] FVECT_SECT = {
421
430
/* Reserved for OFSM */
422
431
(fp )0xFFFFFFFF ,
423
432
(fp )0xFFFFFFFF ,
424
- (fp )0xFFFFFFFF ,
433
+ (fp )(SET_OFS1_HOCO_BITS (
434
+ 0xFFFFFFFF ,
435
+ (RX_CGC_PROP_HAS_STATUS_OKAY_OR (DT_NODELABEL (hoco ), clock_frequency , 32000000 )))),
425
436
(fp )0xFFFFFFFF ,
426
437
/* Reserved area */
427
438
(fp )0xFFFFFFFF ,
You can’t perform that action at this time.
0 commit comments