Skip to content

Commit ca05284

Browse files
committed
Refactor eMMC/SD code to reduce duplicate code. Moved SDHCI driver into generic module that can be used by other platforms.
1 parent 879e7ed commit ca05284

File tree

9 files changed

+2398
-2767
lines changed

9 files changed

+2398
-2767
lines changed

config/examples/polarfire_mpfs250.config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ NO_ARM_ASM?=0
3131
# Optional: Use smaller SHA512
3232
#CFLAGS_EXTRA+=-DUSE_SLOW_SHA512
3333

34-
# SDCard (default)
35-
# Optionally use eMMC
36-
#CFLAGS+=-DUSE_EMMC
34+
# SDCard or eMMC support via SDHCI driver
35+
DISK_SDCARD?=1
36+
DISK_EMMC?=0
3737

3838
# DDR Address for wolfBoot to start from
3939
WOLFBOOT_ORIGIN?=0x80000000

docs/Targets.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,8 +1193,6 @@ Benchmark complete
11931193

11941194
### PolarFire TODO
11951195

1196-
* Add eMMC/SD features:
1197-
- eMMC support (not just SD)
11981196
* Add support for reading serial number and modifying ethernet MAC in device tree
11991197
* Add support for QSPI NOR flash
12001198
* Add support for full HSS replacement using wolfboot

0 commit comments

Comments
 (0)