linux/drivers/nvmem/mxs-ocotp.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Freescale MXS On-Chip OTP driver
 *
 * Copyright (C) 2015 Stefan Wahren <[email protected]>
 *
 * Based on the driver from Huang Shijie and Christoph G. Baumann
 */
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/nvmem-provider.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/slab.h>
#include <linux/stmp_device.h>

/* OCOTP registers and bits */

#define BM_OCOTP_CTRL_RD_BANK_OPEN
#define BM_OCOTP_CTRL_ERROR
#define BM_OCOTP_CTRL_BUSY

#define OCOTP_TIMEOUT
#define OCOTP_DATA_OFFSET

struct mxs_ocotp {};

static int mxs_ocotp_wait(struct mxs_ocotp *otp)
{}

static int mxs_ocotp_read(void *context, unsigned int offset,
			  void *val, size_t bytes)
{}

static struct nvmem_config ocotp_config =;

struct mxs_data {};

static const struct mxs_data imx23_data =;

static const struct mxs_data imx28_data =;

static const struct of_device_id mxs_ocotp_match[] =;
MODULE_DEVICE_TABLE(of, mxs_ocotp_match);

static void mxs_ocotp_action(void *data)
{}

static int mxs_ocotp_probe(struct platform_device *pdev)
{}

static struct platform_driver mxs_ocotp_driver =;

module_platform_driver();
MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();