gadget.c (37981e00503f6bdeb99108ff90199002c3eec2f5) gadget.c (b43ebc96e985fed9417c6aff769a6839bdaa6cdf)
1// SPDX-License-Identifier: GPL-2.0
2/**
3 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com
5 *
6 * Copyright 2008 Openmoko, Inc.
7 * Copyright 2008 Simtec Electronics
8 * Ben Dooks <ben@simtec.co.uk>

--- 3222 unchanged lines hidden (view full) ---

3231 dcfg |= DCFG_DEVSPD_FS48;
3232 else
3233 dcfg |= DCFG_DEVSPD_FS;
3234 break;
3235 default:
3236 dcfg |= DCFG_DEVSPD_HS;
3237 }
3238
1// SPDX-License-Identifier: GPL-2.0
2/**
3 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com
5 *
6 * Copyright 2008 Openmoko, Inc.
7 * Copyright 2008 Simtec Electronics
8 * Ben Dooks <ben@simtec.co.uk>

--- 3222 unchanged lines hidden (view full) ---

3231 dcfg |= DCFG_DEVSPD_FS48;
3232 else
3233 dcfg |= DCFG_DEVSPD_FS;
3234 break;
3235 default:
3236 dcfg |= DCFG_DEVSPD_HS;
3237 }
3238
3239 if (hsotg->params.ipg_isoc_en)
3240 dcfg |= DCFG_IPG_ISOC_SUPPORDED;
3241
3239 dwc2_writel(dcfg, hsotg->regs + DCFG);
3240
3241 /* Clear any pending OTG interrupts */
3242 dwc2_writel(0xffffffff, hsotg->regs + GOTGINT);
3243
3244 /* Clear any pending interrupts */
3245 dwc2_writel(0xffffffff, hsotg->regs + GINTSTS);
3246 intmsk = GINTSTS_ERLYSUSP | GINTSTS_SESSREQINT |

--- 1842 unchanged lines hidden ---
3242 dwc2_writel(dcfg, hsotg->regs + DCFG);
3243
3244 /* Clear any pending OTG interrupts */
3245 dwc2_writel(0xffffffff, hsotg->regs + GOTGINT);
3246
3247 /* Clear any pending interrupts */
3248 dwc2_writel(0xffffffff, hsotg->regs + GINTSTS);
3249 intmsk = GINTSTS_ERLYSUSP | GINTSTS_SESSREQINT |

--- 1842 unchanged lines hidden ---