]> git.baikalelectronics.ru Git - uboot.git/commit
sunxi: usb_phy: invert the USB phy_ctl condition
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 23 Aug 2017 11:31:08 +0000 (13:31 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 3 Oct 2017 17:12:06 +0000 (19:12 +0200)
commitd5346ae037836befcf346d439740b6e4214c2589
treea7fe7e9e100839dcadc7b4fe5660b3f1451803f9
parent316be29b21dce8f61f1721660703eb98719d6e9c
sunxi: usb_phy: invert the USB phy_ctl condition

All the new SoCs from Allwinner since the A33 have had the phy_ctl offset
at 0x410 instead of 0x404 that was used on the previous SoCs.

Instead of adding more and more special cases as the number of SoCs grow,
let's invert the test to have 0x410 by default, and the (hopefully) fixed
number of old SoCs being the exception.

Suggested-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
Suggested-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
arch/arm/mach-sunxi/usb_phy.c