1 ;============================================================================
2 ;## SPDX-License-Identifier: GPL-2.0-only
3 ;============================================================================
8 ; Debug coreboot trogdor front-end
9 ;============================================================================
11 ;============================================================================
12 ; CMM script variables
13 ;============================================================================
17 GLOBAL &BBEntryAddr // Bootblock Entry
18 GLOBAL &BBExitAddr // Bootblock Exit to Xbl-Sec
19 GLOBAL &VEREntryAddr // Verstage Entry
20 GLOBAL &ROMEntryAddr // Romstage Entry
21 GLOBAL &QCLEntryAddr // QCLstage Entry
22 GLOBAL &RAMEntryAddr // Ramstage Entry
23 GLOBAL &BL31EntryAddr // BL31 Entry
24 GLOBAL &DCEntryAddr // Depthcharge Entry
26 GLOBAL &PreRamConsoleAddr
27 GLOBAL &RamConsoleAddr
28 GLOBAL &PreRamCbfsCache
34 GLOBAL &PostRamCbfsCache
38 ;============================================================================
40 ;---------------------------------------------------
42 ;---------------------------------------------------
43 ENTRY &ImageName &RegAddress
45 // Later these can be parameterized
46 &TargetPkg="trogdorPkg"
48 // These settings come from .../src/soc/qualcomm/sc7180/include/soc/memlayout.ld
49 &BBEntryAddr=0x14815000
50 &VEREntryAddr=0x14680000
51 &ROMEntryAddr=0x14680000
52 &QCLEntryAddr=0x1486c950
53 &RAMEntryAddr=0xA0800000
54 &BL31EntryAddr=0x80C00000
55 &DCEntryAddr=0xF1000000
56 &KernelEntryAddr=0xD0000000
58 &PreRamConsoleAddr=0x14830800
59 &VBoot2Work=0x1484B000
63 &PreRamCbfsCache=0x1481F000
65 &PostRamCbfsCache=0x9F800000
66 // End of memlayout.ld settings
68 // Common commands irrespective of &Mode
73 // position at top of coreboot tree
74 // find depth count for source loading
79 ;---------------------------------------------------
81 ;---------------------------------------------------
84 area.create CB_Logs 1000. 8192.
89 PRINT %String "Source Path: &srcpath"
91 symbol.sourcepath.setbasedir &srcpath\src
93 // Make parsing simple, upper-case parameters
94 &ImageName=STRING.UPR("&ImageName")
95 if (STR.CP("&ImageName","0X*"))
97 &RegAddress=&ImageName
100 &RegAddress=STRING.UPR("&RegAddress")
102 PRINT %String "ImageName: &ImageName"
103 PRINT %String "RegAddress: &RegAddress"
110 if (STR.CP("&RegAddress","0X*"))
111 D.S EZAXI:&RegAddress %LE %Long 0x80000000
116 DO debug_cb_common.cmm &TargetPkg &srcpath &xblsrcpath &ImageName