ICH10的規格書可以到以下的網址下載
我們應該只要讀一讀SPI的部分就可以啦
不過這個datasheet實在是太慘無人道了
要研讀很久很久
才能寫code
寫BIOS的code真的不是人幹的! 是神!
說真的變形蟲實在沒能力寫CODE
經過朋友指點告知可以先開到DOS在用AMI的RU來驗證
步驟如下
有興趣歡迎參考
照著步驟發應該就可以由86cmd送出訊息了
;; SAMEDISK suggestion for Intel ICH
;; send out SPI 86H command for debug
;; Verified on ICH10
;; using OPMENU 6 (can be anyone)
;; Flat address= FED1F800H
;; SPIBAR= 3800H
spi86cmd(display_H, display_L)
backup data 380AH, 3809H ; FADDR Address
backup data 389EH ; OPMENU command 6
backup data 3897H ; OPTYPE
backup data 3891H, 3892H, 3893H ; SSFCTL
write display_H -> 380AH ; display MSB 8bits
write display_L -> 3809H ; display LSB 8bits
write 0x86H -> 389EH ; 86 command
write '1' -> 3897H(bit5) ; OPTYPE
write '0' -> 3897H(bit4) ; Address required; Read cycle type
write 0x00H -> 3893H ; actually don't care
write 0x00H -> 3892H ; actually don't care
write 0x62H -> 3891H ; COP=6 in OPMENU
; ACS=0 (Atomic Cycle Sequence)
; SCGO (SPI Cycle Go)
restore data 3891H, 3892H, 3893H
restore data 3897H
restore data 389EH
restore 380AH, 3809H