linux/drivers/usb/renesas_usbhs/rcar3.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Renesas USB driver R-Car Gen. 3 initialization and power control
 *
 * Copyright (C) 2016-2019 Renesas Electronics Corporation
 */

#include <linux/delay.h>
#include <linux/io.h>
#include "common.h"
#include "rcar3.h"

#define LPSTS
#define UGCTRL
#define UGCTRL2
#define UGSTS

/* Low Power Status register (LPSTS) */
#define LPSTS_SUSPM

/* R-Car D3 only: USB General control register (UGCTRL) */
#define UGCTRL_PLLRESET
#define UGCTRL_CONNECT

/*
 * USB General control register 2 (UGCTRL2)
 * Remarks: bit[31:11] and bit[9:6] should be 0
 */
#define UGCTRL2_RESERVED_3
#define UGCTRL2_USB0SEL_HSUSB
#define UGCTRL2_USB0SEL_OTG
#define UGCTRL2_VBUSSEL

/* R-Car D3 only: USB General status register (UGSTS) */
#define UGSTS_LOCK

static void usbhs_write32(struct usbhs_priv *priv, u32 reg, u32 data)
{}

static u32 usbhs_read32(struct usbhs_priv *priv, u32 reg)
{}

static void usbhs_rcar3_set_ugctrl2(struct usbhs_priv *priv, u32 val)
{}

static int usbhs_rcar3_power_ctrl(struct platform_device *pdev,
				void __iomem *base, int enable)
{}

/* R-Car D3 needs to release UGCTRL.PLLRESET */
static int usbhs_rcar3_power_and_pll_ctrl(struct platform_device *pdev,
					  void __iomem *base, int enable)
{}

const struct renesas_usbhs_platform_info usbhs_rcar_gen3_plat_info =;

const struct renesas_usbhs_platform_info usbhs_rcar_gen3_with_pll_plat_info =;