linux/drivers/nvmem/meson-mx-efuse.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Amlogic Meson6, Meson8 and Meson8b eFuse Driver
 *
 * Copyright (c) 2017 Martin Blumenstingl <[email protected]>
 */

#include <linux/bitfield.h>
#include <linux/bitops.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/iopoll.h>
#include <linux/module.h>
#include <linux/nvmem-provider.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/sizes.h>
#include <linux/slab.h>

#define MESON_MX_EFUSE_CNTL1
#define MESON_MX_EFUSE_CNTL1_PD_ENABLE
#define MESON_MX_EFUSE_CNTL1_AUTO_RD_BUSY
#define MESON_MX_EFUSE_CNTL1_AUTO_RD_START
#define MESON_MX_EFUSE_CNTL1_AUTO_RD_ENABLE
#define MESON_MX_EFUSE_CNTL1_BYTE_WR_DATA
#define MESON_MX_EFUSE_CNTL1_AUTO_WR_BUSY
#define MESON_MX_EFUSE_CNTL1_AUTO_WR_START
#define MESON_MX_EFUSE_CNTL1_AUTO_WR_ENABLE
#define MESON_MX_EFUSE_CNTL1_BYTE_ADDR_SET
#define MESON_MX_EFUSE_CNTL1_BYTE_ADDR_MASK

#define MESON_MX_EFUSE_CNTL2

#define MESON_MX_EFUSE_CNTL4
#define MESON_MX_EFUSE_CNTL4_ENCRYPT_ENABLE

struct meson_mx_efuse_platform_data {};

struct meson_mx_efuse {};

static void meson_mx_efuse_mask_bits(struct meson_mx_efuse *efuse, u32 reg,
				     u32 mask, u32 set)
{}

static int meson_mx_efuse_hw_enable(struct meson_mx_efuse *efuse)
{}

static void meson_mx_efuse_hw_disable(struct meson_mx_efuse *efuse)
{}

static int meson_mx_efuse_read_addr(struct meson_mx_efuse *efuse,
				    unsigned int addr, u32 *value)
{}

static int meson_mx_efuse_read(void *context, unsigned int offset,
			       void *buf, size_t bytes)
{}

static const struct meson_mx_efuse_platform_data meson6_efuse_data =;

static const struct meson_mx_efuse_platform_data meson8_efuse_data =;

static const struct meson_mx_efuse_platform_data meson8b_efuse_data =;

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

static int meson_mx_efuse_probe(struct platform_device *pdev)
{}

static struct platform_driver meson_mx_efuse_driver =;

module_platform_driver();

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