16 Jul, 2014
1 commit
-
In preparation for DT conversion to reduce reliance on platform device
callbacks.Signed-off-by: Ulrich Hecht
Signed-off-by: Felipe Balbi
16 Oct, 2012
1 commit
-
This patch adds usbhs_sys_function_pullup() to control
D+ line for USB function, and enabled pullup support on mod_gadget.Signed-off-by: Kuninori Morimoto
Signed-off-by: Felipe Balbi
05 Jun, 2012
1 commit
-
A few quoted includes start with a superfluous "./". Clean up those
quoted includes.Signed-off-by: Paul Bolle
Signed-off-by: Jiri Kosina
24 Jan, 2012
1 commit
-
In case of the SH7757, the irq number of USB module and SUDMAC
are the same. So, we have to set the IRQF_SHARED in such a case.Signed-off-by: Yoshihiro Shimoda
Signed-off-by: Felipe Balbi
12 Dec, 2011
6 commits
-
Signed-off-by: Kuninori Morimoto
Signed-off-by: Felipe Balbi -
it was device configuration setting function, not only speed.
This patch modify function name usbhs_set_device_speed() -> usbhs_set_device_config()Signed-off-by: Kuninori Morimoto
Signed-off-by: Felipe Balbi -
renesas_usbhs needs callback for notify hotplug.
but it were 2 methods which are almost same.
This patch unified these into one.Signed-off-by: Kuninori Morimoto
Signed-off-by: Felipe Balbi -
Signed-off-by: Kuninori Morimoto
Signed-off-by: Felipe Balbi -
usbhs_sys_usb_ctrl() can collect into usbhs_sys_host/function_ctrl().
Signed-off-by: Kuninori Morimoto
Signed-off-by: Felipe Balbi -
usbhs_sys_hispeed_ctrl() can collect into usbhs_sys_host/function_ctrl().
Signed-off-by: Kuninori Morimoto
Signed-off-by: Felipe Balbi
14 Oct, 2011
7 commits
-
renesas_usbhs has default callback functions and settings.
And it tried overwrite to platform private data
if platform doesn't have them.
So, if renesas_usbhs was compiled as module,
it will be hung-up on 2nd insmod.
This patch fixup it.
Special thanks to BastianReported-by: Bastian Hecht
Signed-off-by: Kuninori Morimoto
Signed-off-by: Felipe Balbi -
mod_host use INTSTS1 interrupt
Signed-off-by: Kuninori Morimoto
Signed-off-by: Felipe Balbi -
mod_host needs device speed setup function
Signed-off-by: Kuninori Morimoto
Signed-off-by: Felipe Balbi -
renesas_usbhs can manually set DATA0/DATA1.
This patch is prepare for mod_host supportSigned-off-by: Kuninori Morimoto
Signed-off-by: Felipe Balbi -
usbhs_usbreq_get/set_val() functions were in pipe.c file,
but it is irrelevant to pipe.
this patch move it to common.cSigned-off-by: Kuninori Morimoto
Signed-off-by: Felipe Balbi -
current mod_gadget had got usb speed on
usbhsg_irq_dev_state() which is status change interrupt callback function.
And the usb speed data was included in its parameter.But this style works for mod_gadget,
but doesn't work for mod_host which
isn't interrupted when device status was changed.This patch add usbhs_bus_get_speed() to solve this issue.
Signed-off-by: Kuninori Morimoto
Signed-off-by: Felipe Balbi -
this patch add DVSTCTR control function for HOST support
Signed-off-by: Kuninori Morimoto
Signed-off-by: Felipe Balbi
08 Jun, 2011
5 commits
-
USB DMA was installed on "normal DMAC" when SH7724 or older SuperH,
but the "USB-DMAC" was prepared on recent SuperH.
These 2 DMAC have a little bit different behavior.This patch add DMAEngine code for "normal DMAC",
but it is still using PIO fifo.
The DMA fifo will be formally supported in the future.You can enable DMA fifo by local fixup
usbhs_fifo_pio_push_handler -> usbhs_fifo_dma_push_handler
usbhs_fifo_pio_pop_handler -> usbhs_fifo_dma_pop_handler
on usbhsg_ep_enable.This DMAEngine was tested by g_file_storage on SH7724 Ecovec board
Signed-off-by: Kuninori Morimoto
Signed-off-by: Greg Kroah-Hartman -
renesas_usbhs has CFIFO/D0FIFO/D1FIFO.
But current renesas_usbhs is using CFIFO (for PIO) only for now.
The fifo selection method is needed for DMAEngine support.
This is a preparation for DMAEngine supportSigned-off-by: Kuninori Morimoto
Signed-off-by: Greg Kroah-Hartman -
spin lock was very effective while doing 1 packet send/recv on
current renesas_usbhs driver.
But this lock is enough only
- modify packet/pipe link
- modify interrpt mask
- modify fifo access
This patch shrink spin lock areaSigned-off-by: Kuninori Morimoto
Signed-off-by: Greg Kroah-Hartman -
DMAEngine will be supported to this driver in the future.
Then, both PIO and DMA data transfer method should be supported.
But, the transfer function can returns the result immediately
in PIO version, but it can't in DMA version.
This patch divides data transfer functions into top/bottom half
in preparation for DMAEngine support.Signed-off-by: Kuninori Morimoto
Signed-off-by: Greg Kroah-Hartman -
Current renesas_usbhs has PIO data transfer mode which controls CFIFO.
And it was implemented in pipe.c.
But, fifo control method needs more flexible implementation
to support DMAEngine.
This patch create fifo.c, and it became independent from pipe.c.Signed-off-by: Kuninori Morimoto
Signed-off-by: Greg Kroah-Hartman
30 Apr, 2011
3 commits
-
Current renesas_usbhs was designed to save power when USB is not connected.
And it assumed platform uses callback to notify connection/disconnection
by external interrupt.But some SuperH / platform board doesn't have such feature.
This patch adds autonomy mode which detect USB connection/disconnection
by internal interrupt.
But power will be always ON when autonomy mode is selected.Signed-off-by: Kuninori Morimoto
Signed-off-by: Greg Kroah-Hartman -
This delay is used to overjump debounce.
And, this patch also move usbhsc_drvcllbck_notify_hotplug to global,
because it will be called from other files.Signed-off-by: Kuninori Morimoto
Signed-off-by: Greg Kroah-Hartman -
usbhs_pdev_to_priv function will be used in other files.
Signed-off-by: Kuninori Morimoto
Signed-off-by: Greg Kroah-Hartman
14 Apr, 2011
1 commit
-
Renesas SuperH has USBHS IP which can switch Host / Function.
This driver is designed so that Host / Function may dynamically change.
This patch add usb/renesas_usbhs and common code for SuperH USBHS.Signed-off-by: Kuninori Morimoto
Signed-off-by: Greg Kroah-Hartman