History log of /netbsd-current/sys/arch/arm/rockchip/rk_gmac.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.22 31-Dec-2023 skrll

Trailing whitespace


Revision tags: netbsd-10-0-RC2 thorpej-ifq-base thorpej-altq-separation-base netbsd-10-0-RC1 netbsd-10-base bouyer-sunxi-drm-base
# 1.21 12-Nov-2021 jmcneill

arm: rockchip: Add support for RK3288 SoC.

The Rockchip RK3288 is a quad core Cortex-A17 SoC.


# 1.20 07-Nov-2021 jmcneill

Handle RGMII variants.


Revision tags: thorpej-i2c-spi-conf2-base thorpej-futex2-base thorpej-cfargs2-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base thorpej-i2c-spi-conf-base thorpej-cfargs-base thorpej-futex-base
# 1.19 27-Jan-2021 thorpej

Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.


# 1.18 25-Jan-2021 thorpej

Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.


# 1.17 18-Jan-2021 thorpej

Remove "struct of_compat_data" and replace its usage with
"struct device_compatible_entry"; they are ABI-compatible.

Fix several "loses const qualifier" bugs encountered during
this conversion.


# 1.16 15-Jan-2021 ryo

use fdtbus_intr_establish_xname


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1 ad-namecache-base phil-wifi-20191119
# 1.15 09-Nov-2019 tnn

branches: 1.15.8;
rk_gmac: clean up code for setting up clock delay lines a bit

- break long lines
- move toggle to enable it under a single #ifdef notyet

I've tested it and it works, but I'm keeping the #ifdef notyet for now
because it didn't solve the original problem I was debugging.


Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base
# 1.14 21-Jul-2019 mrg

move DWCGMAC_MPSAFE into dwc_gmac_var.h and introduce an
additional define that is 0 or FDT_INTR_MPSAFE that the
frontends can use when passing to fdtbus_intr_establish().

with NET_MPSAFE enabled, this avoids hangs seen on rock64,
as well as finishing the MPSAFE port for this driver.

XXX: still don't know why the existing hangs occur.


# 1.13 08-Jul-2019 msaitoh

Add rnd(9) support.


Revision tags: phil-wifi-20190609
# 1.12 05-May-2019 jmcneill

RK3399: Skip setting RGMII TX/RX clock delayline parameters for now and
rely on the settings configured by firmware.


Revision tags: isaki-audio2-base
# 1.11 28-Feb-2019 msaitoh

Set RGMII delay for MAC side correctly on RK3399.


# 1.10 27-Feb-2019 msaitoh

Fix RGMII clock 25MHz setting (for 100Mbps).


# 1.9 23-Feb-2019 martin

Adjust all callers of dwc_gmac_attach, pass MII_PHY_ANY for now.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906
# 1.8 12-Aug-2018 jmcneill

Add support for Rockchip RK3399 SoC.


Revision tags: pgoyette-compat-0728
# 1.7 16-Jul-2018 christos

Add missing pointer <-> integer casts
Use PRI?64 to print uint64_t instead 'll?'


# 1.6 30-Jun-2018 jmcneill

Rock64 needs more time for the PHY to reset. Add a delay.


# 1.5 30-Jun-2018 jmcneill

Use syscon API


# 1.4 30-Jun-2018 jmcneill

Only install interrupt handler if dwc_gmac_attach succeeds.


Revision tags: phil-wifi-base pgoyette-compat-0625
# 1.3 19-Jun-2018 jmcneill

branches: 1.3.2; 1.3.4;
Disable threshhold mode for TX/RX DMA and ignore tx_delay/rx_delay props
for now. Fixes GMAC on RK3328.


# 1.2 17-Jun-2018 jmcneill

Enable gpio reset logic


# 1.1 16-Jun-2018 jmcneill

Add initial support for Rockchip RK3328 SoC.


# 1.21 12-Nov-2021 jmcneill

arm: rockchip: Add support for RK3288 SoC.

The Rockchip RK3288 is a quad core Cortex-A17 SoC.


# 1.20 07-Nov-2021 jmcneill

Handle RGMII variants.


Revision tags: thorpej-i2c-spi-conf2-base thorpej-futex2-base thorpej-cfargs2-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base thorpej-i2c-spi-conf-base thorpej-cfargs-base thorpej-futex-base
# 1.19 27-Jan-2021 thorpej

Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.


# 1.18 25-Jan-2021 thorpej

Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.


# 1.17 18-Jan-2021 thorpej

Remove "struct of_compat_data" and replace its usage with
"struct device_compatible_entry"; they are ABI-compatible.

Fix several "loses const qualifier" bugs encountered during
this conversion.


# 1.16 15-Jan-2021 ryo

use fdtbus_intr_establish_xname


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1 ad-namecache-base phil-wifi-20191119
# 1.15 09-Nov-2019 tnn

branches: 1.15.8;
rk_gmac: clean up code for setting up clock delay lines a bit

- break long lines
- move toggle to enable it under a single #ifdef notyet

I've tested it and it works, but I'm keeping the #ifdef notyet for now
because it didn't solve the original problem I was debugging.


Revision tags: netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base
# 1.14 21-Jul-2019 mrg

move DWCGMAC_MPSAFE into dwc_gmac_var.h and introduce an
additional define that is 0 or FDT_INTR_MPSAFE that the
frontends can use when passing to fdtbus_intr_establish().

with NET_MPSAFE enabled, this avoids hangs seen on rock64,
as well as finishing the MPSAFE port for this driver.

XXX: still don't know why the existing hangs occur.


# 1.13 08-Jul-2019 msaitoh

Add rnd(9) support.


Revision tags: phil-wifi-20190609
# 1.12 05-May-2019 jmcneill

RK3399: Skip setting RGMII TX/RX clock delayline parameters for now and
rely on the settings configured by firmware.


Revision tags: isaki-audio2-base
# 1.11 28-Feb-2019 msaitoh

Set RGMII delay for MAC side correctly on RK3399.


# 1.10 27-Feb-2019 msaitoh

Fix RGMII clock 25MHz setting (for 100Mbps).


# 1.9 23-Feb-2019 martin

Adjust all callers of dwc_gmac_attach, pass MII_PHY_ANY for now.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906
# 1.8 12-Aug-2018 jmcneill

Add support for Rockchip RK3399 SoC.


Revision tags: pgoyette-compat-0728
# 1.7 16-Jul-2018 christos

Add missing pointer <-> integer casts
Use PRI?64 to print uint64_t instead 'll?'


# 1.6 30-Jun-2018 jmcneill

Rock64 needs more time for the PHY to reset. Add a delay.


# 1.5 30-Jun-2018 jmcneill

Use syscon API


# 1.4 30-Jun-2018 jmcneill

Only install interrupt handler if dwc_gmac_attach succeeds.


Revision tags: phil-wifi-base pgoyette-compat-0625
# 1.3 19-Jun-2018 jmcneill

branches: 1.3.2; 1.3.4;
Disable threshhold mode for TX/RX DMA and ignore tx_delay/rx_delay props
for now. Fixes GMAC on RK3328.


# 1.2 17-Jun-2018 jmcneill

Enable gpio reset logic


# 1.1 16-Jun-2018 jmcneill

Add initial support for Rockchip RK3328 SoC.


# 1.20 07-Nov-2021 jmcneill

Handle RGMII variants.


Revision tags: thorpej-i2c-spi-conf2-base thorpej-futex2-base thorpej-cfargs2-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base thorpej-i2c-spi-conf-base thorpej-cfargs-base thorpej-futex-base
# 1.19 27-Jan-2021 thorpej

Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.


# 1.18 25-Jan-2021 thorpej

Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.


# 1.17 18-Jan-2021 thorpej

Remove "struct of_compat_data" and replace its usage with
"struct device_compatible_entry"; they are ABI-compatible.

Fix several "loses const qualifier" bugs encountered during
this conversion.


# 1.16 15-Jan-2021 ryo

use fdtbus_intr_establish_xname


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1 ad-namecache-base phil-wifi-20191119
# 1.15 09-Nov-2019 tnn

branches: 1.15.8;
rk_gmac: clean up code for setting up clock delay lines a bit

- break long lines
- move toggle to enable it under a single #ifdef notyet

I've tested it and it works, but I'm keeping the #ifdef notyet for now
because it didn't solve the original problem I was debugging.


Revision tags: netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base
# 1.14 21-Jul-2019 mrg

move DWCGMAC_MPSAFE into dwc_gmac_var.h and introduce an
additional define that is 0 or FDT_INTR_MPSAFE that the
frontends can use when passing to fdtbus_intr_establish().

with NET_MPSAFE enabled, this avoids hangs seen on rock64,
as well as finishing the MPSAFE port for this driver.

XXX: still don't know why the existing hangs occur.


# 1.13 08-Jul-2019 msaitoh

Add rnd(9) support.


Revision tags: phil-wifi-20190609
# 1.12 05-May-2019 jmcneill

RK3399: Skip setting RGMII TX/RX clock delayline parameters for now and
rely on the settings configured by firmware.


Revision tags: isaki-audio2-base
# 1.11 28-Feb-2019 msaitoh

Set RGMII delay for MAC side correctly on RK3399.


# 1.10 27-Feb-2019 msaitoh

Fix RGMII clock 25MHz setting (for 100Mbps).


# 1.9 23-Feb-2019 martin

Adjust all callers of dwc_gmac_attach, pass MII_PHY_ANY for now.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906
# 1.8 12-Aug-2018 jmcneill

Add support for Rockchip RK3399 SoC.


Revision tags: pgoyette-compat-0728
# 1.7 16-Jul-2018 christos

Add missing pointer <-> integer casts
Use PRI?64 to print uint64_t instead 'll?'


# 1.6 30-Jun-2018 jmcneill

Rock64 needs more time for the PHY to reset. Add a delay.


# 1.5 30-Jun-2018 jmcneill

Use syscon API


# 1.4 30-Jun-2018 jmcneill

Only install interrupt handler if dwc_gmac_attach succeeds.


Revision tags: phil-wifi-base pgoyette-compat-0625
# 1.3 19-Jun-2018 jmcneill

branches: 1.3.2; 1.3.4;
Disable threshhold mode for TX/RX DMA and ignore tx_delay/rx_delay props
for now. Fixes GMAC on RK3328.


# 1.2 17-Jun-2018 jmcneill

Enable gpio reset logic


# 1.1 16-Jun-2018 jmcneill

Add initial support for Rockchip RK3328 SoC.


# 1.19 27-Jan-2021 thorpej

Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.


# 1.18 25-Jan-2021 thorpej

Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.


# 1.17 18-Jan-2021 thorpej

Remove "struct of_compat_data" and replace its usage with
"struct device_compatible_entry"; they are ABI-compatible.

Fix several "loses const qualifier" bugs encountered during
this conversion.


# 1.16 15-Jan-2021 ryo

use fdtbus_intr_establish_xname


Revision tags: thorpej-futex-base bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1 ad-namecache-base phil-wifi-20191119
# 1.15 09-Nov-2019 tnn

rk_gmac: clean up code for setting up clock delay lines a bit

- break long lines
- move toggle to enable it under a single #ifdef notyet

I've tested it and it works, but I'm keeping the #ifdef notyet for now
because it didn't solve the original problem I was debugging.


Revision tags: netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base
# 1.14 21-Jul-2019 mrg

move DWCGMAC_MPSAFE into dwc_gmac_var.h and introduce an
additional define that is 0 or FDT_INTR_MPSAFE that the
frontends can use when passing to fdtbus_intr_establish().

with NET_MPSAFE enabled, this avoids hangs seen on rock64,
as well as finishing the MPSAFE port for this driver.

XXX: still don't know why the existing hangs occur.


# 1.13 08-Jul-2019 msaitoh

Add rnd(9) support.


Revision tags: phil-wifi-20190609
# 1.12 05-May-2019 jmcneill

RK3399: Skip setting RGMII TX/RX clock delayline parameters for now and
rely on the settings configured by firmware.


Revision tags: isaki-audio2-base
# 1.11 28-Feb-2019 msaitoh

Set RGMII delay for MAC side correctly on RK3399.


# 1.10 27-Feb-2019 msaitoh

Fix RGMII clock 25MHz setting (for 100Mbps).


# 1.9 23-Feb-2019 martin

Adjust all callers of dwc_gmac_attach, pass MII_PHY_ANY for now.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906
# 1.8 12-Aug-2018 jmcneill

Add support for Rockchip RK3399 SoC.


Revision tags: pgoyette-compat-0728
# 1.7 16-Jul-2018 christos

Add missing pointer <-> integer casts
Use PRI?64 to print uint64_t instead 'll?'


# 1.6 30-Jun-2018 jmcneill

Rock64 needs more time for the PHY to reset. Add a delay.


# 1.5 30-Jun-2018 jmcneill

Use syscon API


# 1.4 30-Jun-2018 jmcneill

Only install interrupt handler if dwc_gmac_attach succeeds.


Revision tags: phil-wifi-base pgoyette-compat-0625
# 1.3 19-Jun-2018 jmcneill

branches: 1.3.2; 1.3.4;
Disable threshhold mode for TX/RX DMA and ignore tx_delay/rx_delay props
for now. Fixes GMAC on RK3328.


# 1.2 17-Jun-2018 jmcneill

Enable gpio reset logic


# 1.1 16-Jun-2018 jmcneill

Add initial support for Rockchip RK3328 SoC.


# 1.18 25-Jan-2021 thorpej

Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.


# 1.17 18-Jan-2021 thorpej

Remove "struct of_compat_data" and replace its usage with
"struct device_compatible_entry"; they are ABI-compatible.

Fix several "loses const qualifier" bugs encountered during
this conversion.


# 1.16 15-Jan-2021 ryo

use fdtbus_intr_establish_xname


Revision tags: thorpej-futex-base bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1 ad-namecache-base phil-wifi-20191119
# 1.15 09-Nov-2019 tnn

rk_gmac: clean up code for setting up clock delay lines a bit

- break long lines
- move toggle to enable it under a single #ifdef notyet

I've tested it and it works, but I'm keeping the #ifdef notyet for now
because it didn't solve the original problem I was debugging.


Revision tags: netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base
# 1.14 21-Jul-2019 mrg

move DWCGMAC_MPSAFE into dwc_gmac_var.h and introduce an
additional define that is 0 or FDT_INTR_MPSAFE that the
frontends can use when passing to fdtbus_intr_establish().

with NET_MPSAFE enabled, this avoids hangs seen on rock64,
as well as finishing the MPSAFE port for this driver.

XXX: still don't know why the existing hangs occur.


# 1.13 08-Jul-2019 msaitoh

Add rnd(9) support.


Revision tags: phil-wifi-20190609
# 1.12 05-May-2019 jmcneill

RK3399: Skip setting RGMII TX/RX clock delayline parameters for now and
rely on the settings configured by firmware.


Revision tags: isaki-audio2-base
# 1.11 28-Feb-2019 msaitoh

Set RGMII delay for MAC side correctly on RK3399.


# 1.10 27-Feb-2019 msaitoh

Fix RGMII clock 25MHz setting (for 100Mbps).


# 1.9 23-Feb-2019 martin

Adjust all callers of dwc_gmac_attach, pass MII_PHY_ANY for now.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906
# 1.8 12-Aug-2018 jmcneill

Add support for Rockchip RK3399 SoC.


Revision tags: pgoyette-compat-0728
# 1.7 16-Jul-2018 christos

Add missing pointer <-> integer casts
Use PRI?64 to print uint64_t instead 'll?'


# 1.6 30-Jun-2018 jmcneill

Rock64 needs more time for the PHY to reset. Add a delay.


# 1.5 30-Jun-2018 jmcneill

Use syscon API


# 1.4 30-Jun-2018 jmcneill

Only install interrupt handler if dwc_gmac_attach succeeds.


Revision tags: phil-wifi-base pgoyette-compat-0625
# 1.3 19-Jun-2018 jmcneill

branches: 1.3.2; 1.3.4;
Disable threshhold mode for TX/RX DMA and ignore tx_delay/rx_delay props
for now. Fixes GMAC on RK3328.


# 1.2 17-Jun-2018 jmcneill

Enable gpio reset logic


# 1.1 16-Jun-2018 jmcneill

Add initial support for Rockchip RK3328 SoC.


# 1.17 18-Jan-2021 thorpej

Remove "struct of_compat_data" and replace its usage with
"struct device_compatible_entry"; they are ABI-compatible.

Fix several "loses const qualifier" bugs encountered during
this conversion.


# 1.16 15-Jan-2021 ryo

use fdtbus_intr_establish_xname


Revision tags: thorpej-futex-base bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1 ad-namecache-base phil-wifi-20191119
# 1.15 09-Nov-2019 tnn

rk_gmac: clean up code for setting up clock delay lines a bit

- break long lines
- move toggle to enable it under a single #ifdef notyet

I've tested it and it works, but I'm keeping the #ifdef notyet for now
because it didn't solve the original problem I was debugging.


Revision tags: netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base
# 1.14 21-Jul-2019 mrg

move DWCGMAC_MPSAFE into dwc_gmac_var.h and introduce an
additional define that is 0 or FDT_INTR_MPSAFE that the
frontends can use when passing to fdtbus_intr_establish().

with NET_MPSAFE enabled, this avoids hangs seen on rock64,
as well as finishing the MPSAFE port for this driver.

XXX: still don't know why the existing hangs occur.


# 1.13 08-Jul-2019 msaitoh

Add rnd(9) support.


Revision tags: phil-wifi-20190609
# 1.12 05-May-2019 jmcneill

RK3399: Skip setting RGMII TX/RX clock delayline parameters for now and
rely on the settings configured by firmware.


Revision tags: isaki-audio2-base
# 1.11 28-Feb-2019 msaitoh

Set RGMII delay for MAC side correctly on RK3399.


# 1.10 27-Feb-2019 msaitoh

Fix RGMII clock 25MHz setting (for 100Mbps).


# 1.9 23-Feb-2019 martin

Adjust all callers of dwc_gmac_attach, pass MII_PHY_ANY for now.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906
# 1.8 12-Aug-2018 jmcneill

Add support for Rockchip RK3399 SoC.


Revision tags: pgoyette-compat-0728
# 1.7 16-Jul-2018 christos

Add missing pointer <-> integer casts
Use PRI?64 to print uint64_t instead 'll?'


# 1.6 30-Jun-2018 jmcneill

Rock64 needs more time for the PHY to reset. Add a delay.


# 1.5 30-Jun-2018 jmcneill

Use syscon API


# 1.4 30-Jun-2018 jmcneill

Only install interrupt handler if dwc_gmac_attach succeeds.


Revision tags: phil-wifi-base pgoyette-compat-0625
# 1.3 19-Jun-2018 jmcneill

branches: 1.3.2; 1.3.4;
Disable threshhold mode for TX/RX DMA and ignore tx_delay/rx_delay props
for now. Fixes GMAC on RK3328.


# 1.2 17-Jun-2018 jmcneill

Enable gpio reset logic


# 1.1 16-Jun-2018 jmcneill

Add initial support for Rockchip RK3328 SoC.


# 1.16 15-Jan-2021 ryo

use fdtbus_intr_establish_xname


Revision tags: thorpej-futex-base bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1 ad-namecache-base phil-wifi-20191119
# 1.15 09-Nov-2019 tnn

rk_gmac: clean up code for setting up clock delay lines a bit

- break long lines
- move toggle to enable it under a single #ifdef notyet

I've tested it and it works, but I'm keeping the #ifdef notyet for now
because it didn't solve the original problem I was debugging.


Revision tags: netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base
# 1.14 21-Jul-2019 mrg

move DWCGMAC_MPSAFE into dwc_gmac_var.h and introduce an
additional define that is 0 or FDT_INTR_MPSAFE that the
frontends can use when passing to fdtbus_intr_establish().

with NET_MPSAFE enabled, this avoids hangs seen on rock64,
as well as finishing the MPSAFE port for this driver.

XXX: still don't know why the existing hangs occur.


# 1.13 08-Jul-2019 msaitoh

Add rnd(9) support.


Revision tags: phil-wifi-20190609
# 1.12 05-May-2019 jmcneill

RK3399: Skip setting RGMII TX/RX clock delayline parameters for now and
rely on the settings configured by firmware.


Revision tags: isaki-audio2-base
# 1.11 28-Feb-2019 msaitoh

Set RGMII delay for MAC side correctly on RK3399.


# 1.10 27-Feb-2019 msaitoh

Fix RGMII clock 25MHz setting (for 100Mbps).


# 1.9 23-Feb-2019 martin

Adjust all callers of dwc_gmac_attach, pass MII_PHY_ANY for now.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906
# 1.8 12-Aug-2018 jmcneill

Add support for Rockchip RK3399 SoC.


Revision tags: pgoyette-compat-0728
# 1.7 16-Jul-2018 christos

Add missing pointer <-> integer casts
Use PRI?64 to print uint64_t instead 'll?'


# 1.6 30-Jun-2018 jmcneill

Rock64 needs more time for the PHY to reset. Add a delay.


# 1.5 30-Jun-2018 jmcneill

Use syscon API


# 1.4 30-Jun-2018 jmcneill

Only install interrupt handler if dwc_gmac_attach succeeds.


Revision tags: phil-wifi-base pgoyette-compat-0625
# 1.3 19-Jun-2018 jmcneill

branches: 1.3.2; 1.3.4;
Disable threshhold mode for TX/RX DMA and ignore tx_delay/rx_delay props
for now. Fixes GMAC on RK3328.


# 1.2 17-Jun-2018 jmcneill

Enable gpio reset logic


# 1.1 16-Jun-2018 jmcneill

Add initial support for Rockchip RK3328 SoC.


# 1.15 09-Nov-2019 tnn

rk_gmac: clean up code for setting up clock delay lines a bit

- break long lines
- move toggle to enable it under a single #ifdef notyet

I've tested it and it works, but I'm keeping the #ifdef notyet for now
because it didn't solve the original problem I was debugging.


Revision tags: netbsd-9-base
# 1.14 21-Jul-2019 mrg

move DWCGMAC_MPSAFE into dwc_gmac_var.h and introduce an
additional define that is 0 or FDT_INTR_MPSAFE that the
frontends can use when passing to fdtbus_intr_establish().

with NET_MPSAFE enabled, this avoids hangs seen on rock64,
as well as finishing the MPSAFE port for this driver.

XXX: still don't know why the existing hangs occur.


# 1.13 08-Jul-2019 msaitoh

Add rnd(9) support.


Revision tags: phil-wifi-20190609
# 1.12 05-May-2019 jmcneill

RK3399: Skip setting RGMII TX/RX clock delayline parameters for now and
rely on the settings configured by firmware.


Revision tags: isaki-audio2-base
# 1.11 28-Feb-2019 msaitoh

Set RGMII delay for MAC side correctly on RK3399.


# 1.10 27-Feb-2019 msaitoh

Fix RGMII clock 25MHz setting (for 100Mbps).


# 1.9 23-Feb-2019 martin

Adjust all callers of dwc_gmac_attach, pass MII_PHY_ANY for now.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906
# 1.8 12-Aug-2018 jmcneill

Add support for Rockchip RK3399 SoC.


Revision tags: pgoyette-compat-0728
# 1.7 16-Jul-2018 christos

Add missing pointer <-> integer casts
Use PRI?64 to print uint64_t instead 'll?'


# 1.6 30-Jun-2018 jmcneill

Rock64 needs more time for the PHY to reset. Add a delay.


# 1.5 30-Jun-2018 jmcneill

Use syscon API


# 1.4 30-Jun-2018 jmcneill

Only install interrupt handler if dwc_gmac_attach succeeds.


Revision tags: phil-wifi-base pgoyette-compat-0625
# 1.3 19-Jun-2018 jmcneill

branches: 1.3.2; 1.3.4;
Disable threshhold mode for TX/RX DMA and ignore tx_delay/rx_delay props
for now. Fixes GMAC on RK3328.


# 1.2 17-Jun-2018 jmcneill

Enable gpio reset logic


# 1.1 16-Jun-2018 jmcneill

Add initial support for Rockchip RK3328 SoC.


# 1.14 21-Jul-2019 mrg

move DWCGMAC_MPSAFE into dwc_gmac_var.h and introduce an
additional define that is 0 or FDT_INTR_MPSAFE that the
frontends can use when passing to fdtbus_intr_establish().

with NET_MPSAFE enabled, this avoids hangs seen on rock64,
as well as finishing the MPSAFE port for this driver.

XXX: still don't know why the existing hangs occur.


# 1.13 08-Jul-2019 msaitoh

Add rnd(9) support.


Revision tags: phil-wifi-20190609
# 1.12 05-May-2019 jmcneill

RK3399: Skip setting RGMII TX/RX clock delayline parameters for now and
rely on the settings configured by firmware.


Revision tags: isaki-audio2-base
# 1.11 28-Feb-2019 msaitoh

Set RGMII delay for MAC side correctly on RK3399.


# 1.10 27-Feb-2019 msaitoh

Fix RGMII clock 25MHz setting (for 100Mbps).


# 1.9 23-Feb-2019 martin

Adjust all callers of dwc_gmac_attach, pass MII_PHY_ANY for now.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906
# 1.8 12-Aug-2018 jmcneill

Add support for Rockchip RK3399 SoC.


Revision tags: pgoyette-compat-0728
# 1.7 16-Jul-2018 christos

Add missing pointer <-> integer casts
Use PRI?64 to print uint64_t instead 'll?'


# 1.6 30-Jun-2018 jmcneill

Rock64 needs more time for the PHY to reset. Add a delay.


# 1.5 30-Jun-2018 jmcneill

Use syscon API


# 1.4 30-Jun-2018 jmcneill

Only install interrupt handler if dwc_gmac_attach succeeds.


Revision tags: phil-wifi-base pgoyette-compat-0625
# 1.3 19-Jun-2018 jmcneill

branches: 1.3.2; 1.3.4;
Disable threshhold mode for TX/RX DMA and ignore tx_delay/rx_delay props
for now. Fixes GMAC on RK3328.


# 1.2 17-Jun-2018 jmcneill

Enable gpio reset logic


# 1.1 16-Jun-2018 jmcneill

Add initial support for Rockchip RK3328 SoC.


# 1.13 08-Jul-2019 msaitoh

Add rnd(9) support.


Revision tags: phil-wifi-20190609
# 1.12 05-May-2019 jmcneill

RK3399: Skip setting RGMII TX/RX clock delayline parameters for now and
rely on the settings configured by firmware.


Revision tags: isaki-audio2-base
# 1.11 28-Feb-2019 msaitoh

Set RGMII delay for MAC side correctly on RK3399.


# 1.10 27-Feb-2019 msaitoh

Fix RGMII clock 25MHz setting (for 100Mbps).


# 1.9 23-Feb-2019 martin

Adjust all callers of dwc_gmac_attach, pass MII_PHY_ANY for now.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906
# 1.8 12-Aug-2018 jmcneill

Add support for Rockchip RK3399 SoC.


Revision tags: pgoyette-compat-0728
# 1.7 16-Jul-2018 christos

Add missing pointer <-> integer casts
Use PRI?64 to print uint64_t instead 'll?'


# 1.6 30-Jun-2018 jmcneill

Rock64 needs more time for the PHY to reset. Add a delay.


# 1.5 30-Jun-2018 jmcneill

Use syscon API


# 1.4 30-Jun-2018 jmcneill

Only install interrupt handler if dwc_gmac_attach succeeds.


Revision tags: phil-wifi-base pgoyette-compat-0625
# 1.3 19-Jun-2018 jmcneill

branches: 1.3.2; 1.3.4;
Disable threshhold mode for TX/RX DMA and ignore tx_delay/rx_delay props
for now. Fixes GMAC on RK3328.


# 1.2 17-Jun-2018 jmcneill

Enable gpio reset logic


# 1.1 16-Jun-2018 jmcneill

Add initial support for Rockchip RK3328 SoC.


# 1.12 05-May-2019 jmcneill

RK3399: Skip setting RGMII TX/RX clock delayline parameters for now and
rely on the settings configured by firmware.


Revision tags: isaki-audio2-base
# 1.11 28-Feb-2019 msaitoh

Set RGMII delay for MAC side correctly on RK3399.


# 1.10 27-Feb-2019 msaitoh

Fix RGMII clock 25MHz setting (for 100Mbps).


# 1.9 23-Feb-2019 martin

Adjust all callers of dwc_gmac_attach, pass MII_PHY_ANY for now.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906
# 1.8 12-Aug-2018 jmcneill

Add support for Rockchip RK3399 SoC.


Revision tags: pgoyette-compat-0728
# 1.7 16-Jul-2018 christos

Add missing pointer <-> integer casts
Use PRI?64 to print uint64_t instead 'll?'


# 1.6 30-Jun-2018 jmcneill

Rock64 needs more time for the PHY to reset. Add a delay.


# 1.5 30-Jun-2018 jmcneill

Use syscon API


# 1.4 30-Jun-2018 jmcneill

Only install interrupt handler if dwc_gmac_attach succeeds.


Revision tags: phil-wifi-base pgoyette-compat-0625
# 1.3 19-Jun-2018 jmcneill

branches: 1.3.2;
Disable threshhold mode for TX/RX DMA and ignore tx_delay/rx_delay props
for now. Fixes GMAC on RK3328.


# 1.2 17-Jun-2018 jmcneill

Enable gpio reset logic


# 1.1 16-Jun-2018 jmcneill

Add initial support for Rockchip RK3328 SoC.


Revision tags: isaki-audio2-base
# 1.11 28-Feb-2019 msaitoh

Set RGMII delay for MAC side correctly on RK3399.


# 1.10 27-Feb-2019 msaitoh

Fix RGMII clock 25MHz setting (for 100Mbps).


# 1.9 23-Feb-2019 martin

Adjust all callers of dwc_gmac_attach, pass MII_PHY_ANY for now.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906
# 1.8 12-Aug-2018 jmcneill

Add support for Rockchip RK3399 SoC.


Revision tags: pgoyette-compat-0728
# 1.7 16-Jul-2018 christos

Add missing pointer <-> integer casts
Use PRI?64 to print uint64_t instead 'll?'


# 1.6 30-Jun-2018 jmcneill

Rock64 needs more time for the PHY to reset. Add a delay.


# 1.5 30-Jun-2018 jmcneill

Use syscon API


# 1.4 30-Jun-2018 jmcneill

Only install interrupt handler if dwc_gmac_attach succeeds.


Revision tags: phil-wifi-base pgoyette-compat-0625
# 1.3 19-Jun-2018 jmcneill

branches: 1.3.2;
Disable threshhold mode for TX/RX DMA and ignore tx_delay/rx_delay props
for now. Fixes GMAC on RK3328.


# 1.2 17-Jun-2018 jmcneill

Enable gpio reset logic


# 1.1 16-Jun-2018 jmcneill

Add initial support for Rockchip RK3328 SoC.