WFU

[ 精選文章 ]

自行車 入門 Escape 3 , Snap 21 , Revel

最近周末想運動 , 平日想通勤 , 想買台自行車 , 把自己找的資料跟大家分享 , 如果你是玩家級的 就不用看了 這是給跟我一樣的新新新手 參考的 騎車半年後的補充: 如果你有把握你是真的有時間有興趣會一直騎,建議還是存點錢買好一點的彎把公路車, 或是可以考慮買2手的自...

2016年12月14日 星期三

Read DDR4 SPD over 256 byte (switch page)

They have 2 pages of 256 bytes each, and you need a dummy write to a special predefined address 0x6E to switch all SPD chips to page 1 (where your byte 320 is located), and than write to 0x6C switch them back to page 0 (to prevent an SPD read failure during next boot). Read this datasheet on page 12 for more info.

//Dummy cmd to switch
offset 00 write 0xFE to Clear status
offset 04 write 0x6E to switch to page1 (bit 0  : Read/Write , 0:write , 1:Read ))
offset 02 write 0x48 Byte Read (Host Control Register) bit 4:2 => 010 => byte Data , bit 6 : Start
offset00 should be 44 or 42



//Normal read SPD data from page1 - index 40h
offset 00 下 0xFF Clear status
offset 04 下 0xA1 ( bit 7-1 : Slave Address , bit 0  : R/w 0:write , 1:Read )
offset 03 下 0x40 (Host Command Register) index
offset 02 下 0x48 (Host Control Register) bit 4:2 => 010 => byte Data , bit 6 : Start
offset00 should be 0x42 success

42h= 01000010b
     - ->INTR(bit 1)
     |->INUSE_STS(bit 6)

INUSE bit (bit 6)

Bit 7 (DS) default : 0

  • 0 = After a full PCI reset, a read to this bit returns a 0. 

Bit 6 (INUSE_STS) default : 0

  • 0 = Interrupt or SMI# was not generated by SMBALERT#. This bit is only cleared by software writing a 1 to the bit position or by RSMRST# going low. 

 Bit 5 (SMBALERT_STS) default : 0

  •  0 = Cleared by writing a 1 to the bit position. 

 Bit 4 (FAILED) default : 0

  •  0 = Cleared by writing a 1 to the bit position. 


 Bit 3 (BUS_ERR) default : 0

  • 0 = Cleared by writing a 1 to the bit position. 

 Bit 2 (DEV_ERR) default : 0

  • 0 = Software resets this bit by writing a 1 to this location. 

 Bit 1 (INTR) default : 0

  • 0 = Software resets this bit by writing 1 to this location.

Bit 0 (HOST_BUSY) default  0


1 則留言:

  1. 請問, 有沒有DDR5 SPD 切 page的資料

    回覆刪除