v4l2: fixed sys_crg ioremap error!
authorchanghuang.liang <changhuang.liang@starfivetech.com>
Sat, 16 Apr 2022 01:08:40 +0000 (09:08 +0800)
committerchanghuang.liang <changhuang.liang@starfivetech.com>
Tue, 26 Apr 2022 09:35:29 +0000 (17:35 +0800)
arch/riscv/boot/dts/starfive/jh7110.dtsi
drivers/media/platform/starfive/v4l2_driver/stfcamss.c

index 8720646..ed35200 100644 (file)
                                <0x0 0x11800000 0x0 0x10000>,
                                <0x0 0x11840000 0x0 0x10000>,
                                <0x0 0x11858000 0x0 0x10000>,
-                               <0x0 0x17030000 0x0 0x10000>,
-                               <0x0 0x13020000 0x0 0x10000>;
-                       reg-names = "mipi0", "vclk", "vrst", "mipi1", "sctrl", "isp0", "isp1", "tclk", "trst", "iopad", "pmu", "syscrg";
+                               <0x0 0x17030000 0x0 0x10000>;
+                       reg-names = "mipi0", "vclk", "vrst", "mipi1", "sctrl", "isp0", "isp1", "tclk", "trst", "iopad", "pmu";
                        interrupts = <92 87 86>;
                        status = "disabled";
                };
index e8ae749..6daf4cd 100755 (executable)
@@ -56,7 +56,7 @@ static const struct reg_name mem_reg_name[] = {
        {"trst"},
        {"iopad"},
        {"pmu"},
-       {"syscrg"},
+       //{"syscrg"},
 };
 
 int stfcamss_get_mem_res(struct platform_device *pdev, struct stf_vin_dev *vin)
@@ -96,12 +96,12 @@ int stfcamss_get_mem_res(struct platform_device *pdev, struct stf_vin_dev *vin)
                        vin->vin_top_iopad_base = regs;
                else if (!strcmp(name,"pmu"))
                        vin->pmu_test = regs;
-               else if (!strcmp(name,"syscrg")) 
-                       vin->sys_crg = regs;
                else
                        st_err(ST_CAMSS, "Could not match resource name\n");
        }
 
+       vin->sys_crg = ioremap(0x13020000, 10000);
+
        return 0;
 }