err = of_property_read_string(dev->of_node->parent,"compatible",&compatible);
rk_camera_platform_data.rockchip_name = compatible;
- vpu_node = of_find_compatible_node(NULL,NULL, "vpu_service");
+ vpu_node = of_find_compatible_node(NULL,NULL, "rockchip,vpu_sub");
if(vpu_node){
err = of_property_read_u32(vpu_node, "iommu_enabled", &vpu_iommu_enabled);
rk_camera_platform_data.iommu_enabled = vpu_iommu_enabled;
- }
+ }else{
+ printk("get vpu_node failed,vpu_iommu_enabled == 0 !!!!!!\n");
+}
if (err < 0){
printk(KERN_EMERG "Get rockchip compatible failed!!!!!!");
*v0.1.a:
1. Support rk3288 cif driver
2. Query and upload iommu info
+*v0.1.b:
+ 1. Vpu_service compatible has change ,fix it.
*/
-#define RK_CAM_VERSION_CODE KERNEL_VERSION(0, 1, 0xa)
+#define RK_CAM_VERSION_CODE KERNEL_VERSION(0, 1, 0xb)
static int version = RK_CAM_VERSION_CODE;
module_param(version, int, S_IRUGO);
#ifdef CONFIG_ROCKCHIP_IOMMU
struct device_node * vpu_node =NULL;
int vpu_iommu_enabled = 0;
- vpu_node = of_find_compatible_node(NULL,NULL, "vpu_service");
+ vpu_node = of_find_compatible_node(NULL,NULL, "rockchip,vpu_sub");
if(vpu_node){
of_property_read_u32(vpu_node, "iommu_enabled", &vpu_iommu_enabled);
of_property_read_u32(camsys_dev->pdev->dev.of_node, "rockchip,isp,iommu_enable", &iommu_enabled);
2) support torch mode
*v0.0x19.0:
1) set CONFIG_CAMSYS_DRV disable as default,enable in defconfig file if needed.
+*v0.0x1a.0:
+ 1) vpu_node changed from "vpu_service" to "rockchip,vpu_sub"
*/
-#define CAMSYS_DRIVER_VERSION KERNEL_VERSION(0,0x19,0)
+#define CAMSYS_DRIVER_VERSION KERNEL_VERSION(0,0x1a,0)
#define CAMSYS_PLATFORM_DRV_NAME "RockChip-CamSys"