Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aic8800 driver for Rock 3C variant #6672

Merged
merged 2 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config/boards/rock-3c.csc
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ BOOT_FDT_FILE="rockchip/rk3566-rock-3c.dtb"
IMAGE_PARTITION_TABLE="gpt"
BOOT_SCENARIO="spl-blobs"
BOOTFS_TYPE="fat"
enable_extension "radxa-aic8800"
AIC8800_TYPE="sdio"
6 changes: 6 additions & 0 deletions extensions/radxa-aic8800.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
function extension_finish_config__install_kernel_headers_for_aic8800_dkms() {

if [[ ( "${KERNEL_MAJOR_MINOR}" > 6.6 ) ]]; then
display_alert "Driver compilation is not supported on kernel ${KERNEL_MAJOR_MINOR} or higher" "skipping aic8800 dkms for kernel v${KERNEL_MAJOR_MINOR}" "warn"
return 0
fi

if [[ "${KERNEL_HAS_WORKING_HEADERS}" != "yes" ]]; then
display_alert "Kernel version has no working headers package" "skipping aic8800 dkms for kernel v${KERNEL_MAJOR_MINOR}" "warn"
return 0
Expand Down