summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mvebu/cpu.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2015-12-04 13:08:34 +0100
committerStefan Roese <sr@denx.de>2016-01-14 14:08:59 +0100
commitab8a4c6afa0e57f2ef0ad4c7069e16d82c35fc87 (patch)
tree8ffc7f078f43765d5c3c819d623e30b27a7eeda9 /arch/arm/mach-mvebu/cpu.c
parentc86d53fd88df8e538191f7107c3009e17fc590e1 (diff)
downloadu-boot-imx-ab8a4c6afa0e57f2ef0ad4c7069e16d82c35fc87.zip
u-boot-imx-ab8a4c6afa0e57f2ef0ad4c7069e16d82c35fc87.tar.gz
u-boot-imx-ab8a4c6afa0e57f2ef0ad4c7069e16d82c35fc87.tar.bz2
arm: mvebu: Simplify code in setup_usb_phys() a bit
Use the clrbits() / setbits() functions instead of clrsetbits() when bit are only cleared or set. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Luka Perkov <luka.perkov@sartura.hr>
Diffstat (limited to 'arch/arm/mach-mvebu/cpu.c')
-rw-r--r--arch/arm/mach-mvebu/cpu.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-mvebu/cpu.c b/arch/arm/mach-mvebu/cpu.c
index 6c11609..570966a 100644
--- a/arch/arm/mach-mvebu/cpu.c
+++ b/arch/arm/mach-mvebu/cpu.c
@@ -199,10 +199,10 @@ static void setup_usb_phys(void)
clrsetbits_le32(MV_USB_PHY_PLL_REG(1), 0x3ff, 0x605);
/* Power up PLL and PHY channel */
- clrsetbits_le32(MV_USB_PHY_PLL_REG(2), 0, BIT(9));
+ setbits_le32(MV_USB_PHY_PLL_REG(2), BIT(9));
/* Assert VCOCAL_START */
- clrsetbits_le32(MV_USB_PHY_PLL_REG(1), 0, BIT(21));
+ setbits_le32(MV_USB_PHY_PLL_REG(1), BIT(21));
mdelay(1);
@@ -211,12 +211,12 @@ static void setup_usb_phys(void)
*/
for (dev = 0; dev < 3; dev++) {
- clrsetbits_le32(MV_USB_X3_PHY_CHANNEL(dev, 3), 0, BIT(15));
+ setbits_le32(MV_USB_X3_PHY_CHANNEL(dev, 3), BIT(15));
/* Assert REG_RCAL_START in channel REG 1 */
- clrsetbits_le32(MV_USB_X3_PHY_CHANNEL(dev, 1), 0, BIT(12));
+ setbits_le32(MV_USB_X3_PHY_CHANNEL(dev, 1), BIT(12));
udelay(40);
- clrsetbits_le32(MV_USB_X3_PHY_CHANNEL(dev, 1), BIT(12), 0);
+ clrbits_le32(MV_USB_X3_PHY_CHANNEL(dev, 1), BIT(12));
}
}