Lines Matching full:otp

15  *	OTP support
50 /* Default OneNAND/Flex-OneNAND OTP options*/
51 static int otp; variable
53 module_param(otp, int, 0400);
54 MODULE_PARM_DESC(otp, "Corresponding behaviour of OneNAND in OTP"
55 "Syntax : otp=LOCK_TYPE"
56 "LOCK_TYPE : Keys issued, for specific OTP Lock type"
58 " : 1 -> OTP Block lock"
60 " : 3 -> BOTH OTP Block and 1st Block lock");
1897 /* Exclude 1st OTP and OTP blocks for cache program feature */ in onenand_write_ops_nolock()
2685 * onenand_otp_command - Send OTP specific command to OneNAND device
2760 * onenand_otp_write_oob_nolock - [INTERN] OneNAND write out-of-band, specific to OTP
2767 * OneNAND write out-of-band only for OTP
2818 * Enter OTP access mode in onenand_otp_write_oob_nolock()
2849 /* Exit OTP access mode */ in onenand_otp_write_oob_nolock()
2859 printk(KERN_DEBUG "OTP Block\tLOCKED\n"); in onenand_otp_write_oob_nolock()
2863 printk(KERN_DEBUG "OTP Block\tUN-LOCKED\n"); in onenand_otp_write_oob_nolock()
2867 printk(KERN_DEBUG "OTP Block\tLOCKED\n"); in onenand_otp_write_oob_nolock()
2886 /* Internal OTP operation */
2891 * do_otp_read - [DEFAULT] Read OTP block area
2898 * Read OTP block area.
2912 /* Enter OTP access mode */ in do_otp_read()
2920 /* Exit OTP access mode */ in do_otp_read()
2928 * do_otp_write - [DEFAULT] Write OTP block area
2935 * Write OTP block area.
2953 /* Enter OTP access mode */ in do_otp_write()
2964 /* Exit OTP access mode */ in do_otp_write()
2972 * do_otp_lock - [DEFAULT] Lock OTP block area
2979 * Lock OTP block area.
2990 /* Enter OTP access mode */ in do_otp_lock()
3004 /* Exit OTP access mode */ in do_otp_lock()
3020 * onenand_otp_walk - [DEFAULT] Handle OTP operation
3029 * Handle OTP operation.
3064 if (!action) { /* OTP Info functions */ in onenand_otp_walk()
3101 * onenand_get_fact_prot_info - [MTD Interface] Read factory OTP info
3107 * Read factory OTP info.
3117 * onenand_read_fact_prot_reg - [MTD Interface] Read factory OTP area
3124 * Read factory OTP area.
3133 * onenand_get_user_prot_info - [MTD Interface] Read user OTP info
3139 * Read user OTP info.
3149 * onenand_read_user_prot_reg - [MTD Interface] Read user OTP area
3156 * Read user OTP area.
3165 * onenand_write_user_prot_reg - [MTD Interface] Write user OTP area
3172 * Write user OTP area.
3181 * onenand_lock_user_prot_reg - [MTD Interface] Lock user OTP area
3186 * Write lock mark on spare area in page 0 in OTP block
3210 * Note: OTP lock operation in onenand_lock_user_prot_reg()
3211 * OTP block : 0xXXFC XX 1111 1100 in onenand_lock_user_prot_reg()
3219 if (otp == 1) in onenand_lock_user_prot_reg()
3221 else if (otp == 2) in onenand_lock_user_prot_reg()
3223 else if (otp == 3) in onenand_lock_user_prot_reg()
3225 else if (otp != 0) in onenand_lock_user_prot_reg()
3226 printk(KERN_DEBUG "[OneNAND] Invalid option selected for OTP\n"); in onenand_lock_user_prot_reg()