diff options
author | david.li <david.li@starfivetech.com> | 2021-05-14 09:44:24 +0300 |
---|---|---|
committer | david.li <david.li@starfivetech.com> | 2021-05-14 09:44:24 +0300 |
commit | 7c77a38cab8d3d6454e6d34dc7906308feabe196 (patch) | |
tree | c52c0193776e6ae89b02e7ff045d90b5a36b80f4 | |
parent | 951229b4b6e0c90e4d1e7f6b4d0fc95fb57a1fbd (diff) | |
download | linux-7c77a38cab8d3d6454e6d34dc7906308feabe196.tar.xz |
[usdk] support TDA998x[hdmi display] && support camera[imx219]
-rwxr-xr-x | drivers/media/platform/starfive/Kconfig | 4 | ||||
-rwxr-xr-x[-rw-r--r--] | drivers/media/platform/starfive/Makefile | 1 | ||||
-rwxr-xr-x[-rw-r--r--] | drivers/media/platform/starfive/stf_vin.c | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | drivers/video/fbdev/starfive/tda998x.c | 2 |
4 files changed, 7 insertions, 2 deletions
diff --git a/drivers/media/platform/starfive/Kconfig b/drivers/media/platform/starfive/Kconfig index addd89a9439e..af55c6a22e25 100755 --- a/drivers/media/platform/starfive/Kconfig +++ b/drivers/media/platform/starfive/Kconfig @@ -8,6 +8,10 @@ config VIN_SENSOR_OV5640 help Say Y here if you want to have support for VIN sensor OV5640 +config VIDEO_STARFIVE_VIN_SENSOR_IMX219 + bool "Sony IMX219 CMOS Image Sensor" + help + Say Y here if you want to have support for VIN sensor IMX219 config VIN_SENSOR_SC2235 bool "VIN SENSOR support SC2235" depends on VIDEO_STF_VIN diff --git a/drivers/media/platform/starfive/Makefile b/drivers/media/platform/starfive/Makefile index ad002878c79d..d61232c583ed 100644..100755 --- a/drivers/media/platform/starfive/Makefile +++ b/drivers/media/platform/starfive/Makefile @@ -5,5 +5,6 @@ obj-$(CONFIG_VIN_SENSOR_OV5640) += ov5640_dvp.o obj-$(CONFIG_VIN_SENSOR_SC2235) += sc2235.o +obj-$(CONFIG_VIDEO_STARFIVE_VIN_SENSOR_IMX219) += imx219_mipi.o obj-$(CONFIG_VIN_SENSOR_OV4689) += ov4689_mipi.o obj-$(CONFIG_VIDEO_STF_VIN) += stf_vin.o stf_event.o stf_isp.o stf_csi.o diff --git a/drivers/media/platform/starfive/stf_vin.c b/drivers/media/platform/starfive/stf_vin.c index dd1094b2bc85..925f68a145e8 100644..100755 --- a/drivers/media/platform/starfive/stf_vin.c +++ b/drivers/media/platform/starfive/stf_vin.c @@ -918,7 +918,7 @@ static void __exit stf_vin_cleanup(void) #if defined(CONFIG_VIN_SENSOR_SC2235) || defined(CONFIG_VIN_SENSOR_OV5640) fs_initcall(stf_vin_init); -#elif defined(CONFIG_VIN_SENSOR_OV4689) +#elif defined(CONFIG_VIN_SENSOR_OV4689) || defined(CONFIG_VIDEO_STARFIVE_VIN_SENSOR_IMX219) subsys_initcall(stf_vin_init); #endif diff --git a/drivers/video/fbdev/starfive/tda998x.c b/drivers/video/fbdev/starfive/tda998x.c index 61ad31d58de9..6d39359e06d8 100644..100755 --- a/drivers/video/fbdev/starfive/tda998x.c +++ b/drivers/video/fbdev/starfive/tda998x.c @@ -2213,7 +2213,7 @@ static int tda998x_probe(struct i2c_client *client, const struct i2c_device_id * { int ret; struct sf_fb_display_dev *display_dev = NULL; - + printk("lqw tda998x_probe\n"); if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) { dev_warn(&client->dev, "adapter does not support I2C\n"); return -EIO; |