Skip to content

Commit

Permalink
feat: linux: rk2312: init
Browse files Browse the repository at this point in the history
Signed-off-by: ZHANG Yuntian <[email protected]>
  • Loading branch information
RadxaYuntian committed Mar 8, 2024
1 parent e5f3bc5 commit cf1c7c9
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 0 deletions.
28 changes: 28 additions & 0 deletions linux/rk2312/0001-Disable-warnings.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: ZHANG Yuntian <[email protected]>
Date: Mon, 4 Mar 2024 17:00:58 +0800
Subject: [PATCH] Disable warnings

---
Makefile | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/Makefile b/Makefile
index 69cdd0d2946c3..585cba7482248 100644
--- a/Makefile
+++ b/Makefile
@@ -1083,6 +1088,11 @@ KBUILD_CFLAGS += $(call cc-option,-Werror=designated-init)
# change __FILE__ to the relative path from the srctree
KBUILD_CPPFLAGS += $(call cc-option,-fmacro-prefix-map=$(srctree)/=)

+# Disable warnings in Rockchip drivers
+KBUILD_CFLAGS += $(call cc-disable-warning, unused-variable)
+KBUILD_CFLAGS += $(call cc-disable-warning, incompatible-pointer-types)
+KBUILD_CFLAGS += $(call cc-disable-warning, return-type)
+
# include additional Makefiles when needed
include-y := scripts/Makefile.extrawarn
include-$(CONFIG_DEBUG_INFO) += scripts/Makefile.debug
--
2.44.0

1 change: 1 addition & 0 deletions linux/rk2312/0001-common
1 change: 1 addition & 0 deletions linux/rk2312/0002-rockchip
7 changes: 7 additions & 0 deletions linux/rk2312/fork.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
BSP_GIT="https://github.com/radxa/kernel.git"
BSP_BRANCH="linux-6.1-stan-rkr1"
BSP_DEFCONFIG="rockchip_linux_defconfig"
SUPPORTED_BOARDS=(
"rk2312"
#"rock-5b"
)
17 changes: 17 additions & 0 deletions linux/rk2312/kconfig.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Disable outdated pwm-gpio driver
# Could be replaced with:
# https://patchwork.ozlabs.org/project/linux-gpio/list/?series=393553
# CONFIG_PWM_GPIO is not set

# enum dw_pcie_as_type is declared in pcie-dw-rockchip.c,
# but not in pcie-dw-ep-rockchip.c
# CONFIG_PCIE_DW_ROCKCHIP_EP is not set

# RK3399's midgard driver is not updated yet
# CONFIG_MALI_MIDGARD is not set

# RK3588 uses Valhall so disable this outdated driver as well
# CONFIG_MALI400 is not set

# cpufreq_interactive uses unexported functions
CONFIG_CPU_FREQ_GOV_INTERACTIVE=y

0 comments on commit cf1c7c9

Please sign in to comment.