This patch adds support for the cvitek flavor of the DWC ethernet
controller. This controller is present on the Milk-V riscv SoCs.
Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
You should add the file to one of the std.XXX file in sys/riscv/conf
sys/dev/dwc/if_dwc_cvitek.c | ||
---|---|---|
80 | No syscon handle in the device dtb node ? |
sys/dev/dwc/if_dwc_cvitek.c | ||
---|---|---|
80 | What do you mean ? You're not supposed to modify the dtb but follow the bindings. |
sys/dev/dwc/if_dwc_cvitek.c | ||
---|---|---|
80 | The bindings required a few smaller interventions in other places to make things work, and in the previous diff I just added a syscon phandle reference to avoid the hacky way of searching for a syscon. However, after some more digging, it turned out that the steps in the init method were not required at all, the driver works without the clock-related steps fomr the init procedure. |
sys/dev/dwc/if_dwc_cvitek.c | ||
---|---|---|
80 | Probably because u-boot have init the controller already, it's likely needed. |
sys/dev/dwc/if_dwc_cvitek.c | ||
---|---|---|
80 | sorry, managed to miss your comment. |
@manu are there any leftover issues here that you'd like to see addressed? I'm not entirely sure what is blocking this review at the moment.