Micrel KSZ8692 Programmer's Manual

Spi controller

Advertisement

Quick Links

Micrel KSZ8692 SPI Controller
Programmer's Guide
Micrel KSZ8692 SPI Controller Programmer's Guide
Version 1.0
07/18/2008
Confidential Information
2180 Fortune Drive, San Jose CA95131, USA (408)944-0800 
http://www.micrel.com
- Page 1 -
 2008 Micrel Semiconductor

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the KSZ8692 and is the answer not in the manual?

Questions and answers

Summary of Contents for Micrel KSZ8692

  • Page 1 Micrel KSZ8692 SPI Controller Programmer’s Guide Micrel KSZ8692 SPI Controller Programmer’s Guide Version 1.0 07/18/2008 Confidential Information 2180 Fortune Drive, San Jose CA95131, USA (408)944-0800  http://www.micrel.com - Page 1 -  2008 Micrel Semiconductor...
  • Page 2: Table Of Contents

    Micrel KSZ8692 SPI Controller Programmer’s Guide Table of Contents Overview ..........................3 Atmel AT25160A EEPROM ....................4 Read/Write 1-byte From SPI device ................4 Read/Write 4-byte From SPI device ................6 Micrel KS8995M Switch ......................8 Read/Write 1-byte From SPI device ................8 Read/Write 2-byte From SPI device ................
  • Page 3: Overview

    The first SPI device is an Atmel AT25160A memory (EEPROM) which uses 2 byte address offset and 8-bit data per transfer. The second SPI device is a Micrel KS8995M switch which uses 1 byte address offset and 16-bit data per transfer.
  • Page 4: Atmel At25160A Eeprom

    Micrel KSZ8692 SPI Controller Programmer’s Guide 2 Atmel AT25160A EEPROM The AT25160A memory (EEPROM) can be read/write through the SPI interface. It is organized as 2048 words of 8 bits each with 2-byte address (A15-A0) offset. The following examples shows how to read/write data from/to EPPROM address offset (2-byte) under the Linux U-boot 1.1.4 “sspi”...
  • Page 5 Micrel KSZ8692 SPI Controller Programmer’s Guide spi_reset: spi_ctr 1FFFE900:80000000 spi_init: spi_csr 1FFFE91C:98880101 spi_ks_chipsel: spi_ctr 1FFFE900:40000000 spi_write_byte: regOffset=0012, length=1 write_enable: spi_tdr 1FFFE908:00068000 spi_issue_cmd: spi_tdr 1FFFE908:00020000 spi_write_byte: spi_tdr 1FFFE908:00120000 spi_write_byte: spi_tdr 1FFFE908:00000000 spi_write_byte: spi_tdr 1FFFE908:00338000 spi_ks_chipsel: spi_ctr 1FFFE900:00000000  Write 1-byte data ‘0x44’ to address offset 0x13 boot >...
  • Page 6: Read/Write 4-Byte From Spi Device

    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  Read 1-byte data from dress offset 0x12 boot > sspi 0 8 0312...
  • Page 7 Micrel KSZ8692 SPI Controller Programmer’s Guide spi_init: spi_csr 1FFFE91C:98880101 spi_ks_chipsel: spi_ctr 1FFFE900:40000000 spi_write_byte: regOffset=0020, length=4 write_enable: spi_tdr 1FFFE908:00068000 spi_issue_cmd: spi_tdr 1FFFE908:00020000 spi_write_byte: spi_tdr 1FFFE908:00200000 spi_write_byte: spi_tdr 1FFFE908:00000000 spi_write_byte: spi_tdr 1FFFE908:00120000 spi_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 ...
  • Page 8: Micrel Ks8995M Switch

    Micrel KSZ8692 SPI Controller Programmer’s Guide 3 Micrel KS8995M Switch The Micrel KS8995M switch can be configured through the SPI interface . It uses 1 byte of address offset and 16-bit data per transfer. The following examples shows how to read/write data from/to KS8995M switch register offset (1-byte) under U-boot 1.1.4 “sspi”...
  • Page 9: Read/Write 2-Byte From Spi Device

    Micrel KSZ8692 SPI Controller Programmer’s Guide spi_read_word: spi_tdr 1FFFE908:0368a801 spi_read_word: spi_rdr 1FFFE904:12340000 spi_ks_chipsel: spi_ctr 1FFFE900:00000000  Read 1-byte data from dress offset 0x69 boot > sspi 0 8 0369 spi_reset: spi_ctr 1FFFE900:80000000 spi_init: spi_csr 1FFFE91C:18880101 spi_ks_chipsel: spi_ctr 1FFFE900:40000000 spi_read_word: regOffset=69, length=1...
  • Page 10 Micrel KSZ8692 SPI Controller 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_read_word: regOffset=00, length=2 spi_read_word: spi_tdr 1FFFE908:0300a802 spi_read_word: spi_rdr 1FFFE904:95060000 spi_ks_chipsel: spi_ctr 1FFFE900:00000000...

Table of Contents