Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 28044

Re: How to add InitCode into Uboot?

$
0
0

Finally,I find the real reason for my SPI0 work slow mode is:

 

in arch/blackfin/cpu/initcode.c program_early_devices()function.


//#ifdef SPI_BAUD //delete by Evan, for set spi0 baudrate high speed mode.

          if (CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_SPI_MASTER) {

                    serial_putc('h');

                    if (BOOTROM_SUPPORTS_SPI_FAST_READ && CONFIG_SPI_BAUD_INITBLOCK < 4)

                              bs->dFlags |= BFLAG_FASTREAD;

                    bfin_write_SPI_BAUD(CONFIG_SPI_BAUD_INITBLOCK);

                    serial_putc('i');

          }

//#endif


Viewing all articles
Browse latest Browse all 28044

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>