@@ -308,60 +308,6 @@ void uart_init(void)
308308}
309309#endif
310310
311- static uintptr_t ext_flash_addr_calc (uintptr_t address )
312- {
313- /* offset external flash addresses by the update partition address */
314- if (address < WOLFBOOT_PARTITION_UPDATE_ADDRESS ) {
315- return 0 ;
316- }
317- address -= WOLFBOOT_PARTITION_UPDATE_ADDRESS ;
318- return address ;
319- }
320-
321- int ext_flash_write (uintptr_t address , const uint8_t * data , int len )
322- {
323- #ifdef DEBUG_FLASH
324- uintptr_t addr = ext_flash_addr_calc (address );
325- wolfBoot_printf ("Ext Write: Len %d, Addr 0x%" PRIxPTR " (off 0x%" PRIxPTR
326- ") -> %p\n" ,
327- len , address , addr , data );
328- #endif
329- return 0 ;
330- }
331-
332- int ext_flash_read (uintptr_t address , uint8_t * data , int len )
333- {
334- #ifdef DEBUG_FLASH
335- uintptr_t addr = ext_flash_addr_calc (address );
336- wolfBoot_printf ("Ext Read: Len %d, Addr 0x%" PRIxPTR " (off 0x%" PRIxPTR
337- ") -> %p\n" ,
338- len , address , addr , data );
339- #endif
340- memset (data , FLASH_BYTE_ERASED , len );
341- return len ;
342- }
343-
344- int ext_flash_erase (uintptr_t address , int len )
345- {
346- #ifdef DEBUG_FLASH
347- uintptr_t addr = ext_flash_addr_calc (address );
348- wolfBoot_printf ("Ext Erase: Len %d, Addr 0x%" PRIxPTR " (off 0x%" PRIxPTR
349- ")\n" ,
350- len , address , addr );
351- #endif
352- return 0 ;
353- }
354-
355- void ext_flash_lock (void )
356- {
357- /* no op */
358- }
359-
360- void ext_flash_unlock (void )
361- {
362- /* no op */
363- }
364-
365311static void high_freq_clock_init (void )
366312{
367313 /* Start the HFXO and wait until it is running */
0 commit comments