public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* region_info_user and otp_info
@ 2006-11-07  3:50 Anand Patil
  2006-11-07 11:45 ` Josh Boyer
  0 siblings, 1 reply; 3+ messages in thread
From: Anand Patil @ 2006-11-07  3:50 UTC (permalink / raw)
  To: linux-mtd

Hi,
       I am new bee to MTD user land,

      1)  Iam not getting what region information refers to in MTD?
            ---------------------------
            struct region_info_user {
            uint32_t offset;                /* At which this region starts,
                                         * from the beginning of the MTD */
            uint32_t erasesize;             /* For this region */
            uint32_t numblocks;             /* Number of blocks in this 
region */
            uint32_t regionindex;
            };
           ---------------------------

    2) I did'nt get the purpose of the below strucuture defined and its 
usage ?
        ---------------------------
        struct otp_info {
                uint32_t start;
                uint32_t length;
                uint32_t locked;
        };

        ---------------------------

Warm Regards,
Anand Patil 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: region_info_user and otp_info
  2006-11-07  3:50 region_info_user and otp_info Anand Patil
@ 2006-11-07 11:45 ` Josh Boyer
  2006-11-07 14:49   ` Anand Patil
  0 siblings, 1 reply; 3+ messages in thread
From: Josh Boyer @ 2006-11-07 11:45 UTC (permalink / raw)
  To: Anand Patil; +Cc: linux-mtd

On Tue, 2006-11-07 at 09:20 +0530, Anand Patil wrote:
> Hi,
>        I am new bee to MTD user land,
> 
>       1)  Iam not getting what region information refers to in MTD?

Some chips have multiple erase regions.  These regions can have
eraseblocks of different size than the rest of the chip.  That is what
the structure is reporting.


>     2) I did'nt get the purpose of the below strucuture defined and its 
> usage ?

OTP stands for One Time Programmable.  Some chips have an area that is
only writable once.  It can be used to store serial numbers, or whatever
you'd like to store as long as you only need to write that information a
single time.  That is what this structure is referring to.

josh

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: region_info_user and otp_info
  2006-11-07 11:45 ` Josh Boyer
@ 2006-11-07 14:49   ` Anand Patil
  0 siblings, 0 replies; 3+ messages in thread
From: Anand Patil @ 2006-11-07 14:49 UTC (permalink / raw)
  To: Josh Boyer; +Cc: linux-mtd

Josh,
           I got a AMD NOR Flash AM29LV256M,
           It supports a feature called as Secured Silicon Sector (i.e. a 
256 byte region which can be programmed only once)
           To access the above feature a particular command sequence has to 
be issued
            How can I  know whether the above feature is already 
incorporated in the MTD release OR
            else we need to support it at the driver layer?


Warm Regards,
Anand Patil
----- Original Message ----- 
From: "Josh Boyer" <jwboyer@linux.vnet.ibm.com>
To: "Anand Patil" <anandpatil@ti.com>
Cc: <linux-mtd@lists.infradead.org>
Sent: Tuesday, November 07, 2006 5:15 PM
Subject: Re: region_info_user and otp_info


> On Tue, 2006-11-07 at 09:20 +0530, Anand Patil wrote:
>> Hi,
>>        I am new bee to MTD user land,
>>
>>       1)  Iam not getting what region information refers to in MTD?
>
> Some chips have multiple erase regions.  These regions can have
> eraseblocks of different size than the rest of the chip.  That is what
> the structure is reporting.
>
>
>>     2) I did'nt get the purpose of the below strucuture defined and its
>> usage ?
>
> OTP stands for One Time Programmable.  Some chips have an area that is
> only writable once.  It can be used to store serial numbers, or whatever
> you'd like to store as long as you only need to write that information a
> single time.  That is what this structure is referring to.
>
> josh
>
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-07 14:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-07  3:50 region_info_user and otp_info Anand Patil
2006-11-07 11:45 ` Josh Boyer
2006-11-07 14:49   ` Anand Patil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox