Skip to content

Commit 153c9e6

Browse files
quytranpzzcfriedt
authored andcommitted
soc: renesas: rx: Add ofsm header file for RX26T
Add ofsm header file for option setting on RX26T MCU Signed-off-by: Quy Tran <[email protected]>
1 parent 8997523 commit 153c9e6

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

soc/renesas/rx/rx26t/ofsm.h

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/**
8+
* @brief Option setting header file for Renesas RX26T
9+
*/
10+
11+
#include <zephyr/devicetree.h>
12+
13+
/*
14+
* Option-Setting Memory for the RX. This region of memory (located in flash)
15+
* determines the state of the MCU after reset and can not be changed on runtime
16+
*
17+
* All registers are set to 0xffffffff by default, which are "safe" settings.
18+
* Please refer to the Renesas RX Group User's Manual before changing any of
19+
* the values as some changes can be permanent or lock access to the device.
20+
*
21+
*/
22+
23+
/* Endian Select Register (MDE) at 0x00120064
24+
*
25+
* b2 to b0: endian select between (0 0 0) for big endian and (1 1 1) for little
26+
* endian.
27+
* b6 to b4: bank mode select between (0 0 0) for dual mode and (1 1 1) for linear mode
28+
* all other bits are reserved and have to be set to 1
29+
*/
30+
#define SOC_RX_MDE (0xFFFFFFFFUL) /* little endian */
31+
32+
/* Option Function Select Register 0 (OFS0)
33+
* This section sets the IWDT (Independent Watchdog Timer) behavior immediately after reset
34+
* by programming the OFS0 register. When enabled, IWDT starts counting automatically
35+
* starts after a reset.
36+
*/
37+
#define SOC_RX_OFS0 (0xFFFFFFFFUL)
38+
39+
/* Option Function Select Register 1 (OFS1) (Voltage detection and HOCO)
40+
*/
41+
#define SOC_RX_OFS1 (0xFFFFFFFFUL)

0 commit comments

Comments
 (0)