linux/drivers/w1/masters/mxc_w1.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright 2005-2008 Freescale Semiconductor, Inc. All Rights Reserved.
 * Copyright 2008 Luotao Fu, [email protected]
 */

#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/ktime.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/platform_device.h>

#include <linux/w1.h>

/*
 * MXC W1 Register offsets
 */
#define MXC_W1_CONTROL
#define MXC_W1_CONTROL_RDST
#define MXC_W1_CONTROL_WR(x)
#define MXC_W1_CONTROL_PST
#define MXC_W1_CONTROL_RPP
#define MXC_W1_TIME_DIVIDER
#define MXC_W1_RESET
#define MXC_W1_RESET_RST

struct mxc_w1_device {};

/*
 * this is the low level routine to
 * reset the device on the One Wire interface
 * on the hardware
 */
static u8 mxc_w1_ds2_reset_bus(void *data)
{}

/*
 * this is the low level routine to read/write a bit on the One Wire
 * interface on the hardware. It does write 0 if parameter bit is set
 * to 0, otherwise a write 1/read.
 */
static u8 mxc_w1_ds2_touch_bit(void *data, u8 bit)
{}

static int mxc_w1_probe(struct platform_device *pdev)
{}

/*
 * disassociate the w1 device from the driver
 */
static void mxc_w1_remove(struct platform_device *pdev)
{}

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

static struct platform_driver mxc_w1_driver =;
module_platform_driver();

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