#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/nvmem-provider.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#define RK3288_A_SHIFT …
#define RK3288_A_MASK …
#define RK3288_PGENB …
#define RK3288_LOAD …
#define RK3288_STROBE …
#define RK3288_CSB …
#define RK3328_SECURE_SIZES …
#define RK3328_INT_STATUS …
#define RK3328_DOUT …
#define RK3328_AUTO_CTRL …
#define RK3328_INT_FINISH …
#define RK3328_AUTO_ENB …
#define RK3328_AUTO_RD …
#define RK3399_A_SHIFT …
#define RK3399_A_MASK …
#define RK3399_NBYTES …
#define RK3399_STROBSFTSEL …
#define RK3399_RSB …
#define RK3399_PD …
#define RK3399_PGENB …
#define RK3399_LOAD …
#define RK3399_STROBE …
#define RK3399_CSB …
#define REG_EFUSE_CTRL …
#define REG_EFUSE_DOUT …
struct rockchip_efuse_chip { … };
static int rockchip_rk3288_efuse_read(void *context, unsigned int offset,
void *val, size_t bytes)
{ … }
static int rockchip_rk3328_efuse_read(void *context, unsigned int offset,
void *val, size_t bytes)
{ … }
static int rockchip_rk3399_efuse_read(void *context, unsigned int offset,
void *val, size_t bytes)
{ … }
static struct nvmem_config econfig = …;
static const struct of_device_id rockchip_efuse_match[] = …;
MODULE_DEVICE_TABLE(of, rockchip_efuse_match);
static int rockchip_efuse_probe(struct platform_device *pdev)
{ … }
static struct platform_driver rockchip_efuse_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;