Skip to content

Commit 2f47497

Browse files
Hieu NguyenKhiemNguyenT
authored andcommitted
hal: renesas: rz: Add initial support for RZ/T
This is the initial HAL support for RZ/T series. The HAL support for RZ/T is based on RZ/T FSP Signed-off-by: Hieu Nguyen <[email protected]> Signed-off-by: Nhut Nguyen <[email protected]>
1 parent 1adc192 commit 2f47497

File tree

10 files changed

+40063
-0
lines changed

10 files changed

+40063
-0
lines changed

drivers/rz/fsp/src/rzt/bsp/cmsis/Device/RENESAS/Include/R9A07G075.h

Lines changed: 38410 additions & 0 deletions
Large diffs are not rendered by default.

drivers/rz/fsp/src/rzt/bsp/mcu/rzt2m/bsp_elc.h

Lines changed: 529 additions & 0 deletions
Large diffs are not rendered by default.

drivers/rz/fsp/src/rzt/bsp/mcu/rzt2m/bsp_feature.h

Lines changed: 441 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
* Copyright (c) 2020 - 2024 Renesas Electronics Corporation and/or its affiliates
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/
6+
7+
/*******************************************************************************************************************//**
8+
* @ingroup BSP_MCU
9+
* @defgroup BSP_MCU_RZT2M RZT2M
10+
* @includedoc config_bsp_rzt2m_fsp.html
11+
* @{
12+
**********************************************************************************************************************/
13+
14+
/** @} (end defgroup BSP_MCU_RZT2M) */
15+
16+
#ifndef BSP_MCU_INFO_H
17+
#define BSP_MCU_INFO_H
18+
19+
/***********************************************************************************************************************
20+
* Includes <System Includes> , "Project Includes"
21+
**********************************************************************************************************************/
22+
23+
/* BSP MCU Specific Includes. */
24+
#include "bsp_elc.h"
25+
#include "bsp_feature.h"
26+
27+
/** Common macro for FSP header files. There is also a corresponding FSP_FOOTER macro at the end of this file. */
28+
FSP_HEADER
29+
30+
/***********************************************************************************************************************
31+
* Macro definitions
32+
**********************************************************************************************************************/
33+
34+
/***********************************************************************************************************************
35+
* Typedef definitions
36+
**********************************************************************************************************************/
37+
typedef elc_event_t bsp_interrupt_event_t;
38+
39+
/***********************************************************************************************************************
40+
* Exported global variables
41+
**********************************************************************************************************************/
42+
43+
/***********************************************************************************************************************
44+
* Exported global functions (to be accessed by other files)
45+
**********************************************************************************************************************/
46+
47+
/** Common macro for FSP header files. There is also a corresponding FSP_HEADER macro at the top of this file. */
48+
FSP_FOOTER
49+
50+
#endif
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright (c) 2020 - 2024 Renesas Electronics Corporation and/or its affiliates
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/
6+
7+
#ifndef BSP_CFG_H_
8+
#define BSP_CFG_H_
9+
#include "bsp_clock_cfg.h"
10+
#include "bsp_mcu_family_cfg.h"
11+
12+
#ifndef BSP_CFG_RTOS
13+
#define BSP_CFG_RTOS (0)
14+
#endif
15+
16+
#define BSP_CFG_MCU_VCC_MV (3300)
17+
18+
#define BSP_CFG_PARAM_CHECKING_ENABLE (0)
19+
#define BSP_CFG_ASSERT (0)
20+
#define BSP_CFG_ERROR_LOG (0)
21+
22+
#define BSP_CFG_PORT_PROTECT (1)
23+
24+
#define BSP_CFG_SOFT_RESET_SUPPORTED (0)
25+
#define BSP_CFG_EARLY_INIT (0)
26+
27+
#define BSP_CFG_MULTIPLEX_INTERRUPT_SUPPORTED (0)
28+
#if BSP_CFG_MULTIPLEX_INTERRUPT_SUPPORTED
29+
#define BSP_CFG_MULTIPLEX_INTERRUPT_ENABLE BSP_INTERRUPT_ENABLE
30+
#define BSP_CFG_MULTIPLEX_INTERRUPT_DISABLE BSP_INTERRUPT_DISABLE
31+
#else
32+
#define BSP_CFG_MULTIPLEX_INTERRUPT_ENABLE
33+
#define BSP_CFG_MULTIPLEX_INTERRUPT_DISABLE
34+
#endif
35+
#endif /* BSP_CFG_H_ */
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
* Copyright (c) 2020 - 2024 Renesas Electronics Corporation and/or its affiliates
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/
6+
7+
#ifndef BSP_CLOCK_CFG_H_
8+
#define BSP_CLOCK_CFG_H_
9+
#define BSP_CFG_CLOCKS_SECURE (0)
10+
#define BSP_CFG_CLOCKS_OVERRIDE (0)
11+
#define BSP_CFG_MAIN_CLOCK_HZ (25000000) /* Main Clock: 25MHz */
12+
#define BSP_CFG_LOCO_ENABLE (BSP_CLOCKS_LOCO_ENABLE) /* LOCO Enabled */
13+
#define BSP_CFG_PLL1 (BSP_CLOCKS_PLL1_INITIAL) /* PLL1 is initial state */
14+
#define BSP_CFG_PHYSEL (BSP_CLOCKS_PHYSEL_PLL1_DIV) /* Ethernet Clock src: PLL1 divider clock */
15+
#define BSP_CFG_CLMA0_ENABLE (BSP_CLOCKS_CLMA0_ENABLE) /* CLMA0 Enabled */
16+
#define BSP_CFG_CLMA0MASK (BSP_CLOCKS_CLMA0_ERROR_NOT_MASK) /* CLMA0 error not mask */
17+
#define BSP_CFG_CLMA3MASK (BSP_CLOCKS_CLMA3_ERROR_NOT_MASK) /* CLMA3 error not mask */
18+
#define BSP_CFG_CLMA1MASK (BSP_CLOCKS_CLMA1_ERROR_MASK) /* CLMA1 error mask */
19+
#define BSP_CFG_CLMA3_ENABLE (BSP_CLOCKS_CLMA3_ENABLE) /* CLMA3 Enabled */
20+
#define BSP_CFG_CLMA1_ENABLE (BSP_CLOCKS_CLMA1_ENABLE) /* CLMA1 Enabled */
21+
#define BSP_CFG_CLMA2_ENABLE (BSP_CLOCKS_CLMA2_ENABLE) /* CLMA2 Enabled */
22+
#define BSP_CFG_CLMA0_CMPL (1) /* CLMA0 CMPL 1 */
23+
#define BSP_CFG_CLMA1_CMPL (1) /* CLMA1 CMPL 1 */
24+
#define BSP_CFG_CLMA2_CMPL (1) /* CLMA2 CMPL 1 */
25+
#define BSP_CFG_CLMA3_CMPL (1) /* CLMA3 CMPL 1 */
26+
#define BSP_CFG_CLMASEL (BSP_CLOCKS_CLMASEL_LOCO) /* Alternative clock: LOCO */
27+
#define BSP_CFG_CLMA0_CMPH (1023) /* CLMA0 CMPH 1023 */
28+
#define BSP_CFG_CLMA1_CMPH (1023) /* CLMA1 CMPH 1023 */
29+
#define BSP_CFG_CLMA2_CMPH (1023) /* CLMA2 CMPH 1023 */
30+
#define BSP_CFG_CLMA3_CMPH (1023) /* CLMA3 CMPH 1023 */
31+
#define BSP_CFG_DIVSELSUB (BSP_CLOCKS_DIVSELSUB_0) /* ICLK 200MHz */
32+
#define BSP_CFG_SCI0ASYNCCLK (BSP_CLOCKS_SCI0_ASYNCHRONOUS_SERIAL_CLOCK_96_MHZ) /* SCI0ASYNCCLK: 96MHz */
33+
#define BSP_CFG_SCI1ASYNCCLK (BSP_CLOCKS_SCI1_ASYNCHRONOUS_SERIAL_CLOCK_96_MHZ) /* SCI1ASYNCCLK: 96MHz */
34+
#define BSP_CFG_SCI2ASYNCCLK (BSP_CLOCKS_SCI2_ASYNCHRONOUS_SERIAL_CLOCK_96_MHZ) /* SCI2ASYNCCLK: 96MHz */
35+
#define BSP_CFG_SCI3ASYNCCLK (BSP_CLOCKS_SCI3_ASYNCHRONOUS_SERIAL_CLOCK_96_MHZ) /* SCI3ASYNCCLK: 96MHz */
36+
#define BSP_CFG_SCI4ASYNCCLK (BSP_CLOCKS_SCI4_ASYNCHRONOUS_SERIAL_CLOCK_96_MHZ) /* SCI4ASYNCCLK: 96MHz */
37+
#define BSP_CFG_SCI5ASYNCCLK (BSP_CLOCKS_SCI5_ASYNCHRONOUS_SERIAL_CLOCK_96_MHZ) /* SCI5ASYNCCLK: 96MHz */
38+
#define BSP_CFG_SPI0ASYNCCLK (BSP_CLOCKS_SPI0_ASYNCHRONOUS_SERIAL_CLOCK_96_MHZ) /* SPI0ASYNCCLK: 96MHz */
39+
#define BSP_CFG_SPI1ASYNCCLK (BSP_CLOCKS_SPI1_ASYNCHRONOUS_SERIAL_CLOCK_96_MHZ) /* SPI1ASYNCCLK: 96MHz */
40+
#define BSP_CFG_SPI2ASYNCCLK (BSP_CLOCKS_SPI2_ASYNCHRONOUS_SERIAL_CLOCK_96_MHZ) /* SPI2ASYNCCLK: 96MHz */
41+
#define BSP_CFG_SPI3ASYNCCLK (BSP_CLOCKS_SPI3_ASYNCHRONOUS_SERIAL_CLOCK_96_MHZ) /* SPI3ASYNCCLK: 96MHz */
42+
#define BSP_CFG_FSELCPU0 (BSP_CLOCKS_FSELCPU0_ICLK_MUL1) /* CPU0CLK Mul x1 */
43+
#define BSP_CFG_FSELCPU1 (BSP_CLOCKS_FSELCPU1_ICLK_MUL1) /* CPU1CLK Mul x1 */
44+
#define BSP_CFG_CKIO (BSP_CLOCKS_CKIO_ICLK_DIV4) /* CKIO Div /4 */
45+
#define BSP_CFG_FSELCANFD (BSP_CLOCKS_CANFD_CLOCK_40_MHZ) /* CANFDCLK Src: PCLKCAN 40MHz */
46+
#define BSP_CFG_FSELXSPI0_DIVSELXSPI0 (BSP_CLOCKS_XSPI0_CLOCK_DIV0_12_5_MHZ) /* XSPI_CLK0 12.5MHz */
47+
#define BSP_CFG_FSELXSPI1_DIVSELXSPI1 (BSP_CLOCKS_XSPI1_CLOCK_DIV0_12_5_MHZ) /* XSPI_CLK1 12.5MHz */
48+
#endif /* BSP_CLOCK_CFG_H_ */
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright (c) 2020 - 2024 Renesas Electronics Corporation and/or its affiliates
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/
6+
7+
#ifndef BSP_MCU_DEVICE_CFG_H_
8+
#define BSP_MCU_DEVICE_CFG_H_
9+
#define BSP_CFG_STACK_FIQ_BYTES (0x1000)
10+
#define BSP_CFG_STACK_IRQ_BYTES (0x1000)
11+
#define BSP_CFG_STACK_ABT_BYTES (0x1000)
12+
#define BSP_CFG_STACK_UND_BYTES (0x1000)
13+
#define BSP_CFG_STACK_SYS_BYTES (0x1000)
14+
#define BSP_CFG_STACK_SVC_BYTES (0x1000)
15+
#define BSP_CFG_HEAP_BYTES (0x8000)
16+
17+
#define BSP_CFG_C_RUNTIME_INIT (1)
18+
#define BSP_CFG_USE_TFU_MATHLIB ((1))
19+
#endif /* BSP_MCU_DEVICE_CFG_H_ */

0 commit comments

Comments
 (0)