Implementation of persistent protection in Spanison flash in Kernel
I am using spansion flash (S29GL256S90FHSS4) in HDK 7111 USING STLinux-2.4
Kernel version is "linux-sh4-2.6.32.59"
I want to use Persistent Protection mode to lock the flash at the kernel level.
I am using lock/unlock function for DYB(Dynamic Protection) .
Given below are the functions I am looking for implementing the same .
Path to file : Linux-sh4-2.6.32.59/include/linux/mtd/mtd.h
int (*get_fact_prot_info) (struct mtd_info *mtd, struct otp_info *buf, size_t
len);
int (*read_fact_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len,
size_t *retlen, u_char *buf);
int (*get_user_prot_info) (struct mtd_info *mtd, struct otp_info *buf, size_t
len);
int (*read_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len,
size_t *retlen, u_char *buf);
int (*write_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len,
size_t *retlen, u_char *buf);
int (*lock_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len);
Is there any support available for this ?
Thanks and Regards
Rinky
|