Skip to content

Commit

Permalink
Add rock5c support
Browse files Browse the repository at this point in the history
  • Loading branch information
amazingfate authored and igorpecovnik committed Apr 27, 2024
1 parent 33b3aab commit a1ae713
Show file tree
Hide file tree
Showing 3 changed files with 1,027 additions and 0 deletions.
30 changes: 30 additions & 0 deletions config/boards/rock-5c.csc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Rockchip RK3588s SoC octa core 4-16GB SoC eMMC USB3 NvME
BOARD_NAME="Rock 5C"
BOARDFAMILY="rockchip-rk3588"
BOARD_MAINTAINER="amazingfate"
BOOTCONFIG="rock-5c-rk3588s_defconfig"
KERNEL_TARGET="vendor,edge"
FULL_DESKTOP="yes"
BOOT_LOGO="desktop"
BOOT_FDT_FILE="rockchip/rk3588s-rock-5c.dtb"
BOOT_SCENARIO="spl-blobs"
BOOT_SOC="rk3588"
IMAGE_PARTITION_TABLE="gpt"

function post_family_config__uboot_rock5c() {
display_alert "$BOARD" "Configuring armsom u-boot" "info"
declare -g BOOTSOURCE='https://github.com/radxa/u-boot.git'
declare -g BOOTBRANCH="branch:next-dev-v2024.03"
declare -g OVERLAY_PREFIX='rockchip-rk3588'
declare -g BOOTDELAY=1 # build injects this into u-boot config. we can then get into UMS mode and avoid the whole rockusb/rkdeveloptool thing
}

function post_family_tweaks__rock5c_naming_audios() {
display_alert "$BOARD" "Renaming rock5c audios" "info"

mkdir -p $SDCARD/etc/udev/rules.d/
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-hdmi0-sound", ENV{SOUND_DESCRIPTION}="HDMI0 Audio"' > $SDCARD/etc/udev/rules.d/90-naming-audios.rules
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-es8316-sound", ENV{SOUND_DESCRIPTION}="ES8316 Audio"' >> $SDCARD/etc/udev/rules.d/90-naming-audios.rules

return 0
}
Loading

0 comments on commit a1ae713

Please sign in to comment.