Lines Matching full:v

81 	unsigned int v;  in mxc_set_usbcontrol()  local
91 v = __raw_readl(usbother_base + in mxc_set_usbcontrol()
94 v |= MXC_OTG_PHYCTRL_OC_POL_BIT; in mxc_set_usbcontrol()
96 v &= ~MXC_OTG_PHYCTRL_OC_POL_BIT; in mxc_set_usbcontrol()
99 v &= ~MXC_OTG_PHYCTRL_OC_DIS_BIT; in mxc_set_usbcontrol()
102 v |= MXC_OTG_PHYCTRL_OC_DIS_BIT; in mxc_set_usbcontrol()
105 v |= MXC_OTG_PHYCTRL_PWR_POL_BIT; in mxc_set_usbcontrol()
107 v &= ~MXC_OTG_PHYCTRL_PWR_POL_BIT; in mxc_set_usbcontrol()
109 __raw_writel(v, usbother_base + in mxc_set_usbcontrol()
112 v = __raw_readl(usbother_base + MXC_USBCTRL_OFFSET); in mxc_set_usbcontrol()
115 v &= ~MXC_OTG_UCTRL_OPM_BIT; in mxc_set_usbcontrol()
117 v |= MXC_OTG_UCTRL_OPM_BIT; in mxc_set_usbcontrol()
121 v |= MXC_OTG_UCTRL_O_PWR_POL_BIT; in mxc_set_usbcontrol()
123 v &= ~MXC_OTG_UCTRL_O_PWR_POL_BIT; in mxc_set_usbcontrol()
125 __raw_writel(v, usbother_base + MXC_USBCTRL_OFFSET); in mxc_set_usbcontrol()
132 v = __raw_readl(usbother_base + MXC_USB_CTRL_1_OFFSET); in mxc_set_usbcontrol()
133 __raw_writel(v | MXC_USB_CTRL_UH1_EXT_CLK_EN, usbother_base + in mxc_set_usbcontrol()
137 v = __raw_readl(usbother_base + MXC_USBCTRL_OFFSET); in mxc_set_usbcontrol()
140 v &= ~MXC_H1_UCTRL_H1PM_BIT; /* H1 power mask unused */ in mxc_set_usbcontrol()
142 v |= MXC_H1_UCTRL_H1PM_BIT; /* H1 power mask used */ in mxc_set_usbcontrol()
146 v |= MXC_H1_UCTRL_H1_PWR_POL_BIT; in mxc_set_usbcontrol()
148 v &= ~MXC_H1_UCTRL_H1_PWR_POL_BIT; in mxc_set_usbcontrol()
150 __raw_writel(v, usbother_base + MXC_USBCTRL_OFFSET); in mxc_set_usbcontrol()
152 v = __raw_readl(usbother_base + MXC_USB_PHY_CTR_FUNC_OFFSET); in mxc_set_usbcontrol()
154 v |= MXC_H1_OC_POL_BIT; in mxc_set_usbcontrol()
156 v &= ~MXC_H1_OC_POL_BIT; in mxc_set_usbcontrol()
158 v &= ~MXC_H1_OC_DIS_BIT; /* OC is used */ in mxc_set_usbcontrol()
160 v |= MXC_H1_OC_DIS_BIT; /* OC is not used */ in mxc_set_usbcontrol()
161 __raw_writel(v, usbother_base + MXC_USB_PHY_CTR_FUNC_OFFSET); in mxc_set_usbcontrol()
165 v = __raw_readl(usbother_base + MXC_USBH2CTRL_OFFSET); in mxc_set_usbcontrol()
168 v &= ~MXC_H2_UCTRL_H2PM_BIT; /* H2 power mask unused */ in mxc_set_usbcontrol()
170 v |= MXC_H2_UCTRL_H2PM_BIT; /* H2 power mask used */ in mxc_set_usbcontrol()
174 v |= MXC_H2_UCTRL_H2_OC_POL_BIT; in mxc_set_usbcontrol()
176 v &= ~MXC_H2_UCTRL_H2_OC_POL_BIT; in mxc_set_usbcontrol()
178 v &= ~MXC_H2_UCTRL_H2_OC_DIS_BIT; /* OC is used */ in mxc_set_usbcontrol()
180 v |= MXC_H2_UCTRL_H2_OC_DIS_BIT; /* OC is not used */ in mxc_set_usbcontrol()
182 v |= MXC_H2_UCTRL_H2_PWR_POL_BIT; in mxc_set_usbcontrol()
184 v &= ~MXC_H2_UCTRL_H2_PWR_POL_BIT; in mxc_set_usbcontrol()
186 __raw_writel(v, usbother_base + MXC_USBH2CTRL_OFFSET); in mxc_set_usbcontrol()
190 v = __raw_readl(usbother_base + MXC_USBH3CTRL_OFFSET); in mxc_set_usbcontrol()
192 v |= MXC_H3_UCTRL_H3_OC_POL_BIT; in mxc_set_usbcontrol()
194 v &= ~MXC_H3_UCTRL_H3_OC_POL_BIT; in mxc_set_usbcontrol()
196 v &= ~MXC_H3_UCTRL_H3_OC_DIS_BIT; /* OC is used */ in mxc_set_usbcontrol()
198 v |= MXC_H3_UCTRL_H3_OC_DIS_BIT; /* OC is not used */ in mxc_set_usbcontrol()
200 v |= MXC_H3_UCTRL_H3_PWR_POL_BIT; in mxc_set_usbcontrol()
202 v &= ~MXC_H3_UCTRL_H3_PWR_POL_BIT; in mxc_set_usbcontrol()
203 __raw_writel(v, usbother_base + MXC_USBH3CTRL_OFFSET); in mxc_set_usbcontrol()