mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
vdin1: g12a-androidu bringup [1/1]
PD#SWPL-133642 Problem: 1、g12a kernel5.15 bringup 2、The vdin0 node is not open resulting in a null pointer Solution: g12a viu loopback bringup pass Verify: g12a androidu kernel5.15 Change-Id: If5a9ac8159c31a4d8e09596ad32de7a979a56d01 Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
This commit is contained in:
@@ -1522,7 +1522,7 @@
|
||||
/*if you want to use vdin just modify status to "ok"*/
|
||||
&vdin0 {
|
||||
/*memory-region = <&vdin0_cma_reserved>;*/
|
||||
status = "disabled";
|
||||
/* status = "disabled"; */
|
||||
/* up to 1920x1080 yuv422 8bit and 5 buffers
|
||||
* 1920x1080x2x5 = 20 M
|
||||
*/
|
||||
@@ -1539,7 +1539,7 @@
|
||||
|
||||
&vdin1 {
|
||||
memory-region = <&vdin1_cma_reserved>;
|
||||
status = "disabled";
|
||||
/* status = "disabled"; */
|
||||
/*vdin write mem color depth support:
|
||||
*bit0:support 8bit
|
||||
*bit1:support 9bit
|
||||
|
||||
@@ -1139,7 +1139,7 @@
|
||||
|
||||
/*if you want to use vdin just modify status to "ok"*/
|
||||
vdin0: vdin0 {
|
||||
compatible = "amlogic, vdin";
|
||||
compatible = "amlogic, vdin-g12a";
|
||||
dev_name = "vdin0";
|
||||
status = "disabled";
|
||||
reserve-iomap = "true";
|
||||
@@ -1161,11 +1161,11 @@
|
||||
vdin_id = <0>;
|
||||
};
|
||||
vdin1: vdin1 {
|
||||
compatible = "amlogic, vdin";
|
||||
compatible = "amlogic, vdin-g12a";
|
||||
dev_name = "vdin1";
|
||||
status = "disabled";
|
||||
status = "okay";
|
||||
reserve-iomap = "true";
|
||||
flag_cma = <0>;/*1:share with codec_mm;0:cma alone*/
|
||||
flag_cma = <100>;/*1:share with codec_mm;0:cma alone*/
|
||||
interrupts = <0 85 1>;
|
||||
rdma-irq = <4>;
|
||||
/*clocks = <&clock CLK_FPLL_DIV5>,
|
||||
|
||||
@@ -1657,7 +1657,7 @@ static void vdin_manual_matrix_csc(enum vdin_matrix_csc_e *matrix_csc)
|
||||
struct vdin_dev_s *devp;
|
||||
|
||||
devp = vdin_get_dev(0);
|
||||
if (!devp->debug.manual_change_csc)
|
||||
if (!devp || !devp->debug.manual_change_csc)
|
||||
return;
|
||||
|
||||
if (devp->debug.manual_change_csc >= VDIN_MATRIX_MAX)
|
||||
|
||||
@@ -5606,6 +5606,15 @@ static const struct match_data_s vdin_dt_xxx = {
|
||||
.vdin0_line_buff_size = 0xf00, .vdin1_line_buff_size = 0xf00,
|
||||
};
|
||||
|
||||
const struct match_data_s vdin_dt_g12a = {
|
||||
.name = "vdin",
|
||||
.hw_ver = VDIN_HW_ORG,
|
||||
.vdin0_en = 1, .vdin1_en = 1,
|
||||
.de_tunnel_tunnel = 0, .ipt444_to_422_12bit = 0,
|
||||
.vdin0_line_buff_size = 0x780, .vdin1_line_buff_size = 0x780,
|
||||
.vdin0_max_w_h = 0, .vdin1_set_hdr = false,
|
||||
};
|
||||
|
||||
#ifndef CONFIG_AMLOGIC_ZAPPER_CUT
|
||||
#ifndef CONFIG_AMLOGIC_REMOVE_OLD
|
||||
const struct match_data_s vdin_dt_tl1 = {
|
||||
@@ -5771,6 +5780,10 @@ static const struct of_device_id vdin_dt_match[] = {
|
||||
.compatible = "amlogic, vdin",
|
||||
.data = &vdin_dt_xxx,
|
||||
},
|
||||
{
|
||||
.compatible = "amlogic, vdin-g12a",
|
||||
.data = &vdin_dt_g12a,
|
||||
},
|
||||
#ifndef CONFIG_AMLOGIC_REMOVE_OLD
|
||||
{
|
||||
.compatible = "amlogic, vdin-tl1",
|
||||
|
||||
Reference in New Issue
Block a user