Commit 5f4ba689 authored by Vikram Sharma's avatar Vikram Sharma Committed by Mauro Carvalho Chehab
Browse files

media: qcom: camss: Add qcom,sa8775p-camss compatible



Add CAMSS_8775P enum, compatible and lemans(sa8775p) camss driver
private data, the private data just include some basic information
now, later changes will enumerate with csiphy, tpg, csid and vfe
resources.

Co-developed-by: default avatarSuresh Vankadara <quic_svankada@quicinc.com>
Signed-off-by: default avatarSuresh Vankadara <quic_svankada@quicinc.com>
Signed-off-by: default avatarVikram Sharma <quic_vikramsa@quicinc.com>
Reviewed-by: default avatarBryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: default avatarBryan O'Donoghue <bod@kernel.org>
Signed-off-by: default avatarHans Verkuil <hverkuil+cisco@kernel.org>
parent 8dd22e90
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
@@ -2617,6 +2617,19 @@ static const struct resources_icc icc_res_sm8550[] = {
	},
};

static const struct resources_icc icc_res_sa8775p[] = {
	{
		.name = "ahb",
		.icc_bw_tbl.avg = 38400,
		.icc_bw_tbl.peak = 76800,
	},
	{
		.name = "hf_0",
		.icc_bw_tbl.avg = 2097152,
		.icc_bw_tbl.peak = 2097152,
	},
};

static const struct camss_subdev_resources csiphy_res_x1e80100[] = {
	/* CSIPHY0 */
	{
@@ -3899,6 +3912,14 @@ static const struct camss_resources qcm2290_resources = {
	.link_entities = camss_link_entities
};

static const struct camss_resources sa8775p_resources = {
	.version = CAMSS_8775P,
	.pd_name = "top",
	.icc_res = icc_res_sa8775p,
	.icc_path_num = ARRAY_SIZE(icc_res_sa8775p),
	.link_entities = camss_link_entities
};

static const struct camss_resources sdm660_resources = {
	.version = CAMSS_660,
	.csiphy_res = csiphy_res_660,
@@ -4012,6 +4033,7 @@ static const struct of_device_id camss_dt_match[] = {
	{ .compatible = "qcom,msm8953-camss", .data = &msm8953_resources },
	{ .compatible = "qcom,msm8996-camss", .data = &msm8996_resources },
	{ .compatible = "qcom,qcm2290-camss", .data = &qcm2290_resources },
	{ .compatible = "qcom,sa8775p-camss", .data = &sa8775p_resources },
	{ .compatible = "qcom,sc7280-camss", .data = &sc7280_resources },
	{ .compatible = "qcom,sc8280xp-camss", .data = &sc8280xp_resources },
	{ .compatible = "qcom,sdm660-camss", .data = &sdm660_resources },
+1 −0
Original line number Diff line number Diff line
@@ -87,6 +87,7 @@ enum camss_version {
	CAMSS_8280XP,
	CAMSS_845,
	CAMSS_8550,
	CAMSS_8775P,
	CAMSS_X1E80100,
};