]> git.ipfire.org Git - thirdparty/u-boot.git/commit
net: sun8i_emac: Retrieve GMAC clock via 'syscon' phandle
authorJagan Teki <jagan@amarulasolutions.com>
Wed, 27 Feb 2019 18:56:51 +0000 (00:26 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Tue, 16 Apr 2019 10:59:01 +0000 (16:29 +0530)
commit695f6043c9d84df6feeaca46661123c9f570397d
tree787655e20903897cd0d2d6338e5f680b93a4b6a0
parent0ed8eaf1de2074c40d9a2d4d3d829fd6acee1597
net: sun8i_emac: Retrieve GMAC clock via 'syscon' phandle

Unlike other Allwinner SoC's R40 GMAC clock control register
is locate in CCU, but rest located via syscon itself. Since
the phandle property for current code look for 'syscon' and
it will grab the respective ccu or syscon base address based
on DT property defined in respective SoC dtsi.

So, use the existing 'syscon' code even for R40 for retrieving
GMAC clock via CCU and update the register directly in
sun8i_emac_set_syscon instead of writing it separately using
ccm base.

Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Lothar Felten <lothar.felten@gmail.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/net/sun8i_emac.c