lkml.org 
[lkml]   [2011]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC PATCHv3 0/4] Support for OTP memory
Date
Hi,

I've updated this series following some great feedback from Greg and
Mike, and aside from the code quality improvements, the main changes
since v2 are:

- The OTP regions don't live directly in /sys/bus/otp/devices
anymore but just as a child device of the OTP device.
- CONFIG_OTP_WRITE_ENABLE has been created that replaces the
bfin-otp specific option and this disables all OTP writing at the
higher levels. The PC3X3 OTP driver has also been converted to use
this.
- Multiple OTP devices can now be registered at the same time.
- The bfin-otp driver has been converted to a platform_driver and
the relevant Blackfin platforms have had a bfin-otp device added.
- The Blackfin OTP is now represented as a single region that does
not include the ECC or control bits. This prevents users from
accidentally scribbling over those bits.

Greg, Mike, thanks again for taking the time to review, it's much
appreciated.

Thanks,

Jamie Iles (4):
drivers/otp: add initial support for OTP memory
drivers/otp: add support for Picoxcell PC3X3 OTP
drivers/otp: convert bfin otp to generic OTP
Blackfin: add the OTP device as a platform device

Documentation/ABI/testing/sysfs-bus-otp | 93 +++
arch/blackfin/mach-bf518/boards/ezbrd.c | 10 +
arch/blackfin/mach-bf518/boards/tcm-bf518.c | 10 +
arch/blackfin/mach-bf527/boards/ad7160eval.c | 10 +
arch/blackfin/mach-bf527/boards/cm_bf527.c | 10 +
arch/blackfin/mach-bf527/boards/ezbrd.c | 10 +
arch/blackfin/mach-bf527/boards/ezkit.c | 10 +
arch/blackfin/mach-bf527/boards/tll6527m.c | 10 +
arch/blackfin/mach-bf548/boards/cm_bf548.c | 9 +
arch/blackfin/mach-bf548/boards/ezkit.c | 10 +
drivers/Kconfig | 2 +
drivers/Makefile | 1 +
drivers/char/Kconfig | 28 -
drivers/char/Makefile | 1 -
drivers/otp/Kconfig | 51 ++
drivers/otp/Makefile | 3 +
drivers/{char => otp}/bfin-otp.c | 275 ++++---
drivers/otp/otp.c | 913 +++++++++++++++++++++
drivers/otp/otp_pc3x3.c | 1099 ++++++++++++++++++++++++++
include/linux/otp.h | 277 +++++++
20 files changed, 2677 insertions(+), 155 deletions(-)
create mode 100644 Documentation/ABI/testing/sysfs-bus-otp
create mode 100644 drivers/otp/Kconfig
create mode 100644 drivers/otp/Makefile
rename drivers/{char => otp}/bfin-otp.c (40%)
create mode 100644 drivers/otp/otp.c
create mode 100644 drivers/otp/otp_pc3x3.c
create mode 100644 include/linux/otp.h

--
1.7.4



\
 
 \ /
  Last update: 2011-03-25 18:17    [W:0.198 / U:0.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site