File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 156156
157157/* IOP System-level Control */
158158#define IOU_SLCR_BASSE 0xFF180000
159- #define IOU_TAPDLY_BYPASS (*((volatile uint32_t*)(IOU_SLCR_BASSE + 390 )))
159+ #define IOU_TAPDLY_BYPASS (*((volatile uint32_t*)(IOU_SLCR_BASSE + 0x390 )))
160160#define IOU_TAPDLY_BYPASS_LQSPI_RX (1UL << 2) /* LQSPI Tap Delay Enable on Rx Clock signal. 0: enable. 1: disable (bypass tap delay). */
161161
162162
@@ -759,6 +759,7 @@ void qspi_init(uint32_t cpu_clock, uint32_t flash_freq)
759759 GQSPI_CFG = reg_cfg ;
760760
761761 /* use tap delay bypass < 40MHz SPI clock */
762+ IOU_TAPDLY_BYPASS |= IOU_TAPDLY_BYPASS_LQSPI_RX ;
762763 GQSPI_LPBK_DLY_ADJ = 0 ;
763764 QSPI_DATA_DLY_ADJ = 0 ;
764765
@@ -888,7 +889,8 @@ void hal_init(void)
888889 printf ("\nwolfBoot Secure Boot\n" );
889890#endif
890891
891- asm volatile ("msr cntfrq_el0, %0" : : "r" (cpu_freq ) : "memory" );
892+ /* This is only allowed for EL-3 */
893+ //asm volatile("msr cntfrq_el0, %0" : : "r" (cpu_freq) : "memory");
892894
893895 zynq_init (cpu_freq );
894896}
You can’t perform that action at this time.
0 commit comments