Skip to content

Commit 75e59a5

Browse files
authored
Merge pull request #14000 from RyoheiHagimoto/grmango-oram-calib
Add octa RAM calibration feature to GR-MANGO.
2 parents b25e047 + c34a7b2 commit 75e59a5

File tree

5 files changed

+1236
-2
lines changed

5 files changed

+1236
-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: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
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+
/* Copyright (c) 2020 Renesas Electronics Corporation.
20+
* SPDX-License-Identifier: Apache-2.0
21+
*
22+
* Licensed under the Apache License, Version 2.0 (the "License");
23+
* you may not use this file except in compliance with the License.
24+
* You may obtain a copy of the License at
25+
*
26+
* http://www.apache.org/licenses/LICENSE-2.0
27+
*
28+
* Unless required by applicable law or agreed to in writing, software
29+
* distributed under the License is distributed on an "AS IS" BASIS,
30+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31+
* See the License for the specific language governing permissions and
32+
* limitations under the License.
33+
*/
34+
/**********************************************************************************************************************
35+
* File Name : r_octabus_drv_sc_cfg.h
36+
*********************************************************************************************************************/
37+
38+
/**********************************************************************************************************************
39+
Includes <System Includes> , "Project Includes"
40+
*********************************************************************************************************************/
41+
#include "r_octabus_lld_rza2m_api.h"
42+
43+
/**********************************************************************************************************************
44+
Macro definitions
45+
*********************************************************************************************************************/
46+
47+
#ifndef SC_DRIVERS_R_OCTABUS_INC_R_OCTABUS_DRV_SC_CFG_H_
48+
#define SC_DRIVERS_R_OCTABUS_INC_R_OCTABUS_DRV_SC_CFG_H_
49+
50+
/**********************************************************************************************************************
51+
Global Typedef definitions
52+
*********************************************************************************************************************/
53+
54+
/**********************************************************************************************************************
55+
External global variables
56+
*********************************************************************************************************************/
57+
58+
static const st_octabus_cfg_t OCTABUS_SC_TABLE[] = {
59+
/* This code is auto-generated. Do not edit manually */
60+
{
61+
OCTABUS_NO_INIT,
62+
OCTABUS_INIT_AT_APP,
63+
0x01000000,
64+
OCTABUS_PRECYCLE_DISABLE,
65+
OCTABUS_TTYPE_DOPI,
66+
5,
67+
5,
68+
0,
69+
OCTABUS_DQSENA_7_CYCLE,
70+
OCTABUS_DVRDLO_DOPI_1P5_CYCLE,
71+
OCTABUS_DVRDHI_DOPI_6P5_CYCLE,
72+
OCTABUS_DVRDCMD_7_CYCLE,
73+
OCTABUS_DVWLO_DOPI_1P5_CYCLE,
74+
OCTABUS_DVWHI_DOPI_1P5_CYCLE,
75+
OCTABUS_DVWCMD_7_CYCLE,
76+
0x00,
77+
0x00,
78+
0x80,
79+
0x00,
80+
OCTABUS_BYTE_ORDER_B1B0B3B2,
81+
0x02,
82+
0x04,
83+
OCTABUS_BYTE_ORDER_B1B0B3B2,
84+
0x02,
85+
0x04,
86+
132000000,
87+
0x00FFFFF0,
88+
},
89+
/* End of modification */
90+
};
91+
92+
/**********************************************************************************************************************
93+
Exported global functions
94+
*********************************************************************************************************************/
95+
96+
#endif /* SC_DRIVERS_R_OCTABUS_INC_R_OCTABUS_DRV_SC_CFG_H_ */

0 commit comments

Comments
 (0)