Skip to content

Commit 0572cf3

Browse files
Added octa RAM calibration feature to GR-MANGO.
Modified files in the sub-directory of targets/TARGET_RENESAS/TARGET_RZ_A2XX/.
1 parent e77b1d8 commit 0572cf3

File tree

5 files changed

+1225
-2
lines changed

5 files changed

+1225
-2
lines changed

targets/TARGET_RENESAS/TARGET_RZ_A2XX/TARGET_GR_MANGO/device/system_RZ_A2M.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
#include "r_cache_lld_rza2m.h"
3434

3535
extern void HyperRAM_Init(void);
36-
extern void OctaRAM_Init(void);
37-
36+
extern void R_OCTABUS_Setup(void);
37+
extern void r_octabus_memclk_setup(void);
3838
/*
3939
Port 0 (P0) MD pin assignment
4040
P0_0: MD_BOOT0
@@ -274,7 +274,9 @@ void SystemInit(void)
274274

275275
RZ_A2_InitClock();
276276
RZ_A2_InitBus();
277+
r_octabus_memclk_setup();
277278

279+
R_OCTABUS_Setup();
278280
#if defined(USE_HYPERRAM)
279281
HyperRAM_Init();
280282
#endif
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
/**********************************************************************************************************************
2+
* DISCLAIMER
3+
* This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No
4+
* other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all
5+
* applicable laws, including copyright laws.
6+
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
7+
* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY,
8+
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM
9+
* EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES
10+
* SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO
11+
* THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
12+
* Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of
13+
* this software. By using this software, you agree to the additional terms and conditions found by accessing the
14+
* following link:
15+
* http://www.renesas.com/disclaimer
16+
*
17+
* Copyright (C) 2020 Renesas Electronics Corporation. All rights reserved.
18+
*********************************************************************************************************************/
19+
/**********************************************************************************************************************
20+
* File Name : r_octabus_drv_sc_cfg.h
21+
*********************************************************************************************************************/
22+
23+
/**********************************************************************************************************************
24+
Includes <System Includes> , "Project Includes"
25+
*********************************************************************************************************************/
26+
#include "r_octabus_lld_rza2m_api.h"
27+
28+
/**********************************************************************************************************************
29+
Macro definitions
30+
*********************************************************************************************************************/
31+
32+
#ifndef SC_DRIVERS_R_OCTABUS_INC_R_OCTABUS_DRV_SC_CFG_H_
33+
#define SC_DRIVERS_R_OCTABUS_INC_R_OCTABUS_DRV_SC_CFG_H_
34+
35+
/**********************************************************************************************************************
36+
Global Typedef definitions
37+
*********************************************************************************************************************/
38+
39+
/**********************************************************************************************************************
40+
External global variables
41+
*********************************************************************************************************************/
42+
43+
static const st_octabus_cfg_t OCTABUS_SC_TABLE[] =
44+
{
45+
/* This code is auto-generated. Do not edit manually */
46+
{
47+
OCTABUS_NO_INIT,
48+
OCTABUS_INIT_AT_APP,
49+
0x01000000,
50+
OCTABUS_PRECYCLE_DISABLE,
51+
OCTABUS_TTYPE_DOPI,
52+
5,
53+
5,
54+
0,
55+
OCTABUS_DQSENA_7_CYCLE,
56+
OCTABUS_DVRDLO_DOPI_1P5_CYCLE,
57+
OCTABUS_DVRDHI_DOPI_6P5_CYCLE,
58+
OCTABUS_DVRDCMD_7_CYCLE,
59+
OCTABUS_DVWLO_DOPI_1P5_CYCLE,
60+
OCTABUS_DVWHI_DOPI_1P5_CYCLE,
61+
OCTABUS_DVWCMD_7_CYCLE,
62+
0x00,
63+
0x00,
64+
0x80,
65+
0x00,
66+
OCTABUS_BYTE_ORDER_B1B0B3B2,
67+
0x02,
68+
0x04,
69+
OCTABUS_BYTE_ORDER_B1B0B3B2,
70+
0x02,
71+
0x04,
72+
132000000,
73+
0x00FFFFF0,
74+
},
75+
/* End of modification */
76+
};
77+
78+
/**********************************************************************************************************************
79+
Exported global functions
80+
*********************************************************************************************************************/
81+
82+
#endif /* SC_DRIVERS_R_OCTABUS_INC_R_OCTABUS_DRV_SC_CFG_H_ */

0 commit comments

Comments
 (0)