summaryrefslogtreecommitdiff
path: root/include/cdns3-uboot.h
blob: c3593086a8b7dce887c7e80b9f103643ffc64143 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Copyright 2018 NXP
 *
 * SPDX-License-Identifier:     GPL-2.0
 */

#ifndef __CDNS3_UBOOT_H_
#define __CDNS3_UBOOT_H_

#include <linux/usb/otg.h>

struct cdns3_device {
	unsigned long none_core_base;
	unsigned long xhci_base;
	unsigned long dev_base;
	unsigned long phy_base;
	unsigned long otg_base;
	enum usb_dr_mode dr_mode;
	int index;
};

int cdns3_uboot_init(struct cdns3_device *dev);
void cdns3_uboot_exit(int index);
void cdns3_uboot_handle_interrupt(int index);
#endif /* __CDNS3_UBOOT_H_ */