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

Commit 30ea50c9 authored by Senthilvadivu Guruswamy's avatar Senthilvadivu Guruswamy Committed by Tomi Valkeinen
Browse files

OMAP2, 3: DSS2: VENC: create platform_driver, move init, exit to driver



Hwmod adaptation design requires each of the DSS HW IP to be a platform driver.
So a platform_driver for VENC is created and init exit methods are moved from core.c
to its driver probe,remove. pdev member has to be maintained by its own drivers.

Also, venc_vdda_dac reading is moved to venc.c.

VENC platform driver is registered from inside omap_dss_probe, in the order desired.

Signed-off-by: default avatarSenthilvadivu Guruswamy <svadivu@ti.com>
Signed-off-by: default avatarSumit Semwal <sumit.semwal@ti.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 060b6d9c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -395,7 +395,7 @@ static struct regulator_consumer_supply sdp3430_vaux3_supplies[] = {
};

static struct regulator_consumer_supply sdp3430_vdda_dac_supplies[] = {
	REGULATOR_SUPPLY("vdda_dac", "omapdss"),
	REGULATOR_SUPPLY("vdda_dac", "omapdss_venc"),
};

/* VPLL2 for digital video outputs */
+1 −1
Original line number Diff line number Diff line
@@ -488,7 +488,7 @@ static struct regulator_consumer_supply cm_t35_vsim_supply = {
};

static struct regulator_consumer_supply cm_t35_vdac_supply =
	REGULATOR_SUPPLY("vdda_dac", "omapdss");
	REGULATOR_SUPPLY("vdda_dac", "omapdss_venc");

static struct regulator_consumer_supply cm_t35_vdvi_supply =
	REGULATOR_SUPPLY("vdvi", "omapdss");
+1 −1
Original line number Diff line number Diff line
@@ -196,7 +196,7 @@ static struct omap_dss_board_info devkit8000_dss_data = {
};

static struct regulator_consumer_supply devkit8000_vdda_dac_supply =
	REGULATOR_SUPPLY("vdda_dac", "omapdss");
	REGULATOR_SUPPLY("vdda_dac", "omapdss_venc");

static uint32_t board_keymap[] = {
	KEY(0, 0, KEY_1),
+1 −1
Original line number Diff line number Diff line
@@ -232,7 +232,7 @@ static struct omap_dss_board_info beagle_dss_data = {
};

static struct regulator_consumer_supply beagle_vdac_supply =
	REGULATOR_SUPPLY("vdda_dac", "omapdss");
	REGULATOR_SUPPLY("vdda_dac", "omapdss_venc");

static struct regulator_consumer_supply beagle_vdvi_supply =
	REGULATOR_SUPPLY("vdds_dsi", "omapdss");
+1 −1
Original line number Diff line number Diff line
@@ -542,7 +542,7 @@ static struct twl4030_codec_data omap3evm_codec_data = {
};

static struct regulator_consumer_supply omap3_evm_vdda_dac_supply =
	REGULATOR_SUPPLY("vdda_dac", "omapdss");
	REGULATOR_SUPPLY("vdda_dac", "omapdss_venc");

/* VDAC for DSS driving S-Video */
static struct regulator_init_data omap3_evm_vdac = {
Loading