• Trent Piepho's avatar
    rtc: isl1208: Add new style nvmem support to driver · c3544f6f
    Trent Piepho authored
    Add support for the RTC's NVRAM using the standard nvmem support that is
    part of the Linux RTC framework.
    
    This driver already has a sysfs attribute that provides access to the
    RTC's NVRAM as a single 16-bit value.  Some chips have more than two
    bytes of NVRAM, so this will not work for them.  It's also non-standard.
    
    This sysfs attribute is left in for backward compatibility, but will only
    be able to read the first two bytes of NVRAM.  The nvmem interface will
    allow access to all NVRAM, e.g. eight bytes on the isl1218.
    
    Cc: Alessandro Zummo <a.zummo@towertech.it>
    Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
    Signed-off-by: default avatarTrent Piepho <tpiepho@impinj.com>
    Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
    c3544f6f
rtc-isl1208.c 23.2 KB