Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d75e8550 authored by Chinmay Sawarkar's avatar Chinmay Sawarkar
Browse files

msm: vidc: Change kona vpu_ver to iris2



Kona specific functions are classified under vpu_ver
IRIS2. Other minor fixes include, improved logs, corrected typos
and use correct variable to indicate clock scaling support.

CRs-Fixed: 2373463
Change-Id: I876bb54b4e12106d08b570ae55a22672ef559670
Signed-off-by: default avatarChinmay Sawarkar <chinmays@codeaurora.org>
parent 1f57fa2d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -543,7 +543,7 @@ static struct msm_vidc_platform_data kona_data = {
	.sku_version = 0,
	.gcc_register_base = 0x10B024,//GCC_VIDEO_AXI0_CBCR,
	.gcc_register_size = 0x8,//GCC_VIDEO_AXI0_CBCR + GCC_VIDEO_AXI1_CBCR,
	.vpu_ver = VPU_VERSION_IRIS1,
	.vpu_ver = VPU_VERSION_IRIS2,
};

static struct msm_vidc_platform_data sm6150_data = {
+1 −2
Original line number Diff line number Diff line
@@ -656,7 +656,6 @@ static int msm_vidc_load_clock_table(
		if (clock_props[c] & CLOCK_PROP_HAS_SCALING) {
			vc->has_scaling = true;
		} else {
			vc->count = 0;
			vc->has_scaling = false;
		}

@@ -666,7 +665,7 @@ static int msm_vidc_load_clock_table(
			vc->has_mem_retention = false;

		dprintk(VIDC_DBG, "Found clock %s: scale-able = %s\n", vc->name,
			vc->count ? "yes" : "no");
			vc->has_scaling ? "yes" : "no");
	}


+4 −3
Original line number Diff line number Diff line
@@ -877,7 +877,7 @@ static void __write_register(struct venus_hfi_device *device,
	}

	base_addr = device->hal_data->register_base;
	dprintk(VIDC_DBG, "Base addr: %pK, written to: %#x, Value: %#x...\n",
	dprintk(VIDC_DBG, "Base addr: %pK, writing to: %#x, Value: %#x...\n",
		base_addr, hwiosymaddr, value);
	base_addr += hwiosymaddr;
	writel_relaxed(value, base_addr);
@@ -904,7 +904,7 @@ static void __write_gcc_register(struct venus_hfi_device *device,
	}

	base_addr = device->hal_data->gcc_reg_base;
	dprintk(VIDC_DBG, "GCC Base addr: %pK, written to: %#x, Value: %#x.\n",
	dprintk(VIDC_DBG, "GCC Base addr: %pK, writing to: %#x, Value: %#x.\n",
		base_addr, hwiosymaddr, value);
	base_addr += hwiosymaddr;
	writel_relaxed(value, base_addr);
@@ -4013,6 +4013,7 @@ static int __init_bus(struct venus_hfi_device *device)
			.target = __devfreq_target,
			.get_dev_status = __devfreq_get_status,
			.exit = NULL,
			/*.get_cur_greq = NULL,*/
		};

		if (!strcmp(bus->governor, "msm-vidc-llcc")) {
@@ -4025,7 +4026,7 @@ static int __init_bus(struct venus_hfi_device *device)
		}

		/*
		 * This is stupid, but there's no other easy way to ahold
		 * This is stupid, but there's no other easy way to get a hold
		 * of struct bus_info in venus_hfi_devfreq_*()
		 */
		WARN(dev_get_drvdata(bus->dev), "%s's drvdata already set\n",