Confidential Information
2180 Fortune Drive, San Jose CA95131, USA
(408)944-0800
- 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