Home
last modified time | relevance | path

Searched full:fotg210 (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/usb/fotg210/
H A Dfotg210-udc.c3 * FOTG210 UDC Driver supports Bulk transfer so far
22 #include "fotg210.h"
23 #include "fotg210-udc.h"
25 #define DRIVER_DESC "FOTG210 USB Device Controller Driver"
32 static void fotg210_ack_int(struct fotg210_udc *fotg210, u32 offset, u32 mask) in fotg210_ack_int() argument
34 u32 value = ioread32(fotg210->reg + offset); in fotg210_ack_int()
37 iowrite32(value, fotg210->reg + offset); in fotg210_ack_int()
42 u32 value = ioread32(ep->fotg210->reg + FOTG210_DMISGR1); in fotg210_disable_fifo_int()
48 iowrite32(value, ep->fotg210->reg + FOTG210_DMISGR1); in fotg210_disable_fifo_int()
53 u32 value = ioread32(ep->fotg210->reg + FOTG210_DMISGR1); in fotg210_enable_fifo_int()
[all …]
H A Dfotg210-hcd.c2 /* Faraday FOTG210 EHCI-like driver
41 #include "fotg210.h"
79 #include "fotg210-hcd.h"
81 #define fotg210_dbg(fotg210, fmt, args...) \ argument
82 dev_dbg(fotg210_to_hcd(fotg210)->self.controller, fmt, ## args)
83 #define fotg210_err(fotg210, fmt, args...) \ argument
84 dev_err(fotg210_to_hcd(fotg210)->self.controller, fmt, ## args)
85 #define fotg210_info(fotg210, fmt, args...) \ argument
86 dev_info(fotg210_to_hcd(fotg210)->self.controller, fmt, ## args)
87 #define fotg210_warn(fotg210, fmt, args...) \ argument
[all …]
H A Dfotg210-hcd.h185 struct fotg210 *fotg; /* Overarching FOTG210 device */
195 static inline struct usb_hcd *fotg210_to_hcd(struct fotg210_hcd *fotg210) in fotg210_to_hcd() argument
197 return container_of((void *) fotg210, struct usb_hcd, hcd_priv); in fotg210_to_hcd()
213 #define HC_LENGTH(fotg210, p) (0x00ff&((p) >> /* bits 7:0 / offset 00h */ \ argument
214 (fotg210_big_endian_capbase(fotg210) ? 24 : 0)))
215 #define HC_VERSION(fotg210, p) (0xffff&((p) >> /* bits 31:16 / offset 02h */ \ argument
216 (fotg210_big_endian_capbase(fotg210) ? 0 : 16)))
308 #define QTD_NEXT(fotg210, dma) cpu_to_hc32(fotg210, (u32)dma) argument
337 #define ACTIVE_BIT(fotg210) cpu_to_hc32(fotg210, QTD_STS_ACTIVE) argument
338 #define HALT_BIT(fotg210) cpu_to_hc32(fotg210, QTD_STS_HALT) argument
[all …]
H A DKconfig4 tristate "Faraday FOTG210 USB2 Dual Role controller"
11 Faraday FOTG210 is a dual-mode USB controller that can act
17 bool "Faraday FOTG210 USB Host Controller support"
20 Faraday FOTG210 is an OTG controller which can be configured as
25 module will be called fotg210-hcd.
29 bool "Faraday FOTG210 USB Peripheral Controller support"
36 dynamically linked module called "fotg210-udc".
H A Dfotg210.h11 struct fotg210 { struct
20 void fotg210_vbus(struct fotg210 *fotg, bool enable); argument
23 int fotg210_hcd_probe(struct platform_device *pdev, struct fotg210 *fotg);
29 struct fotg210 *fotg) in fotg210_hcd_probe()
47 int fotg210_udc_probe(struct platform_device *pdev, struct fotg210 *fotg);
51 struct fotg210 *fotg) in fotg210_udc_probe()
H A Dfotg210-udc.h3 * Faraday FOTG210 USB OTG controller
219 struct fotg210_udc *fotg210; member
240 struct fotg210 *fotg;
/linux/Documentation/devicetree/bindings/usb/
H A Dfaraday,fotg210.yaml5 $id: http://devicetree.org/schemas/usb/faraday,fotg210.yaml#
21 - const: faraday,fotg210
/linux/drivers/usb/
H A DKconfig128 source "drivers/usb/fotg210/Kconfig"