Skip to content

Commit 3e71ec1

Browse files
committed
Testing and peer review fixes
1 parent df9a508 commit 3e71ec1

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

hal/zynq.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@
398398
#define QSPI_REF_CTRL_DIVISOR0(n) (((n) << 8) & QSPI_REF_CTRL_DIVISOR0_MASK)
399399

400400
#define QSPI_REF_CTRL_DIVISOR1_MASK (0x3F << 16)
401-
#define QSPI_REF_CTRL_DIVISOR1(n) (((n) << 16) & QSPI_REF_CTRL_DIVISOR0_MASK)
401+
#define QSPI_REF_CTRL_DIVISOR1(n) (((n) << 16) & QSPI_REF_CTRL_DIVISOR1_MASK)
402402

403403
/* SD/SDHCI Controller Base Addresses */
404404
#define ZYNQMP_SD0_BASE 0xFF160000UL

tools/scripts/zynqmp_sd_boot.bif

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Boot BIF for wolfBoot ZynqMP SD Card Boot
2+
// FSBL -> PMUFW -> BL31 (EL3) -> wolfBoot (EL2)
3+
// wolfBoot loads firmware from MBR partitions on SD card
4+
//
5+
// Usage:
6+
// bootgen -arch zynqmp -image zynqmp_sd_boot.bif -w -o BOOT.BIN
7+
//
8+
// Required files (copy to same directory):
9+
// zynqmp_fsbl.elf - First Stage Boot Loader
10+
// pmufw.elf - Platform Management Unit firmware
11+
// bl31.elf - ARM Trusted Firmware (EL3)
12+
// wolfboot.elf - wolfBoot bootloader
13+
//
14+
// Optional:
15+
// system.bit - PL bitstream (uncomment line below)
16+
the_ROM_image:
17+
{
18+
[bootloader, destination_cpu=a53-0] zynqmp_fsbl.elf
19+
[pmufw_image] pmufw.elf
20+
// [destination_device=pl] download.bit
21+
[destination_cpu=a53-0, exception_level=el-3, trustzone] bl31.elf
22+
[destination_cpu=a53-0, exception_level=el-2] wolfboot.elf
23+
}

0 commit comments

Comments
 (0)