LWN.net Logo

Support for picoxcell OTP memory

From:  Jamie Iles <jamie@jamieiles.com>
To:  linux-kernel@vger.kernel.org
Subject:  [RFC PATCH 0/2] Support for picoxcell OTP memory
Date:  Wed, 23 Mar 2011 12:16:57 +0000
Message-ID:  <1300882619-19152-1-git-send-email-jamie@jamieiles.com>
Cc:  gregkh@suse.de, Jamie Iles <jamie@jamieiles.com>
Archive-link:  Article, Thread

This patch series adds support for the OTP memory in picoxcell devices
which can be used for the first-stage bootloaders, cryptographic keys
and any other per-device information.  The first patch implements a
fairly generic OTP layer that handles the userspace interface and device
registration and abstracts the backend detail of how to actually read
and write the OTP to support different backends.

The second patch implements support for the OTP PC3X3 family of devices
which has 16KB of OTP.

Greg, I'm not sure if what I've done here is the best way to interface
with the driver model but I'm open to changes!

Jamie

Jamie Iles (2):
  picoxcell-otp: add support for picoxcell OTP devices
  picoxcellotp: add support for PC3X3 OTP devices

 Documentation/ABI/testing/sysfs-bus-picoxcell-otp  |   37 +
 .../ABI/testing/sysfs-platform-picoxcell-otp       |   39 +
 drivers/char/Kconfig                               |   15 +
 drivers/char/Makefile                              |    2 +
 drivers/char/picoxcellotp.c                        |  929 +++++++++++++++++
 drivers/char/picoxcellotp.h                        |  230 +++++
 drivers/char/picoxcellotp_pc3x3.c                  | 1078 ++++++++++++++++++++
 7 files changed, 2330 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-bus-picoxcell-otp
 create mode 100644 Documentation/ABI/testing/sysfs-platform-picoxcell-otp
 create mode 100644 drivers/char/picoxcellotp.c
 create mode 100644 drivers/char/picoxcellotp.h
 create mode 100644 drivers/char/picoxcellotp_pc3x3.c

-- 
1.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Copyright © 2011, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds