@@ -290,20 +290,26 @@ int RAMFUNCTION hal_flash_erase(uint32_t address, int len)
290290}
291291
292292#ifdef EXT_FLASH
293- /* External flash support */
293+ /* External flash support
294+ *
295+ * Note: These are intentional stubs. PolarFire SoC MPFS250 uses eMMC/SD card
296+ * for firmware storage and updates, not external SPI/QSPI flash. The EXT_FLASH
297+ * define may be set in some configurations, but actual storage operations are
298+ * handled by the SDHCI driver and disk partition layer.
299+ */
294300void ext_flash_lock (void )
295301{
296- /* TODO: Lock external flash */
302+ /* Stub: not used - eMMC/SD controller handles access control */
297303}
298304
299305void ext_flash_unlock (void )
300306{
301- /* TODO: Unlock external flash */
307+ /* Stub: not used - eMMC/SD controller handles access control */
302308}
303309
304310int ext_flash_write (uintptr_t address , const uint8_t * data , int len )
305311{
306- /* TODO: Write to external flash */
312+ /* Stub: not used - updates written via SDHCI/GPT partitions */
307313 (void )address ;
308314 (void )data ;
309315 (void )len ;
@@ -312,7 +318,7 @@ int ext_flash_write(uintptr_t address, const uint8_t *data, int len)
312318
313319int ext_flash_read (uintptr_t address , uint8_t * data , int len )
314320{
315- /* TODO: Read from external flash */
321+ /* Stub: not used - firmware loaded via SDHCI/GPT partitions */
316322 (void )address ;
317323 (void )data ;
318324 (void )len ;
@@ -321,7 +327,7 @@ int ext_flash_read(uintptr_t address, uint8_t *data, int len)
321327
322328int ext_flash_erase (uintptr_t address , int len )
323329{
324- /* TODO: Erase external flash sectors */
330+ /* Stub: not used - eMMC/SD uses block-level operations */
325331 (void )address ;
326332 (void )len ;
327333 return 0 ;
0 commit comments