/openbmc/linux/drivers/usb/gadget/udc/aspeed-vhub/ |
H A D | core.c | 33 struct ast_vhub *vhub = ep->vhub; in ast_vhub_done() local 44 usb_gadget_unmap_request_by_dev(&vhub->pdev->dev, in ast_vhub_done() 54 spin_unlock(&ep->vhub->lock); in ast_vhub_done() 56 spin_lock(&ep->vhub->lock); in ast_vhub_done() 95 struct ast_vhub *vhub = data; in ast_vhub_irq() local 100 if (!vhub->ep0_bufs) in ast_vhub_irq() 103 spin_lock(&vhub->lock); in ast_vhub_irq() 106 istat = readl(vhub->regs + AST_VHUB_ISR); in ast_vhub_irq() 109 writel(istat, vhub->regs + AST_VHUB_ISR); in ast_vhub_irq() 112 UDCVDBG(vhub, "irq status=%08x, ep_acks=%08x ep_nacks=%08x\n", in ast_vhub_irq() [all …]
|
H A D | hub.c | 185 if (ep->vhub->wakeup_en) in ast_vhub_hub_dev_status() 202 if (ep->vhub->ep1_stalled) in ast_vhub_hub_ep_status() 220 ep->vhub->wakeup_en = is_set; in ast_vhub_hub_dev_feature() 227 val = readl(ep->vhub->regs + AST_VHUB_CTRL); in ast_vhub_hub_dev_feature() 230 writel(val, ep->vhub->regs + AST_VHUB_CTRL); in ast_vhub_hub_dev_feature() 259 ep->vhub->ep1_stalled = is_set; in ast_vhub_hub_ep_feature() 260 reg = readl(ep->vhub->regs + AST_VHUB_EP1_CTRL); in ast_vhub_hub_ep_feature() 267 writel(reg, ep->vhub->regs + AST_VHUB_EP1_CTRL); in ast_vhub_hub_ep_feature() 276 struct ast_vhub *vhub = ep->vhub; in ast_vhub_rep_desc() local 292 memcpy(ep->buf, &vhub->vhub_dev_desc, dsize); in ast_vhub_rep_desc() [all …]
|
H A D | dev.c | 66 reg = readl(d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_enable() 68 writel(reg, d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_enable() 98 reg = readl(d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_disable() 100 writel(reg, d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_disable() 123 val = readl(d->vhub->regs + AST_VHUB_CTRL); in ast_vhub_dev_feature() 126 writel(val, d->vhub->regs + AST_VHUB_CTRL); in ast_vhub_dev_feature() 239 d->gadget.speed = ep->vhub->speed; in ast_vhub_std_dev_request() 282 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_udc_wakeup() 289 ast_vhub_hub_wake_all(d->vhub); in ast_vhub_udc_wakeup() 292 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_udc_wakeup() [all …]
|
H A D | epn.c | 340 struct ast_vhub *vhub = ep->vhub; in ast_vhub_epn_queue() local 347 dev_warn(&vhub->pdev->dev, "Bogus EPn request ! u_req=%p\n", u_req); in ast_vhub_epn_queue() 349 dev_warn(&vhub->pdev->dev, "complete=%p internal=%d\n", in ast_vhub_epn_queue() 381 rc = usb_gadget_map_request_by_dev(&vhub->pdev->dev, u_req, in ast_vhub_epn_queue() 384 dev_warn(&vhub->pdev->dev, in ast_vhub_epn_queue() 403 spin_lock_irqsave(&vhub->lock, flags); in ast_vhub_epn_queue() 414 spin_unlock_irqrestore(&vhub->lock, flags); in ast_vhub_epn_queue() 440 dev_warn(&ep->vhub->pdev->dev, "Timeout waiting for DMA\n"); in ast_vhub_stop_active_req() 475 struct ast_vhub *vhub = ep->vhub; in ast_vhub_epn_dequeue() local 480 spin_lock_irqsave(&vhub->lock, flags); in ast_vhub_epn_dequeue() [all …]
|
H A D | ep0.c | 53 spin_unlock(&ep->vhub->lock); in ast_vhub_reply() 58 spin_lock(&ep->vhub->lock); in ast_vhub_reply() 151 spin_unlock(&ep->vhub->lock); in ast_vhub_ep0_handle_setup() 153 spin_lock(&ep->vhub->lock); in ast_vhub_ep0_handle_setup() 276 struct ast_vhub *vhub = ep->vhub; in ast_vhub_ep0_handle_ack() local 277 struct device *dev = &vhub->pdev->dev; in ast_vhub_ep0_handle_ack() 364 struct ast_vhub *vhub = ep->vhub; in ast_vhub_ep0_queue() local 365 struct device *dev = &vhub->pdev->dev; in ast_vhub_ep0_queue() 403 spin_lock_irqsave(&vhub->lock, flags); in ast_vhub_ep0_queue() 412 spin_unlock_irqrestore(&vhub->lock, flags); in ast_vhub_ep0_queue() [all …]
|
H A D | vhub.h | 281 struct ast_vhub *vhub; member 342 struct ast_vhub *vhub; member 443 dev_dbg(&(ep)->vhub->pdev->dev, \ 450 dev_dbg(&(d)->vhub->pdev->dev, \ 465 dev_dbg(&(ep)->vhub->pdev->dev, \ 472 dev_dbg(&(d)->vhub->pdev->dev, \ 522 void ast_vhub_init_hw(struct ast_vhub *vhub); 528 void ast_vhub_init_ep0(struct ast_vhub *vhub, struct ast_vhub_ep *ep, 538 int ast_vhub_init_hub(struct ast_vhub *vhub); 543 void ast_vhub_device_connect(struct ast_vhub *vhub, unsigned int port, [all …]
|
H A D | Makefile | 2 obj-$(CONFIG_USB_ASPEED_VHUB) += aspeed-vhub.o 3 aspeed-vhub-y := core.o ep0.o epn.o dev.o hub.o
|
/openbmc/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-inventec-transformers.dts | 318 &vhub { 320 aspeed,vhub-downstream-ports = <7>; 321 aspeed,vhub-generic-endpoints = <21>;
|
H A D | aspeed-bmc-inventec-starscream.dts | 379 &vhub { 381 aspeed,vhub-downstream-ports = <7>; 382 aspeed,vhub-generic-endpoints = <21>;
|
H A D | aspeed-bmc-facebook-galaxy100.dts | 51 &vhub {
|
H A D | aspeed-bmc-facebook-wedge100.dts | 61 &vhub {
|
H A D | ast2500-facebook-netbmc-common.dtsi | 73 &vhub {
|
H A D | ast2400-facebook-netbmc-common.dtsi | 115 &vhub {
|
H A D | aspeed-ast2500-evb.dts | 116 &vhub {
|
H A D | ast2600-facebook-netbmc-common.dtsi | 151 &vhub {
|
H A D | aspeed-g4.dtsi | 170 vhub: usb-vhub@1e6a0000 { label 171 compatible = "aspeed,ast2400-usb-vhub"; 175 aspeed,vhub-downstream-ports = <5>; 176 aspeed,vhub-generic-endpoints = <15>;
|
H A D | aspeed-bmc-qcom-dc-scm-v1.dts | 188 &vhub {
|
H A D | aspeed-g5.dtsi | 198 vhub: usb-vhub@1e6a0000 { label 199 compatible = "aspeed,ast2500-usb-vhub"; 203 aspeed,vhub-downstream-ports = <5>; 204 aspeed,vhub-generic-endpoints = <15>;
|
H A D | aspeed-g6.dtsi | 299 vhub: usb-vhub@1e6a0000 { label 300 compatible = "aspeed,ast2600-usb-vhub"; 304 aspeed,vhub-downstream-ports = <7>; 305 aspeed,vhub-generic-endpoints = <21>;
|
H A D | aspeed-bmc-vegman.dtsi | 143 &vhub {
|
H A D | aspeed-bmc-asrock-e3c246d4i.dts | 134 &vhub {
|
H A D | aspeed-bmc-asrock-romed8hm3.dts | 170 &vhub {
|
H A D | aspeed-bmc-amd-daytonax.dts | 317 &vhub {
|
H A D | aspeed-bmc-asrock-e3c256d4i.dts | 213 &vhub {
|
/openbmc/linux/drivers/usb/gadget/udc/ |
H A D | Makefile | 41 obj-$(CONFIG_USB_ASPEED_VHUB) += aspeed-vhub/
|