; bdiGDB configuration file for Mellanox SwitchX-2 AMCC 460EX (Dingo) [INIT] WTLB 0xFF000075 0x4FF0003F ; Boot space 16 MB (entire NOR flash) WTLB 0x80000055 0x4000003F ; SRAM and OCM space 1 MB (256 KB L2 + 64 KB OCM usable) WDCR 0x12 0x10 ; Select EBC0_B0AP WDCR 0x13 0x10055E00 ; B0AP: Flash (manual page 872: 1 00000000 0 10 10 10 11 11 000 0 0 0 0 00000) WDCR 0x12 0x00 ; Select EBC0_B0CR WDCR 0x13 0xFF09A000 ; B0CR: 16 MB, 16 Bit at 0xFF000000 (manual page 869: 111111110000 100 11 01 0000000000000) WDCR 0x030 0x00000008 ; Disable L2 cache, enable SRAM R/W access WDCR 0x020 0x00000984 ; Base address, size 64 KB, R/W access WDCR 0x021 0x00010984 ; Base address, size 64 KB, R/W access WDCR 0x022 0x00020984 ; Base address, size 64 KB, R/W access WDCR 0x023 0x00030984 ; Base address, size 64 KB, R/W access WDCR 0x02A 0x00000000 ; Disable parity checking WDCR 0x0B0 0x00040984 ; Base address, size 64 KB, R/W access WM32 0x80000000 0x48000000 ; Write opcode "b $pc" to SRAM WREG PC 0x80000000 ; Set PC to this infinite loop WM16 0xFFFA0000 0x0060 ; Flash powers up with all sectors locked, unlock U-Boot sectors WM16 0xFFFA0000 0x00D0 WM16 0xFFFC0000 0x0060 WM16 0xFFFC0000 0x00D0 WM16 0xFFFE0000 0x0060 WM16 0xFFFE0000 0x00D0 WM16 0xFFFE8000 0x0060 WM16 0xFFFE8000 0x00D0 WM16 0xFFFF0000 0x0060 WM16 0xFFFF0000 0x00D0 WM16 0xFFFF8000 0x0060 WM16 0xFFFF8000 0x00D0 WM16 0xFFFA0000 0xFFFF ; Select read mode [TARGET] JTAGCLOCK 0 ; BDI2000 16.6 MHz JTAG clock CPUTYPE 440 FPU ; Target CPU type WORKSPACE 0x80040000 ; Workspace in OCM to dump FP registers WAKEUP 500 ; Wakeup time after reset BREAKMODE HARD ; Hardware breakpoint STEPMODE HWBP ; Hardware breakpoints [HOST] IP 192.168.128.100 ; TFTP server address DUMP /mlnx460ex/dump.bin PROMPT 460EX> [FLASH] FILE /mlnx460ex/uboot.bin ; File on tftp server CHIPTYPE STRATAX16 ; SX6012 uses a JS28F128P33TF70 CHIPSIZE 0x1000000 ; Flash size 16 MB @ 0xFF000000 BUSWIDTH 16 ; Flash memory bus width in bits WORKSPACE 0x80040100 ; Workspace in OCM for fast programming algorithm FORMAT BIN 0xFFFA0000 ; U-Boot file format is binary ERASE 0xFFFA0000 ; Erase top-most 128 + 128 + 32 + 32 + 32 + 32 KB ERASE 0xFFFC0000 ERASE 0xFFFE0000 ERASE 0xFFFE8000 ERASE 0xFFFF0000 ERASE 0xFFFF8000 [REGS] FILE /mlnx460ex/reg460ex.def IDCR1 0x010 0x011 ; SDRAM0_CFGADDR, SDRAM0_CFGDATA IDCR2 0x012 0x013 ; EBC0_CFGADDR, EBC0_CFGDATA IDCR3 0x00C 0x00D ; CPR0_CFGADDR, CPR0_CFGDATA IDCR4 0x00E 0x00F ; SDR0_CFGADDR, SDR0_CFGDATA