Skip to content

Commit

Permalink
nanopct6(-lts): edge: u-boot: pull upstream/dts v6.13-rc5-dts for…
Browse files Browse the repository at this point in the history
… USB3 Type-A

- to enable USB3 Type-A host port (
  - ref torvalds/linux@a6ae420
  • Loading branch information
rpardini authored and igorpecovnik committed Jan 7, 2025
1 parent 59a4040 commit e97ed01
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions config/boards/nanopct6.conf
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,20 @@ function pre_config_uboot_target__nanoptc6_patch_uboot_dtsi_for_ums() {
run_host_command_logged cp "arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi" "arch/arm/dts/rk3588-nanopc-t6-lts-u-boot.dtsi"
}

# Pull in a newer upstream/dts, which has a fix for the USB3 Type-A (host); this enables booting high speed USB3 devices (https://github.com/torvalds/linux/commit/a6ae420439dc47a58550a6e61e596e9dd1562caf)
# See https://docs.u-boot.org/en/latest/develop/devicetree/control.html#resyncing-with-devicetree-rebasing
# @TODO this probably can be removed for 2025.04
function pre_config_uboot_target__nanoptc6_patch_uboot_dtsi_for_ums() {
[[ "${BRANCH}" != "edge" ]] && return 0

regular_git add . || true
regular_git commit -m "commit pre update OF upstream so that tree is clean" || true
run_host_command_logged bash tools/update-subtree.sh pull dts v6.13-rc5-dts "||" true # do not fail as conflicts are expected
regular_git checkout --theirs dts/upstream # "accept theirs" on all conflicts
regular_git add dts/upstream
regular_git commit -m "Update OF upstream to v6.13-rc5-dts and accept theirs on all conflicts"
}

function post_config_uboot_target__extra_configs_for_nanopct6_mainline_environment_in_spi() {
[[ "${BRANCH}" != "edge" ]] && return 0

Expand Down

0 comments on commit e97ed01

Please sign in to comment.