linux/drivers/usb/isp1760/isp1760-core.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Driver for the NXP ISP1760 chip
 *
 * Copyright 2021 Linaro, Rui Miguel Silva
 * Copyright 2014 Laurent Pinchart
 * Copyright 2007 Sebastian Siewior
 *
 * Contacts:
 *	Sebastian Siewior <[email protected]>
 *	Laurent Pinchart <[email protected]>
 *	Rui Miguel Silva <[email protected]>
 */

#ifndef _ISP1760_CORE_H_
#define _ISP1760_CORE_H_

#include <linux/ioport.h>
#include <linux/regmap.h>

#include "isp1760-hcd.h"
#include "isp1760-udc.h"

struct device;
struct gpio_desc;

/*
 * Device flags that can vary from board to board.  All of these
 * indicate the most "atypical" case, so that a devflags of 0 is
 * a sane default configuration.
 */
#define ISP1760_FLAG_BUS_WIDTH_16
#define ISP1760_FLAG_PERIPHERAL_EN
#define ISP1760_FLAG_ANALOG_OC
#define ISP1760_FLAG_DACK_POL_HIGH
#define ISP1760_FLAG_DREQ_POL_HIGH
#define ISP1760_FLAG_ISP1761
#define ISP1760_FLAG_INTR_POL_HIGH
#define ISP1760_FLAG_INTR_EDGE_TRIG
#define ISP1760_FLAG_ISP1763
#define ISP1760_FLAG_BUS_WIDTH_8

struct isp1760_device {};

int isp1760_register(struct resource *mem, int irq, unsigned long irqflags,
		     struct device *dev, unsigned int devflags);
void isp1760_unregister(struct device *dev);

void isp1760_set_pullup(struct isp1760_device *isp, bool enable);

static inline u32 isp1760_field_read(struct regmap_field **fields, u32 field)
{}

static inline void isp1760_field_write(struct regmap_field **fields, u32 field,
				       u32 val)
{}

static inline void isp1760_field_set(struct regmap_field **fields, u32 field)
{}

static inline void isp1760_field_clear(struct regmap_field **fields, u32 field)
{}

static inline u32 isp1760_reg_read(struct regmap *regs, u32 reg)
{}

static inline void isp1760_reg_write(struct regmap *regs, u32 reg, u32 val)
{}
#endif