linux/drivers/net/can/cc770/cc770_platform.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Driver for CC770 and AN82527 CAN controllers on the platform bus
 *
 * Copyright (C) 2009, 2011 Wolfgang Grandegger <[email protected]>
 */

/*
 * If platform data are used you should have similar definitions
 * in your board-specific code:
 *
 *   static struct cc770_platform_data myboard_cc770_pdata = {
 *           .osc_freq = 16000000,
 *           .cir = 0x41,
 *           .cor = 0x20,
 *           .bcr = 0x40,
 *   };
 *
 * Please see include/linux/can/platform/cc770.h for description of
 * above fields.
 *
 * If the device tree is used, you need a CAN node definition in your
 * DTS file similar to:
 *
 *   can@3,100 {
 *           compatible = "bosch,cc770";
 *           reg = <3 0x100 0x80>;
 *           interrupts = <2 0>;
 *           interrupt-parent = <&mpic>;
 *           bosch,external-clock-frequency = <16000000>;
 *   };
 *
 * See "Documentation/devicetree/bindings/net/can/cc770.txt" for further
 * information.
 */

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/netdevice.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/can.h>
#include <linux/can/dev.h>
#include <linux/can/platform/cc770.h>

#include "cc770.h"

#define DRV_NAME

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

#define CC770_PLATFORM_CAN_CLOCK

static u8 cc770_platform_read_reg(const struct cc770_priv *priv, int reg)
{}

static void cc770_platform_write_reg(const struct cc770_priv *priv, int reg,
				     u8 val)
{}

static int cc770_get_of_node_data(struct platform_device *pdev,
				  struct cc770_priv *priv)
{}

static int cc770_get_platform_data(struct platform_device *pdev,
				   struct cc770_priv *priv)
{}

static int cc770_platform_probe(struct platform_device *pdev)
{}

static void cc770_platform_remove(struct platform_device *pdev)
{}

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

static struct platform_driver cc770_platform_driver =;

module_platform_driver();