[rft/rfc/patch-2.6.28-rc3+ 24/59] omap: namespace cleanup to arch/arm/plat-omap/usb.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Felipe Balbi <felipe.balbi@xxxxxxxxx>

Signed-off-by: Felipe Balbi <felipe.balbi@xxxxxxxxx>
---
 arch/arm/plat-omap/usb.c |   82 +++++++++++++++++++++++-----------------------
 1 files changed, 41 insertions(+), 41 deletions(-)

diff --git a/arch/arm/plat-omap/usb.c b/arch/arm/plat-omap/usb.c
index 67ca1e2..d7fc013 100644
--- a/arch/arm/plat-omap/usb.c
+++ b/arch/arm/plat-omap/usb.c
@@ -159,9 +159,9 @@ static u32 __init omap_usb0_init(unsigned nwires, unsigned is_device)
 			u32 l;
 
 			/* pulldown D+/D- */
-			l = omap_readl(USB_TRANSCEIVER_CTRL);
+			l = __raw_readl(USB_TRANSCEIVER_CTRL);
 			l &= ~(3 << 1);
-			omap_writel(l, USB_TRANSCEIVER_CTRL);
+			__raw_writel(l, USB_TRANSCEIVER_CTRL);
 		}
 		return 0;
 	}
@@ -191,11 +191,11 @@ static u32 __init omap_usb0_init(unsigned nwires, unsigned is_device)
 		 *  - OTG support on this port not yet written
 		 */
 
-		l = omap_readl(USB_TRANSCEIVER_CTRL);
+		l = __raw_readl(USB_TRANSCEIVER_CTRL);
 		l &= ~(7 << 4);
 		if (!is_device)
 			l |= (3 << 1);
-		omap_writel(l, USB_TRANSCEIVER_CTRL);
+		__raw_writel(l, USB_TRANSCEIVER_CTRL);
 
 		return 3 << 16;
 	}
@@ -228,9 +228,9 @@ static u32 __init omap_usb0_init(unsigned nwires, unsigned is_device)
 	if (cpu_class_is_omap1() && nwires != 6) {
 		u32 l;
 
-		l = omap_readl(USB_TRANSCEIVER_CTRL);
+		l = __raw_readl(USB_TRANSCEIVER_CTRL);
 		l &= ~CONF_USB2_UNI_R;
-		omap_writel(l, USB_TRANSCEIVER_CTRL);
+		__raw_writel(l, USB_TRANSCEIVER_CTRL);
 	}
 
 	switch (nwires) {
@@ -255,9 +255,9 @@ static u32 __init omap_usb0_init(unsigned nwires, unsigned is_device)
 
 			omap_cfg_reg(AA9_USB0_VP);
 			omap_cfg_reg(R9_USB0_VM);
-			l = omap_readl(USB_TRANSCEIVER_CTRL);
+			l = __raw_readl(USB_TRANSCEIVER_CTRL);
 			l |= CONF_USB2_UNI_R;
-			omap_writel(l, USB_TRANSCEIVER_CTRL);
+			__raw_writel(l, USB_TRANSCEIVER_CTRL);
 		}
 		break;
 	default:
@@ -274,9 +274,9 @@ static u32 __init omap_usb1_init(unsigned nwires)
 	if (cpu_class_is_omap1() && !cpu_is_omap15xx() && nwires != 6) {
 		u32 l;
 
-		l = omap_readl(USB_TRANSCEIVER_CTRL);
+		l = __raw_readl(USB_TRANSCEIVER_CTRL);
 		l &= ~CONF_USB1_UNI_R;
-		omap_writel(l, USB_TRANSCEIVER_CTRL);
+		__raw_writel(l, USB_TRANSCEIVER_CTRL);
 	}
 	if (cpu_is_omap24xx())
 		omap2_usb_devconf_clear(1, USB_BIDIR_TLL);
@@ -341,9 +341,9 @@ static u32 __init omap_usb1_init(unsigned nwires)
 		if (!cpu_is_omap15xx()) {
 			u32 l;
 
-			l = omap_readl(USB_TRANSCEIVER_CTRL);
+			l = __raw_readl(USB_TRANSCEIVER_CTRL);
 			l |= CONF_USB1_UNI_R;
-			omap_writel(l, USB_TRANSCEIVER_CTRL);
+			__raw_writel(l, USB_TRANSCEIVER_CTRL);
 		}
 		break;
 	default:
@@ -370,9 +370,9 @@ static u32 __init omap_usb2_init(unsigned nwires, unsigned alt_pingroup)
 	if (cpu_class_is_omap1() && !cpu_is_omap15xx() && nwires != 6) {
 		u32 l;
 
-		l = omap_readl(USB_TRANSCEIVER_CTRL);
+		l = __raw_readl(USB_TRANSCEIVER_CTRL);
 		l &= ~CONF_USB2_UNI_R;
-		omap_writel(l, USB_TRANSCEIVER_CTRL);
+		__raw_writel(l, USB_TRANSCEIVER_CTRL);
 	}
 
 	/* external transceiver */
@@ -446,9 +446,9 @@ static u32 __init omap_usb2_init(unsigned nwires, unsigned alt_pingroup)
 
 			omap_cfg_reg(AA9_USB2_VP);
 			omap_cfg_reg(R9_USB2_VM);
-			l = omap_readl(USB_TRANSCEIVER_CTRL);
+			l = __raw_readl(USB_TRANSCEIVER_CTRL);
 			l |= CONF_USB2_UNI_R;
-			omap_writel(l, USB_TRANSCEIVER_CTRL);
+			__raw_writel(l, USB_TRANSCEIVER_CTRL);
 		}
 		break;
 	default:
@@ -588,11 +588,11 @@ omap_otg_init(struct omap_usb_config *config)
 
 	/* NOTE:  no bus or clock setup (yet?) */
 
-	syscon = omap_readl(OTG_SYSCON_1) & 0xffff;
+	syscon = __raw_readl(OTG_SYSCON_1) & 0xffff;
 	if (!(syscon & OTG_RESET_DONE))
 		pr_debug("USB resets not complete?\n");
 
-	//omap_writew(0, OTG_IRQ_EN);
+	//__raw_writew(0, OTG_IRQ_EN);
 
 	/* pin muxing and transceiver pinouts */
 	if (config->pins[0] > 2)	/* alt pingroup 2 */
@@ -600,8 +600,8 @@ omap_otg_init(struct omap_usb_config *config)
 	syscon |= omap_usb0_init(config->pins[0], is_usb0_device(config));
 	syscon |= omap_usb1_init(config->pins[1]);
 	syscon |= omap_usb2_init(config->pins[2], alt_pingroup);
-	pr_debug("OTG_SYSCON_1 = %08x\n", omap_readl(OTG_SYSCON_1));
-	omap_writel(syscon, OTG_SYSCON_1);
+	pr_debug("OTG_SYSCON_1 = %08x\n", __raw_readl(OTG_SYSCON_1));
+	__raw_writel(syscon, OTG_SYSCON_1);
 
 	syscon = config->hmc_mode;
 	syscon |= USBX_SYNCHRO | (4 << 16) /* B_ASE0_BRST */;
@@ -611,9 +611,9 @@ omap_otg_init(struct omap_usb_config *config)
 #endif
 	if (cpu_class_is_omap1())
 		pr_debug("USB_TRANSCEIVER_CTRL = %03x\n",
-			 omap_readl(USB_TRANSCEIVER_CTRL));
-	pr_debug("OTG_SYSCON_2 = %08x\n", omap_readl(OTG_SYSCON_2));
-	omap_writel(syscon, OTG_SYSCON_2);
+			 __raw_readl(USB_TRANSCEIVER_CTRL));
+	pr_debug("OTG_SYSCON_2 = %08x\n", __raw_readl(OTG_SYSCON_2));
+	__raw_writel(syscon, OTG_SYSCON_2);
 
 	printk("USB: hmc %d", config->hmc_mode);
 	if (!alt_pingroup)
@@ -633,16 +633,16 @@ omap_otg_init(struct omap_usb_config *config)
 		u16 w;
 
 		/* leave USB clocks/controllers off until needed */
-		w = omap_readw(ULPD_SOFT_REQ);
+		w = __raw_readw(ULPD_SOFT_REQ);
 		w &= ~SOFT_USB_CLK_REQ;
-		omap_writew(w, ULPD_SOFT_REQ);
+		__raw_writew(w, ULPD_SOFT_REQ);
 
-		w = omap_readw(ULPD_CLOCK_CTRL);
+		w = __raw_readw(ULPD_CLOCK_CTRL);
 		w &= ~USB_MCLK_EN;
 		w |= DIS_USB_PVCI_CLK;
-		omap_writew(w, ULPD_CLOCK_CTRL);
+		__raw_writew(w, ULPD_CLOCK_CTRL);
 	}
-	syscon = omap_readl(OTG_SYSCON_1);
+	syscon = __raw_readl(OTG_SYSCON_1);
 	syscon |= HST_IDLE_EN|DEV_IDLE_EN|OTG_IDLE_EN;
 
 #ifdef	CONFIG_USB_GADGET_OMAP
@@ -679,8 +679,8 @@ omap_otg_init(struct omap_usb_config *config)
 			pr_debug("can't register OTG device, %d\n", status);
 	}
 #endif
-	pr_debug("OTG_SYSCON_1 = %08x\n", omap_readl(OTG_SYSCON_1));
-	omap_writel(syscon, OTG_SYSCON_1);
+	pr_debug("OTG_SYSCON_1 = %08x\n", __raw_readl(OTG_SYSCON_1));
+	__raw_writel(syscon, OTG_SYSCON_1);
 
 	status = 0;
 }
@@ -711,9 +711,9 @@ static void __init omap_1510_usb_init(struct omap_usb_config *config)
 	omap_usb1_init(config->pins[1]);
 	omap_usb2_init(config->pins[2], 0);
 
-	val = omap_readl(MOD_CONF_CTRL_0) & ~(0x3f << 1);
+	val = __raw_readl(MOD_CONF_CTRL_0) & ~(0x3f << 1);
 	val |= (config->hmc_mode << 1);
-	omap_writel(val, MOD_CONF_CTRL_0);
+	__raw_writel(val, MOD_CONF_CTRL_0);
 
 	printk("USB: hmc %d", config->hmc_mode);
 	if (config->pins[0])
@@ -726,22 +726,22 @@ static void __init omap_1510_usb_init(struct omap_usb_config *config)
 	printk("\n");
 
 	/* use DPLL for 48 MHz function clock */
-	pr_debug("APLL %04x DPLL %04x REQ %04x\n", omap_readw(ULPD_APLL_CTRL),
-			omap_readw(ULPD_DPLL_CTRL), omap_readw(ULPD_SOFT_REQ));
+	pr_debug("APLL %04x DPLL %04x REQ %04x\n", __raw_readw(ULPD_APLL_CTRL),
+			__raw_readw(ULPD_DPLL_CTRL), __raw_readw(ULPD_SOFT_REQ));
 
-	w = omap_readw(ULPD_APLL_CTRL);
+	w = __raw_readw(ULPD_APLL_CTRL);
 	w &= ~APLL_NDPLL_SWITCH;
-	omap_writew(w, ULPD_APLL_CTRL);
+	__raw_writew(w, ULPD_APLL_CTRL);
 
-	w = omap_readw(ULPD_DPLL_CTRL);
+	w = __raw_readw(ULPD_DPLL_CTRL);
 	w |= DPLL_IOB | DPLL_PLL_ENABLE;
-	omap_writew(w, ULPD_DPLL_CTRL);
+	__raw_writew(w, ULPD_DPLL_CTRL);
 
-	w = omap_readw(ULPD_SOFT_REQ);
+	w = __raw_readw(ULPD_SOFT_REQ);
 	w |= SOFT_UDC_REQ | SOFT_DPLL_REQ;
-	omap_writew(w, ULPD_SOFT_REQ);
+	__raw_writew(w, ULPD_SOFT_REQ);
 
-	while (!(omap_readw(ULPD_DPLL_CTRL) & DPLL_LOCK))
+	while (!(__raw_readw(ULPD_DPLL_CTRL) & DPLL_LOCK))
 		cpu_relax();
 
 #ifdef	CONFIG_USB_GADGET_OMAP
-- 
1.6.0.2.307.gc427

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux