HomeFreeBSD

MFC r354087, r354089, r354094, r354100, r354103, r354152

Description

MFC r354087, r354089, r354094, r354100, r354103, r354152

r354087:
arm64: rk3399: Add clock and gate for usb3 clocks

r354089:
arm64: rockchip: Add RK3399 TypeC phy driver

This is a driver for the USB3 PHY present in the RK3399.
While the phy support DP (Display Port) the driver doesn't has we have
no driver to test this with for now.
All the lane and pll configuration is just magic values from rockchip.
While the manual have some info on those registers it's really hard to
understand how to calculate those values (if there is a way).

r354094 by peterj:
Fix use of uninitialised variable.

The RK805 regs array was being allocated before it's required size was
known, causing the driver to use memory it didn't own. That memory
was subsequently allocated and used elsewhere causing later fatal data
aborts in rk805_map().

Whilst I'm here, add a sanity check to catch unsupported PMICs (this
shouldn't ever get hit because the probe should have failed).

Reviewed by: manu
Sponsored by: Google

r354100 by gonzo:
arm64: rk3399: Add clock and gate for SPI clocks

r354103 by gonzo:
arm64: rk3399: add SPI driver and include it in GENERIC config

SPI driver for Rockchip's RK3399 SoC. Implements PIO mode, CS selection,
SPI mode and frequency configuration.

Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D22148

r354152:
arm64: rockchip: typec_phy: Rename timeout to retry

Declare retry in the function scope.
Rename it to retry as there is a timeout function which was
causing to code to compile.

Reported by: jhibbits
X-MFC-WITH: r354089

Details

Provenance
manuAuthored on
Reviewer
manu
Differential Revision
D22148: Add SPI driver for Rockchip platform
Parents
rS358640: MFC r349638, r350161, r351186
Branches
Unknown
Tags
Unknown