background image

                                                 

 

  

 

 

 

 

Confidential Information 

2180 Fortune Drive, San Jose CA95131, USA

 (408)944-0800 

 

http://www.micrel.com

 

- Page 6 - 

 2008 Micrel Semiconductor

 

 

Micrel KSZ8692 SPI Controller 

Programmer’s Guide 

 

spi_ks_chipsel: spi_ctr 1FFFE900:40000000 
spi_read_byte: regOffset=0011, length=1 
spi_issue_cmd: spi_tdr 1FFFE908:00030000 
spi_read_byte: spi_tdr 1FFFE908:00110000 
spi_read_byte: spi_tdr 1FFFE908:0000a001 
spi_read_byte: spi_rdr 1FFFE904:00220000 
spi_ks_chipsel: spi_ctr 1FFFE900:00000000 
22 
 

  Read 1-byte data from dress offset 0x12 

 

boot > sspi 0 8 0312 
spi_reset: spi_ctr 1FFFE900:80000000 
spi_init: spi_csr 1FFFE91C:98880101 
spi_ks_chipsel: spi_ctr 1FFFE900:40000000 
spi_read_byte: regOffset=0012, length=1 
spi_issue_cmd: spi_tdr 1FFFE908:00030000 
spi_read_byte: spi_tdr 1FFFE908:00120000 
spi_read_byte: spi_tdr 1FFFE908:0000a001 
spi_read_byte: spi_rdr 1FFFE904:00330000 
spi_ks_chipsel: spi_ctr 1FFFE900:00000000 
33 
 

  Read 1-byte data from dress offset 0x13 

 

boot > sspi 0 8 0313 
spi_reset: spi_ctr 1FFFE900:80000000 
spi_init: spi_csr 1FFFE91C:98880101 
spi_ks_chipsel: spi_ctr 1FFFE900:40000000 
spi_read_byte: regOffset=0013, length=1 
spi_issue_cmd: spi_tdr 1FFFE908:00030000 
spi_read_byte: spi_tdr 1FFFE908:00130000 
spi_read_byte: spi_tdr 1FFFE908:0000a001 
spi_read_byte: spi_rdr 1FFFE904:00440000 
spi_ks_chipsel: spi_ctr 1FFFE900:00000000 
44 
 

2.2  Read/Write 4-byte From SPI device  

 

  Write 4-byte data ‘0x12345678’ to address offset 0x20 

 

boot > sspi 0 32 022012345678 
spi_reset: spi_ctr 1FFFE900:80000000 

Summary of Contents for KSZ8692

Page 1: ...180 Fortune Drive San Jose CA95131 USA 408 944 0800 http www micrel com Page 1 2008 Micrel Semiconductor Micrel KSZ8692 SPI Controller Programmer s Guide Micrel KSZ8692 SPI Controller Programmer s Gui...

Page 2: ...icrel Semiconductor Micrel KSZ8692 SPI Controller Programmer s Guide Table of Contents 1 Overview 3 2 Atmel AT25160A EEPROM 4 2 1 Read Write 1 byte From SPI device 4 2 2 Read Write 4 byte From SPI dev...

Page 3: ...programming sequences for the KSZ8692 SPI controller when Linux u boot SPI driver performs read write data from to SPI device The first SPI device is an Atmel AT25160A memory EEPROM which uses 2 byte...

Page 4: ...80000000 spi_init spi_csr 1FFFE91C 98880101 spi_ks_chipsel spi_ctr 1FFFE900 40000000 spi_write_byte regOffset 0010 length 1 write_enable spi_tdr 1FFFE908 00068000 spi_issue_cmd spi_tdr 1FFFE908 000200...

Page 5: ..._csr 1FFFE91C 98880101 spi_ks_chipsel spi_ctr 1FFFE900 40000000 spi_write_byte regOffset 0013 length 1 write_enable spi_tdr 1FFFE908 00068000 spi_issue_cmd spi_tdr 1FFFE908 00020000 spi_write_byte spi...

Page 6: ...900 40000000 spi_read_byte regOffset 0012 length 1 spi_issue_cmd spi_tdr 1FFFE908 00030000 spi_read_byte spi_tdr 1FFFE908 00120000 spi_read_byte spi_tdr 1FFFE908 0000a001 spi_read_byte spi_rdr 1FFFE90...

Page 7: ..._write_byte spi_tdr 1FFFE908 00340000 spi_write_byte spi_tdr 1FFFE908 00560000 spi_write_byte spi_tdr 1FFFE908 00788000 spi_ks_chipsel spi_ctr 1FFFE900 00000000 Read 4 byte data from dress offset 0x20...

Page 8: ...1FFFE900 80000000 spi_init spi_csr 1FFFE91C 18880101 spi_ks_chipsel spi_ctr 1FFFE900 40000000 spi_write_word regOffset 68 length 1 spi_write_word spi_tdr 1FFFE908 02680800 spi_write_word spi_tdr 1FFFE...

Page 9: ...FE904 34340000 spi_ks_chipsel spi_ctr 1FFFE900 00000000 34 3 2 Read Write 2 byte From SPI device Write 2 byte data 0x5678 to address offset 0x6A boot sspi 0 16 026a5678 spi_reset spi_ctr 1FFFE900 8000...

Page 10: ...ller Programmer s Guide Read 2 byte data from dress offset 0x0 boot sspi 0 16 0300 spi_reset spi_ctr 1FFFE900 80000000 spi_init spi_csr 1FFFE91C 18880101 spi_ks_chipsel spi_ctr 1FFFE900 40000000 spi_r...

Reviews: