1*896d3e43SSøren Schmidt#- 2*896d3e43SSøren Schmidt# Copyright (c) 2022 Soren Schmidt <sos@deepcore.dk> 3*896d3e43SSøren Schmidt# All rights reserved. 4*896d3e43SSøren Schmidt# 5*896d3e43SSøren Schmidt# Redistribution and use in source and binary forms, with or without 6*896d3e43SSøren Schmidt# modification, are permitted provided that the following conditions 7*896d3e43SSøren Schmidt# are met: 8*896d3e43SSøren Schmidt# 1. Redistributions of source code must retain the above copyright 9*896d3e43SSøren Schmidt# notice, this list of conditions and the following disclaimer. 10*896d3e43SSøren Schmidt# 2. Redistributions in binary form must reproduce the above copyright 11*896d3e43SSøren Schmidt# notice, this list of conditions and the following disclaimer in the 12*896d3e43SSøren Schmidt# documentation and/or other materials provided with the distribution. 13*896d3e43SSøren Schmidt# 14*896d3e43SSøren Schmidt# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15*896d3e43SSøren Schmidt# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16*896d3e43SSøren Schmidt# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17*896d3e43SSøren Schmidt# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18*896d3e43SSøren Schmidt# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19*896d3e43SSøren Schmidt# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20*896d3e43SSøren Schmidt# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21*896d3e43SSøren Schmidt# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22*896d3e43SSøren Schmidt# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23*896d3e43SSøren Schmidt# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24*896d3e43SSøren Schmidt# SUCH DAMAGE. 25*896d3e43SSøren Schmidt# 26*896d3e43SSøren Schmidt# $Id: rk_otp_if.m 921 2022-08-09 18:38:11Z sos $ 27*896d3e43SSøren Schmidt# 28*896d3e43SSøren Schmidt 29*896d3e43SSøren Schmidt#include <arm64/rockchip/rk_otp.h> 30*896d3e43SSøren Schmidt 31*896d3e43SSøren SchmidtINTERFACE rk_otp; 32*896d3e43SSøren Schmidt 33*896d3e43SSøren SchmidtHEADER { 34*896d3e43SSøren Schmidt}; 35*896d3e43SSøren Schmidt 36*896d3e43SSøren Schmidt# 37*896d3e43SSøren Schmidt# Initialize SoC specific registers. 38*896d3e43SSøren Schmidt# 39*896d3e43SSøren SchmidtMETHOD int read { 40*896d3e43SSøren Schmidt device_t dev; 41*896d3e43SSøren Schmidt void *buffer; 42*896d3e43SSøren Schmidt int offset; 43*896d3e43SSøren Schmidt int size; 44*896d3e43SSøren Schmidt} DEFAULT rk_otp_read; 45