forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rockchip64-edge: add rkvdec2 for rk356x
- Loading branch information
1 parent
e1f75f9
commit e1a6427
Showing
4 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
patch/kernel/archive/rockchip64-6.10/media-0001-Add-rkvdec2-Support-v3.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../rockchip-rk3588-6.10/0027-RK3588-Add-rkvdec2-Support-v3.patch |
1 change: 1 addition & 0 deletions
1
...l/archive/rockchip64-6.10/media-0002-v4l2-core-Initialize-h264-frame_mbs_only_flag-.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../rockchip-rk3588-6.10/0028-media-v4l2-core-Initialize-h264-frame_mbs_only_flag-.patch |
59 changes: 59 additions & 0 deletions
59
patch/kernel/archive/rockchip64-6.10/rk356x-add-rkvdec2-support.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi | ||
index d8543b555..37141f416 100644 | ||
--- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi | ||
+++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi | ||
@@ -449,6 +449,19 @@ usb2phy1_grf: syscon@fdca8000 { | ||
reg = <0x0 0xfdca8000 0x0 0x8000>; | ||
}; | ||
|
||
+ sram@fdcc0000 { | ||
+ compatible = "mmio-sram"; | ||
+ reg = <0x0 0xfdcc0000 0x0 0xb000>; | ||
+ #address-cells = <1>; | ||
+ #size-cells = <1>; | ||
+ ranges = <0x0 0x0 0xfdcc0000 0xb000>; | ||
+ | ||
+ vdec_sram: rkvdec-sram@0 { | ||
+ reg = <0x0 0xb000>; | ||
+ pool; | ||
+ }; | ||
+ }; | ||
+ | ||
pmucru: clock-controller@fdd00000 { | ||
compatible = "rockchip,rk3568-pmucru"; | ||
reg = <0x0 0xfdd00000 0x0 0x1000>; | ||
@@ -635,7 +648,7 @@ gpu: gpu@fde60000 { | ||
}; | ||
|
||
vpu: video-codec@fdea0400 { | ||
- compatible = "rockchip,rk3568-vpu"; | ||
+ compatible = "rockchip,rk3328-vpu"; | ||
reg = <0x0 0xfdea0000 0x0 0x800>; | ||
interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>; | ||
interrupt-names = "vdpu"; | ||
@@ -686,6 +699,25 @@ vepu_mmu: iommu@fdee0800 { | ||
#iommu-cells = <0>; | ||
}; | ||
|
||
+ vdec: video-codec@fdf80200 { | ||
+ compatible = "rockchip,rk3588-vdec"; | ||
+ reg = <0x0 0xfdf80200 0x0 0x500>; | ||
+ interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH 0>; | ||
+ clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>, <&cru CLK_RKVDEC_CA>, | ||
+ <&cru CLK_RKVDEC_CORE>, <&cru CLK_RKVDEC_HEVC_CA>; | ||
+ clock-names = "axi", "ahb", "cabac", "core", "hevc_cabac"; | ||
+ assigned-clocks = <&cru ACLK_RKVDEC>, <&cru CLK_RKVDEC_CORE>, | ||
+ <&cru CLK_RKVDEC_CA>, <&cru CLK_RKVDEC_HEVC_CA>; | ||
+ assigned-clock-rates = <297000000>, <297000000>, | ||
+ <297000000>, <297000000>; | ||
+ resets = <&cru SRST_A_RKVDEC>, <&cru SRST_H_RKVDEC>, <&cru SRST_RKVDEC_CA>, | ||
+ <&cru SRST_RKVDEC_CORE>, <&cru SRST_RKVDEC_HEVC_CA>; | ||
+ reset-names = "rst_axi", "rst_ahb", "rst_cabac", | ||
+ "rst_core", "rst_hevc_cabac"; | ||
+ power-domains = <&power RK3568_PD_RKVDEC>; | ||
+ sram = <&vdec_sram>; | ||
+ }; | ||
+ | ||
sdmmc2: mmc@fe000000 { | ||
compatible = "rockchip,rk3568-dw-mshc", "rockchip,rk3288-dw-mshc"; | ||
reg = <0x0 0xfe000000 0x0 0x4000>; |