<div>Hi,</div>
<div> </div>
<div>Thanks for the guidance.</div>
<div> </div>
<div>Not sure if Is there any more useful documentation beside the datasheet of the ICH9 that i can refer to to read more about SPI chip programming?</div>
<div> </div>
<div>Thanks.<br><br></div>
<div class="gmail_quote">On Fri, May 8, 2009 at 12:03 AM, FENG Yu Ning <span dir="ltr"><<a href="mailto:fengyuning1984@gmail.com">fengyuning1984@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">Stan Yong wrote:<br>> i'm thinking of modifying the FRAP register value in order to enable write<br>> and read permission to all the region.<br><br></div>(I don't like giving discouraging information. I have given much.)<br>
<br>I am afraid that it could not be done if datasheet is correct.<br><br>As you may have read in the datasheet, FRAP in the chipset is a<br>shadowing register, it is read-only. The original data is in region<br>0(flash descriptor) of the flash chip, being read during chipset<br>
initialization. Since region 0 is also write-protected, flashrom<br>cannot change it. That is a cycle.<br>
<div class="im"><br>> How to exactly use flashrom to bring the SPI into descriptor mode so that i<br>> can do a read and write to FRAP?<br><br></div>I have some words here because I think you might misunderstand something.<br>
<br>The SPI controller sets itself in descriptor mode when it sees some<br>mark in the flash chip during initialization. It does not need<br>flashrom to bring it into d-mode. And as a memory-mapped register,<br>FRAP can be read regardless of the mode it is in.<br>
<font color="#888888"><br>yu ning<br></font></blockquote></div><br>