forked from renesas-rz/rzg2_flash_writer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdgtable.c
65 lines (62 loc) · 2 KB
/
dgtable.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
* Copyright (c) 2015-2022, Renesas Electronics Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "common.h"
#include "dgtable.h"
#include "dgmodul1.h"
#include "memory_cmd.h"
#include "ddrcheck.h"
#if SERIAL_FLASH == 1
#include "dgmodul4.h"
#endif /* SERIAL_FLASH == 1 */
#if EMMC == 1
#include "dgemmc.h"
#endif /* EMMC == 1 */
/********************************************************/
/* ROM TABLE */
/********************************************************/
const com_menu MonCom[COMMAND_UNIT] = {
/*--------------------- Basic command ------------------------------*/
"H" , dgHelp , 0 ,
#if SERIAL_FLASH == 1
"XCS" , dgClearSpiflash0 , 0 ,
"XLS2" , dgG2LoadSpiflash0_2 , 0 ,
"XLS3" , dgG2LoadSpiflash0_3 , 0 ,
"XINFO_BP" , dgG2InfoSpiflash0_BP , 0 ,
"XINFO_BP_S" , dgG2InfoSpiflash0_BP_S , 0 ,
#endif /* SERIAL_FLASH == 1 */
#if EMMC == 1
"EM_DCID" , &dg_emmc_disp_cid , 0 ,
"EM_DCSD" , &dg_emmc_disp_csd , 0 ,
"EM_DECSD" , &dg_emmc_disp_ext_csd , 0 ,
"EM_SECSD" , &dg_emmc_set_ext_csd , 0 ,
"EM_W" , &dg_emmc_write_mot , 0 ,
"EM_WB" , &dg_emmc_write_bin , 0 ,
"EM_E" , &dg_emmc_erase , 0 ,
#endif /* EMMC == 1 */
"SUP" , dgScifSpeedUp , 0 ,
"SUD" , dgScifSpeedDown , 0 ,
"RESET" , dgReset , 0 ,
#if INTERNAL_MEMORY_ONLY == 0
"DDRCK" , dgDdrTest , 0 ,
"RAMCK" , dgRamTest , 0 ,
#endif /* INTERNAL_MEMORY_ONLY == 0 */
"D" , dgDump , 0 ,
"DM" , dgDumpMode , 0 ,
"M" , dgMemEdit_byte , 0 ,
"MW" , dgMemEdit_word , 0 ,
"ML" , dgMemEdit_long , 0 ,
"MX" , dgMemEdit_longlong , 0 ,
"F" , dgFill_byte , 0 ,
"FL" , dgFill_long , 0 ,
"FX" , dgFill_longlong , 0 ,
TBL_END , 0 , 0
};
/********************************************************/
/* RAM TABLE */
/********************************************************/
uintptr_t gUDump[3];
uintptr_t gUMem[3];
uint32_t gDumpMode;