]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: arch-meson: fix writel arguments order
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 12 Dec 2017 13:23:39 +0000 (14:23 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 18 Dec 2017 18:06:30 +0000 (13:06 -0500)
Using writel causes a "Synchronous Abort". Invert the arguments.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
arch/arm/mach-meson/eth.c

index 2debe93952ca89b2074b05126d3051a2fe1311dc..8c6577b06f0db8dacfbd21569d1463031a6e2470 100644 (file)
@@ -38,8 +38,8 @@ void meson_gx_eth_init(phy_interface_t mode, unsigned int flags)
                /* Use GXL RMII Internal PHY */
                if (IS_ENABLED(CONFIG_MESON_GXL) &&
                    (flags & MESON_GXL_USE_INTERNAL_RMII_PHY)) {
-                       writel(GXBB_ETH_REG_2, 0x10110181);
-                       writel(GXBB_ETH_REG_3, 0xe40908ff);
+                       writel(0x10110181, GXBB_ETH_REG_2);
+                       writel(0xe40908ff, GXBB_ETH_REG_3);
                }
 
                break;