[prev in list] [next in list] [prev in thread] [next in thread] 

List:       flashrom
Subject:    [flashrom] Re: adding part #
From:       Vlim <vlim () gigadevice ! com>
Date:       2024-03-30 22:24:27
Message-ID: TY0PR06MB5658008F753C9A6D14755082BB392 () TY0PR06MB5658 ! apcprd06 ! prod ! outlook ! com
[Download RAW message or body]

[Attachment #2 (text/plain)]

Thanks.

I believe there is a limit for total_size of 32768. When I increase it to 65536, I am \
getting test error. The compilation did go through.

.total_size = 32768,

Regards,

Victor



________________________________
From: Nikolai Artemiev <nartemiev@google.com>
Sent: Tuesday, March 26, 2024 18:54
To: Anastasia Klimchuk <aklm@chromium.org>
Cc: Vlim <vlim@gigadevice.com>; flashrom@flashrom.org <flashrom@flashrom.org>; Peter \
                Marheine <pmarheine@chromium.org>
Subject: Re: [flashrom] Re: adding part #

You don't often get email from nartemiev@google.com. Learn why this is \
important<https://aka.ms/LearnAboutSenderIdentification> \
此为外部邮件,谨防钓鱼邮件,请注意邮件是否涉及敏感信息 \
This is an external email, beware of phishing emails. Please pay close attention to \
whether the email contains sensitive information Hi Victor,

One thing to note with the printlock and unlock functions you mentioned earlier, \
i.e.:

.printlock  = SPI_PRETTYPRINT_STATUS_REGISTER_BP4_SRWD,
.unlock     = SPI_DISABLE_BLOCKPROTECT_BP4_SRWD,

These functions basically just allow flashrom to remove memory protection before \
writing to the chip. They can (and should) be omitted if you define reg_bits and \
decode_range in the chip entry, because that will enable full writeprotect support \
for the chip.

The reason we still have unlock and printlock functions is for older chips that don't \
have reg_bits and decode_range defined.

Cheers,
Nik



On Tue, Mar 26, 2024 at 4:32 PM Anastasia Klimchuk \
<aklm@chromium.org<mailto:aklm@chromium.org>> wrote: I will try to answer to \
everything in one message, but feel free to ask more questions

> Can you point me to the file that defines the commands?

Most of them will be in include/spi.h

It is a longer way if you want to trace implementation from, for
example SPI_CHIP_READ, to the place where command is sent, but in case
you would need it:

you would need to go through the sequence of function calls, starting
from `spi_chip_read` in spi.c and then look into the programmer code
(for whichever is the programmer you are using) and see how that
programmer implements spi read and send commands. Specifically look
for `static const struct spi_master` in the programmer source code
file.

Default functions are in spi.c and spi25.c files.

> How is Dual IO and Quad IO supported here?

Currently not implemented, however it would be really great to
implement it in the future (contributions are very welcome).
We do have those aspirational comments in flashchips.c , for example
(I am just copying from some chip)

.write = SPI_CHIP_WRITE256, /* Dual I/O  (0xA2) supported */
.read = SPI_CHIP_READ, /* Fast read (0x0B), dual I/O  (0x3B) supported */

So maybe you can add similar comments for the chip definition for now.

On Tue, Mar 26, 2024 at 5:27 AM Vlim \
<vlim@gigadevice.com<mailto:vlim@gigadevice.com>> wrote:
> 
> Hi,
> 
> Can you point me to the file that defines the commands?
> Like SPI_CHIP_READ being 0x0b.
> 
> Thanks,
> 
> Victor
> 
> ________________________________
> From: Anastasia Klimchuk <aklm@chromium.org<mailto:aklm@chromium.org>>
> Sent: Thursday, March 21, 2024 23:32
> To: Vlim <vlim@gigadevice.com<mailto:vlim@gigadevice.com>>; \
> flashrom@flashrom.org<mailto:flashrom@flashrom.org> \
>                 <flashrom@flashrom.org<mailto:flashrom@flashrom.org>>
> Cc: Peter Marheine <pmarheine@chromium.org<mailto:pmarheine@chromium.org>>
> Subject: Re: [flashrom] Re: adding part #
> 
> [You don't often get email from aklm@chromium.org<mailto:aklm@chromium.org>. Learn \
> why this is important at https://aka.ms/LearnAboutSenderIdentification ] 
> 此为外部邮件,谨防钓鱼邮件,请注意邮件是否涉及敏感信息
> This is an external email, beware of phishing emails. Please pay close attention to \
> whether the email contains sensitive information 
> For these two (printlock and unlock), you need to pick the function
> which handles the highest BP bit that chip supports. In your example,
> if a chip supports bits BP0-BP4 the correct functions are those with
> BP4 in the name. So you did it all right.
> 
> If the chip supports write protection, you also need to set .reg_bits
> in chip definition. For this you need to have a look at struct
> reg_bit_map in include/flash.h, it has comments on what each bit in
> the struct means.
> 
> 
> On Fri, Mar 22, 2024 at 7:22 AM Vlim \
> <vlim@gigadevice.com<mailto:vlim@gigadevice.com>> wrote:
> > 
> > Thanks, Anastasia,
> > 
> > Can you please explain this statement,
> > 
> > .printlock  = SPI_PRETTYPRINT_STATUS_REGISTER_BP4_SRWD,
> > .unlock     = SPI_DISABLE_BLOCKPROTECT_BP4_SRWD,
> > 
> > Looks like this is to support memory array protection. But it needs BP0-BP4.
> > Do I need to specify BP0 to BP3 as well?
> > Or I specify the setting when I initiate the flashrom programming command?
> > 
> > Regards,
> > 
> > Victor
> > 
> > ________________________________
> > From: Anastasia Klimchuk <aklm@chromium.org<mailto:aklm@chromium.org>>
> > Sent: Thursday, March 21, 2024 05:32
> > To: Vlim <vlim@gigadevice.com<mailto:vlim@gigadevice.com>>; \
> > flashrom@flashrom.org<mailto:flashrom@flashrom.org> \
> >                 <flashrom@flashrom.org<mailto:flashrom@flashrom.org>>
> > Cc: Peter Marheine <pmarheine@chromium.org<mailto:pmarheine@chromium.org>>
> > Subject: [flashrom] Re: adding part #
> > 
> > You don't often get email from aklm@chromium.org<mailto:aklm@chromium.org>. Learn \
> > why this is important \
> > 此为外部邮件,谨防钓鱼邮件,请注意邮件是否涉及敏感信息 \
> > This is an external email, beware of phishing emails. Please pay close attention \
> > to whether the email contains sensitive information Hello Victor,
> > 
> > Various feature bits are defined as macros in include/flash.h , some of them have \
> > comments explaining what they do. If the feature name is not descriptive, and \
> > there is no comment, but you think you might need this feature: feel free to ask. \
> > I would try to add comments later. 
> > SPI_DISABLE_BLOCKPROTECT_BP4_SRWD and other unlock functions as in \
> > spi25_statusreg.c. Those functions have comments, hopefully this can help! 
> > On Thu, Mar 21, 2024 at 2:48 PM Vlim \
> > <vlim@gigadevice.com<mailto:vlim@gigadevice.com>> wrote: 
> > Thanks, Peter,
> > 
> > Where can I find the definition of terms like,
> > 
> > .feature_bits     = FEATURE_WRSR_WREN | FEATURE_OTP | \
> > FEATURE_WRSR_EXT2, SPI_DISABLE_BLOCKPROTECT_BP4_SRWD
> > 
> > Regards,
> > 
> > Victor
> > 
> > 
> > ________________________________
> > From: Peter Marheine <pmarheine@chromium.org<mailto:pmarheine@chromium.org>>
> > Sent: Tuesday, March 19, 2024 15:42
> > To: Vlim <vlim@gigadevice.com<mailto:vlim@gigadevice.com>>
> > Cc: flashrom@flashrom.org<mailto:flashrom@flashrom.org> \
> >                 <flashrom@flashrom.org<mailto:flashrom@flashrom.org>>
> > Subject: Re: [flashrom] adding part #
> > 
> > You don't often get email from \
> > pmarheine@chromium.org<mailto:pmarheine@chromium.org>. Learn why this is \
> > important 此为外部邮件,谨防钓鱼邮件,请注意邮件是否涉及敏感信息
> >  This is an external email, beware of phishing emails. Please pay close attention \
> > to whether the email contains sensitive information Our "how to add a new chip" \
> > documentation should point you in the right direction: \
> > https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fflashrom.org%2Fc \
> > ontrib_howtos%2Fhow_to_add_new_chip.html&data=05%7C02%7Cvlim%40gigadevice.com%7C31 \
> > a78e769570487649c708dc4a39ec13%7Cf84ba339959c4ab19b671e43414f945e%7C0%7C0%7C638466 \
> > 859887596067%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6I \
> > k1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=tXJGDjwGt2OW%2BV6nlso1HtFvwnCP%2Bo%2FrWYI \
> > 7ESsest0%3D&reserved=0<https://flashrom.org/contrib_howtos/how_to_add_new_chip.html>
> >  
> > But feel free to ask further questions if anything there doesn't seem sufficient \
> > for your needs. 
> > On Wed, Mar 20, 2024 at 6:31 AM Vlim \
> > <vlim@gigadevice.com<mailto:vlim@gigadevice.com>> wrote: 
> > Hi, FlashRom team,
> > 
> > I am the FAE director in Gigadevice and I would like to add some part #s to the \
> > flashchip.c and flashchip.h. Can you please provide some guidance?
> > 
> > Regards,
> > 
> > Victor Lim
> > FAE Director
> > GigaDevice Semiconductor
> > 4088833856<tel:(408)%20883-3856>
> > 
> > _______________________________________________
> > flashrom mailing list -- flashrom@flashrom.org<mailto:flashrom@flashrom.org>
> > To unsubscribe send an email to \
> > flashrom-leave@flashrom.org<mailto:flashrom-leave@flashrom.org> 
> > _______________________________________________
> > flashrom mailing list -- flashrom@flashrom.org<mailto:flashrom@flashrom.org>
> > To unsubscribe send an email to \
> > flashrom-leave@flashrom.org<mailto:flashrom-leave@flashrom.org> 
> > 
> > 
> > --
> > Anastasia.
> 
> 
> 
> --
> Anastasia.



--
Anastasia.
_______________________________________________
flashrom mailing list -- flashrom@flashrom.org<mailto:flashrom@flashrom.org>
To unsubscribe send an email to \
flashrom-leave@flashrom.org<mailto:flashrom-leave@flashrom.org>


[Attachment #3 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} \
</style> </head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Arial, Helvetica, sans-serif; \
font-size: 12pt; color: rgb(0, 0, 0);"> Thanks.</div>
<div class="elementToProof" style="font-family: Arial, Helvetica, sans-serif; \
font-size: 12pt; color: rgb(0, 0, 0);"> <br>
</div>
<div class="elementToProof" style="font-family: Arial, Helvetica, sans-serif; \
font-size: 12pt; color: rgb(0, 0, 0);"> I believe there is a limit for total_size of \
32768. When I increase it to 65536, I am getting test error. The compilation did go \
through.</div> <div class="elementToProof" style="font-family: Arial, Helvetica, \
sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> <br>
</div>
<div class="elementToProof" style="font-family: Arial, Helvetica, sans-serif; \
                font-size: 12pt; color: rgb(0, 0, 0);">
.total_size = 32768,</div>
<div class="elementToProof" style="font-family: Arial, Helvetica, sans-serif; \
font-size: 12pt; color: rgb(0, 0, 0);"> <br>
</div>
<div class="elementToProof" style="font-family: Arial, Helvetica, sans-serif; \
font-size: 12pt; color: rgb(0, 0, 0);"> Regards,</div>
<div class="elementToProof" style="font-family: Arial, Helvetica, sans-serif; \
font-size: 12pt; color: rgb(0, 0, 0);"> <br>
</div>
<div class="elementToProof" style="font-family: Arial, Helvetica, sans-serif; \
font-size: 12pt; color: rgb(0, 0, 0);"> Victor</div>
<div class="elementToProof" style="font-family: Arial, Helvetica, sans-serif; \
font-size: 12pt; color: rgb(0, 0, 0);"> <br>
</div>
<div class="elementToProof" style="font-family: Arial, Helvetica, sans-serif; \
font-size: 12pt; color: rgb(0, 0, 0);"> <br>
</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, \
0, 0);"> <br>
</div>
<hr style="display: inline-block; width: 98%;">
<div style="direction: ltr; font-family: Calibri, sans-serif; font-size: 11pt; color: \
rgb(0, 0, 0);"> <b>From:</b>&nbsp;Nikolai Artemiev &lt;nartemiev@google.com&gt;<br>
<b>Sent:</b>&nbsp;Tuesday, March 26, 2024 18:54<br>
<b>To:</b>&nbsp;Anastasia Klimchuk &lt;aklm@chromium.org&gt;<br>
<b>Cc:</b>&nbsp;Vlim &lt;vlim@gigadevice.com&gt;; flashrom@flashrom.org \
&lt;flashrom@flashrom.org&gt;; Peter Marheine &lt;pmarheine@chromium.org&gt;<br> \
<b>Subject:</b>&nbsp;Re: [flashrom] Re: adding part #</div> <div style="direction: \
ltr;">&nbsp;</div> <table style="display: table; width: 100%; table-layout: fixed; \
border-collapse: collapse; border-spacing: 0px; box-sizing: border-box;" \
align="left"> <tbody>
<tr>
<td style="background-color: rgb(166, 166, 166); padding: 7px 2px; vertical-align: \
middle; width: 1px;"> </td>
<td style="text-align: left; background-color: rgb(234, 234, 234); padding: 7px 5px \
7px 15px; vertical-align: middle; color: rgb(33, 33, 33); width: 100%;"> <div \
style="text-align: left; font-family: wf_segoe-ui_normal, Segoe UI, Segoe WP, Tahoma, \
Arial, sans-serif; font-size: 12px;"> You don't often get email from \
nartemiev@google.com. <a href="https://aka.ms/LearnAboutSenderIdentification" \
data-auth="NotApplicable" id="OWAaa043c50-4962-5265-0de2-7ae2615c7a24" \
class="OWAAutoLink" data-loopstyle="linkonly"> Learn why this is important</a></div>
</td>
<td style="background-color: rgb(234, 234, 234); padding: 7px 5px; vertical-align: \
middle; color: rgb(33, 33, 33); width: 75px;" align="left"> </td>
</tr>
</tbody>
</table>
<div style="line-height: 1; font-family: 等线; font-size: 10.5pt; color: \
red;">此为外部邮件,谨防钓鱼邮件,请注意邮件是否涉及敏感信息</div>
 <div style="line-height: 1; font-family: 等线; font-size: 10.5pt; color: \
red;">This is an external email, beware of phishing emails. Please pay close \
attention to whether the email contains sensitive information</div> <div \
style="direction: ltr;">Hi Victor,</div> <div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">One thing to note with the printlock and unlock \
functions you mentioned earlier, i.e.:</div> <div style="direction: ltr;"><br>
.printlock  = SPI_PRETTYPRINT_STATUS_REGISTER_BP4_SRWD,<br>
.unlock     = SPI_DISABLE_BLOCKPROTECT_BP4_SRWD,</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">These functions basically just allow flashrom to remove \
memory protection before writing to the chip. They can (and should) be omitted if you \
define reg_bits and decode_range in the chip entry, because that will enable full \
writeprotect  support for the chip.</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">The reason we still have unlock and printlock functions \
is for older chips that don't have reg_bits and decode_range defined.</div> <div \
style="direction: ltr;"><br> </div>
<div style="direction: ltr;">Cheers,</div>
<div style="direction: ltr;">Nik</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;"><br>
</div>
<br>
<div style="direction: ltr;">On Tue, Mar 26, 2024 at 4:32 PM Anastasia Klimchuk \
&lt;<a href="mailto:aklm@chromium.org" id="OWA350b5928-57db-b169-86f5-e71cc1f1a9b0" \
class="OWAAutoLink" data-loopstyle="linkonly">aklm@chromium.org</a>&gt; wrote:</div> \
<blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left: 1px \
solid rgb(204, 204, 204);"> I will try to answer to everything in one message, but \
feel free to<br> ask more questions<br>
<br>
&gt; Can you point me to the file that defines the commands?<br>
<br>
Most of them will be in include/spi.h<br>
<br>
It is a longer way if you want to trace implementation from, for<br>
example SPI_CHIP_READ, to the place where command is sent, but in case<br>
you would need it:<br>
<br>
you would need to go through the sequence of function calls, starting<br>
from `spi_chip_read` in spi.c and then look into the programmer code<br>
(for whichever is the programmer you are using) and see how that<br>
programmer implements spi read and send commands. Specifically look<br>
for `static const struct spi_master` in the programmer source code<br>
file.<br>
<br>
Default functions are in spi.c and spi25.c files.<br>
<br>
&gt; How is Dual IO and Quad IO supported here?<br>
<br>
Currently not implemented, however it would be really great to<br>
implement it in the future (contributions are very welcome).<br>
We do have those aspirational comments in flashchips.c , for example<br>
(I am just copying from some chip)<br>
<br>
.write = SPI_CHIP_WRITE256, /* Dual I/O&nbsp; (0xA2) supported */<br>
.read = SPI_CHIP_READ, /* Fast read (0x0B), dual I/O&nbsp; (0x3B) supported */<br>
<br>
So maybe you can add similar comments for the chip definition for now.<br>
<br>
On Tue, Mar 26, 2024 at 5:27 AM Vlim &lt;<a href="mailto:vlim@gigadevice.com" \
id="OWA3e3d016b-dba1-bd27-3726-df805d3947f2" class="OWAAutoLink" \
data-loopstyle="linkonly">vlim@gigadevice.com</a>&gt; wrote:<br> &gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; Can you point me to the file that defines the commands?<br>
&gt; Like SPI_CHIP_READ being 0x0b.<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Victor<br>
&gt;<br>
&gt; ________________________________<br>
&gt; From: Anastasia Klimchuk &lt;<a href="mailto:aklm@chromium.org" \
id="OWA847b5c60-2323-db28-6eeb-370ffc7797e2" class="OWAAutoLink" \
data-loopstyle="linkonly">aklm@chromium.org</a>&gt;<br> &gt; Sent: Thursday, March \
21, 2024 23:32<br> &gt; To: Vlim &lt;<a href="mailto:vlim@gigadevice.com" \
id="OWAe65fa47c-d3ac-5eb6-7924-a3fa10fe7d37" class="OWAAutoLink" \
data-loopstyle="linkonly">vlim@gigadevice.com</a>&gt;; <a \
href="mailto:flashrom@flashrom.org" id="OWA643575d3-e45d-1942-40d2-339362c28066" \
class="OWAAutoLink" data-loopstyle="linkonly"> flashrom@flashrom.org</a>&nbsp;&lt;<a \
href="mailto:flashrom@flashrom.org" id="OWA106fa3aa-224c-457d-d19e-fe7c62c306c7" \
class="OWAAutoLink" data-loopstyle="linkonly">flashrom@flashrom.org</a>&gt;<br> &gt; \
Cc: Peter Marheine &lt;<a href="mailto:pmarheine@chromium.org" \
id="OWAe01689a9-6443-60eb-597e-565094d15dc4" class="OWAAutoLink" \
data-loopstyle="linkonly">pmarheine@chromium.org</a>&gt;<br> &gt; Subject: Re: \
[flashrom] Re: adding part #<br> &gt;<br>
&gt; [You don't often get email from <a href="mailto:aklm@chromium.org" \
id="OWA2ece3e8a-242a-8a85-2726-942d4deef4d4" class="OWAAutoLink" \
data-loopstyle="linkonly"> aklm@chromium.org</a>. Learn why this is important at <a \
href="https://aka.ms/LearnAboutSenderIdentification" \
id="OWA19b09477-731e-155f-6cb8-bc768abe0043" class="OWAAutoLink" \
data-auth="NotApplicable" data-loopstyle="linkonly"> \
https://aka.ms/LearnAboutSenderIdentification</a>&nbsp;]<br> &gt;<br>
&gt; 此为外部邮件,谨防钓鱼邮件,请注意邮件是否涉及敏感信息<br>
 &gt; This is an external email, beware of phishing emails. Please pay close \
attention to whether the email contains sensitive information<br> &gt;<br>
&gt; For these two (printlock and unlock), you need to pick the function<br>
&gt; which handles the highest BP bit that chip supports. In your example,<br>
&gt; if a chip supports bits BP0-BP4 the correct functions are those with<br>
&gt; BP4 in the name. So you did it all right.<br>
&gt;<br>
&gt; If the chip supports write protection, you also need to set .reg_bits<br>
&gt; in chip definition. For this you need to have a look at struct<br>
&gt; reg_bit_map in include/flash.h, it has comments on what each bit in<br>
&gt; the struct means.<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Mar 22, 2024 at 7:22 AM Vlim &lt;<a href="mailto:vlim@gigadevice.com" \
id="OWA5208f559-fc3f-65fe-47e4-730f8cf584a0" class="OWAAutoLink" \
data-loopstyle="linkonly">vlim@gigadevice.com</a>&gt; wrote:<br> &gt; &gt;<br>
&gt; &gt; Thanks, Anastasia,<br>
&gt; &gt;<br>
&gt; &gt; Can you please explain this statement,<br>
&gt; &gt;<br>
&gt; &gt; .printlock  = SPI_PRETTYPRINT_STATUS_REGISTER_BP4_SRWD,<br>
&gt; &gt; .unlock     = SPI_DISABLE_BLOCKPROTECT_BP4_SRWD,<br>
&gt; &gt;<br>
&gt; &gt; Looks like this is to support memory array protection. But it needs \
BP0-BP4.<br> &gt; &gt; Do I need to specify BP0 to BP3 as well?<br>
&gt; &gt; Or I specify the setting when I initiate the flashrom programming \
command?<br> &gt; &gt;<br>
&gt; &gt; Regards,<br>
&gt; &gt;<br>
&gt; &gt; Victor<br>
&gt; &gt;<br>
&gt; &gt; ________________________________<br>
&gt; &gt; From: Anastasia Klimchuk &lt;<a href="mailto:aklm@chromium.org" \
id="OWAcb4fb2d0-fa30-0e56-db51-0af652d36ded" class="OWAAutoLink" \
data-loopstyle="linkonly">aklm@chromium.org</a>&gt;<br> &gt; &gt; Sent: Thursday, \
March 21, 2024 05:32<br> &gt; &gt; To: Vlim &lt;<a href="mailto:vlim@gigadevice.com" \
id="OWA2c008b05-1aca-656b-85e1-f925590d0ddd" class="OWAAutoLink" \
data-loopstyle="linkonly">vlim@gigadevice.com</a>&gt;; <a \
href="mailto:flashrom@flashrom.org" id="OWA8aa4be92-d87a-9390-c87d-29e32a0fedbc" \
class="OWAAutoLink" data-loopstyle="linkonly"> flashrom@flashrom.org</a>&nbsp;&lt;<a \
href="mailto:flashrom@flashrom.org" id="OWAff63c207-8ea8-549b-90b2-c526d591dd3d" \
class="OWAAutoLink" data-loopstyle="linkonly">flashrom@flashrom.org</a>&gt;<br> &gt; \
&gt; Cc: Peter Marheine &lt;<a href="mailto:pmarheine@chromium.org" \
id="OWA401723d9-d120-2fd3-ffc0-57a923181008" class="OWAAutoLink" \
data-loopstyle="linkonly">pmarheine@chromium.org</a>&gt;<br> &gt; &gt; Subject: \
[flashrom] Re: adding part #<br> &gt; &gt;<br>
&gt; &gt; You don't often get email from <a href="mailto:aklm@chromium.org" \
id="OWAa4a0fe42-87f7-8b7b-5db4-9b12955c3428" class="OWAAutoLink" \
data-loopstyle="linkonly"> aklm@chromium.org</a>. Learn why this is important<br>
&gt; &gt; 此为外部邮件,谨防钓鱼邮件,请注意邮件是否涉及敏感信息<br>
 &gt; &gt; This is an external email, beware of phishing emails. Please pay close \
attention to whether the email contains sensitive information<br> &gt; &gt; Hello \
Victor,<br> &gt; &gt;<br>
&gt; &gt; Various feature bits are defined as macros in include/flash.h , some of \
them have comments explaining what they do. If the feature name is not descriptive, \
and there is no comment, but you think you might need this feature: feel free to ask. \
I would try  to add comments later.<br>
&gt; &gt;<br>
&gt; &gt; SPI_DISABLE_BLOCKPROTECT_BP4_SRWD and other unlock functions as in \
spi25_statusreg.c. Those functions have comments, hopefully this can help!<br> &gt; \
&gt;<br> &gt; &gt; On Thu, Mar 21, 2024 at 2:48 PM Vlim &lt;<a \
href="mailto:vlim@gigadevice.com" id="OWAa2ad629a-f83b-8e0e-678c-b56cae79b34c" \
class="OWAAutoLink" data-loopstyle="linkonly">vlim@gigadevice.com</a>&gt; wrote:<br> \
&gt; &gt;<br> &gt; &gt; Thanks, Peter,<br>
&gt; &gt;<br>
&gt; &gt; Where can I find the definition of terms like,<br>
&gt; &gt;<br>
&gt; &gt; .feature_bits     = FEATURE_WRSR_WREN | FEATURE_OTP | \
FEATURE_WRSR_EXT2,<br> &gt; &gt; SPI_DISABLE_BLOCKPROTECT_BP4_SRWD<br>
&gt; &gt;<br>
&gt; &gt; Regards,<br>
&gt; &gt;<br>
&gt; &gt; Victor<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ________________________________<br>
&gt; &gt; From: Peter Marheine &lt;<a href="mailto:pmarheine@chromium.org" \
id="OWAef4e35e4-9bb3-af01-4bd7-6b7236e7a7d6" class="OWAAutoLink" \
data-loopstyle="linkonly">pmarheine@chromium.org</a>&gt;<br> &gt; &gt; Sent: Tuesday, \
March 19, 2024 15:42<br> &gt; &gt; To: Vlim &lt;<a href="mailto:vlim@gigadevice.com" \
id="OWAad5bb260-7328-64a5-c7f0-ab0f07db5d55" class="OWAAutoLink" \
data-loopstyle="linkonly">vlim@gigadevice.com</a>&gt;<br> &gt; &gt; Cc: <a \
href="mailto:flashrom@flashrom.org" id="OWA48b348cc-75b9-1bb4-58ab-302a4cfcba60" \
class="OWAAutoLink" data-loopstyle="linkonly"> flashrom@flashrom.org</a>&nbsp;&lt;<a \
href="mailto:flashrom@flashrom.org" id="OWAce73fc7a-8a7e-8576-3b31-af80f4a9aaae" \
class="OWAAutoLink" data-loopstyle="linkonly">flashrom@flashrom.org</a>&gt;<br> &gt; \
&gt; Subject: Re: [flashrom] adding part #<br> &gt; &gt;<br>
&gt; &gt; You don't often get email from <a href="mailto:pmarheine@chromium.org" \
id="OWA9297f976-bb37-cdee-047b-99b0026802e9" class="OWAAutoLink" \
data-loopstyle="linkonly"> pmarheine@chromium.org</a>. Learn why this is \
important<br> &gt; &gt; \
此为外部邮件,谨防钓鱼邮件,请注意邮件是否涉及敏感信息<br> \
&gt; &gt; This is an external email, beware of phishing emails. Please pay close \
attention to whether the email contains sensitive information<br> &gt; &gt; Our \
&quot;how to add a new chip&quot; documentation should point you in the right \
direction: <a href="https://flashrom.org/contrib_howtos/how_to_add_new_chip.html" \
id="OWA77c22791-00b5-e351-0e65-44cbb06d480e" class="OWAAutoLink" \
shash="i4q1MUCq2lwlQOGK2a3A4awnQngyA10haYGKI0d7t//Rl5MZ+dMoyeQjb1FmduGJ6SzzNZYl2nr2e6K \
UecrLTGNaX9S4DPHEMGCiY3rUlTP0r3tC1+OD2pc/5lF1FNCRjAvmIxK4kEMGVzdhZ9c69KetEZFCdWcA7WPRD/ntdwY=" \
originalsrc="https://flashrom.org/contrib_howtos/how_to_add_new_chip.html" \
data-auth="Verified" data-loopstyle="linkonly"> \
https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fflashrom.org%2Fcontr \
ib_howtos%2Fhow_to_add_new_chip.html&amp;data=05%7C02%7Cvlim%40gigadevice.com%7C31a78e \
769570487649c708dc4a39ec13%7Cf84ba339959c4ab19b671e43414f945e%7C0%7C0%7C63846685988759 \
6067%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXV \
CI6Mn0%3D%7C0%7C%7C%7C&amp;sdata=tXJGDjwGt2OW%2BV6nlso1HtFvwnCP%2Bo%2FrWYI7ESsest0%3D&amp;reserved=0</a><br>
 &gt; &gt;<br>
&gt; &gt; But feel free to ask further questions if anything there doesn't seem \
sufficient for your needs.<br> &gt; &gt;<br>
&gt; &gt; On Wed, Mar 20, 2024 at 6:31 AM Vlim &lt;<a \
href="mailto:vlim@gigadevice.com" id="OWA2c239b00-3839-1f11-4367-097c3f292647" \
class="OWAAutoLink" data-loopstyle="linkonly">vlim@gigadevice.com</a>&gt; wrote:<br> \
&gt; &gt;<br> &gt; &gt; Hi, FlashRom team,<br>
&gt; &gt;<br>
&gt; &gt; I am the FAE director in Gigadevice and I would like to add some part #s to \
the flashchip.c and flashchip.h.<br> &gt; &gt; Can you please provide some \
guidance?<br> &gt; &gt;<br>
&gt; &gt; Regards,<br>
&gt; &gt;<br>
&gt; &gt; Victor Lim<br>
&gt; &gt; FAE Director<br>
&gt; &gt; GigaDevice Semiconductor<br>
&gt; &gt; <a href="tel:(408)%20883-3856" id="OWAd2ad7c84-b175-2c01-8e56-66b7fc65fe0c" \
class="OWAAutoLink" data-auth="NotApplicable" data-loopstyle="linkonly"> \
4088833856</a><br> &gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; flashrom mailing list -- <a href="mailto:flashrom@flashrom.org" \
id="OWA678b3b97-2450-5620-785d-cb3a2856c74b" class="OWAAutoLink" \
data-loopstyle="linkonly"> flashrom@flashrom.org</a><br>
&gt; &gt; To unsubscribe send an email to <a \
href="mailto:flashrom-leave@flashrom.org" \
id="OWA5153ef95-6edf-f845-d210-4a380b62c7e5" class="OWAAutoLink" \
data-loopstyle="linkonly"> flashrom-leave@flashrom.org</a><br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; flashrom mailing list -- <a href="mailto:flashrom@flashrom.org" \
id="OWA18ea86f0-da97-25c3-d0b8-dae3295b8082" class="OWAAutoLink" \
data-loopstyle="linkonly"> flashrom@flashrom.org</a><br>
&gt; &gt; To unsubscribe send an email to <a \
href="mailto:flashrom-leave@flashrom.org" \
id="OWAce2d6357-e059-838a-6540-3218cd5dddb5" class="OWAAutoLink" \
data-loopstyle="linkonly"> flashrom-leave@flashrom.org</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Anastasia.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Anastasia.<br>
<br>
<br>
<br>
--<br>
Anastasia.<br>
_______________________________________________<br>
flashrom mailing list -- <a href="mailto:flashrom@flashrom.org" \
id="OWAca338fc7-3b59-a390-3e21-9e65ec592fa2" class="OWAAutoLink" \
data-loopstyle="linkonly"> flashrom@flashrom.org</a><br>
To unsubscribe send an email to <a href="mailto:flashrom-leave@flashrom.org" \
id="OWA10807a9e-5da8-a8e1-aa93-37b5ff26fad1" class="OWAAutoLink" \
data-loopstyle="linkonly"> flashrom-leave@flashrom.org</a><br>
</blockquote>
</body>
</html>



_______________________________________________
flashrom mailing list -- flashrom@flashrom.org
To unsubscribe send an email to flashrom-leave@flashrom.org

--===============1870057816177797403==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic