mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-04-10 08:21:31 +00:00
udc: dfu: s3c_udc: Provide function to check if USB reset was asserted
New dfu_usb_get_reset() method is necessary to distinct two different use cases of dfu-util program. This method checks if the USB bus reset has been really performed after DFU DETACH. Without this function the previous DFU behavior is preserved. Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
This commit is contained in:
parent
1cc03c5c53
commit
f2ec4e34aa
1 changed files with 5 additions and 0 deletions
|
@ -149,6 +149,11 @@ struct s3c_usbotg_reg *reg;
|
||||||
struct s3c_usbotg_phy *phy;
|
struct s3c_usbotg_phy *phy;
|
||||||
static unsigned int usb_phy_ctrl;
|
static unsigned int usb_phy_ctrl;
|
||||||
|
|
||||||
|
bool dfu_usb_get_reset(void)
|
||||||
|
{
|
||||||
|
return !!(readl(®->gintsts) & INT_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
void otg_phy_init(struct s3c_udc *dev)
|
void otg_phy_init(struct s3c_udc *dev)
|
||||||
{
|
{
|
||||||
dev->pdata->phy_control(1);
|
dev->pdata->phy_control(1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue