diff options
author | Sujeet Baranwal <s-baranwal@ti.com> | 2011-03-14 19:37:57 +0530 |
---|---|---|
committer | Leed Aguilar <leed.aguilar@ti.com> | 2011-03-30 17:04:37 -0500 |
commit | d2cb3558dd14422a48a8966157d2dd27366fd61a (patch) | |
tree | b3e55b5bb7abe5aea5438d24847c3ac8d6634613 | |
parent | f55e1c90f574de6120502241ec28bdc7a5db3d6c (diff) |
OMAP4: DSS: SW reset not required in dss initandroid-2.6.35-2.3-omap4.12.1
In omap3 & omap4, soft reset is being done by HWMOD thus
not required to be done again in dss initialization
but reset is required in all the others.
This chnage is tested on omap4 and omap3 sdp and display
is working fine.
Change-Id: I725ab78b392e865047a2a385373f2ba88ff5832c
Signed-off-by: Sujeet Baranwal <s-baranwal@ti.com>
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 3 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dss.c | 11 |
2 files changed, 2 insertions, 12 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c index 75d0912db4f..d8fbc1afcfd 100644 --- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c @@ -3179,7 +3179,8 @@ static struct omap_hwmod_class_sysconfig omap3xxx_dss_sysc = { .rev_offs = 0x0000, .sysc_offs = 0x0010, .syss_offs = 0x0014, - .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE), + .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE | + SYSS_HAS_RESET_STATUS), .sysc_fields = &omap_hwmod_sysc_type1, }; diff --git a/drivers/video/omap2/dss/dss.c b/drivers/video/omap2/dss/dss.c index 4007b65d260..14ec286322b 100644 --- a/drivers/video/omap2/dss/dss.c +++ b/drivers/video/omap2/dss/dss.c @@ -651,13 +651,6 @@ static int _omap_dss_wait_reset(void) return 0; } -static int _omap_dss_reset(void) -{ - /* Soft reset */ - REG_FLD_MOD(DSS_SYSCONFIG, 1, 1, 1); - return _omap_dss_wait_reset(); -} - void dss_set_venc_output(enum omap_dss_venc_type type) { int l = 0; @@ -735,10 +728,6 @@ int dss_init(struct platform_device *pdev) * enabling clocks. */ msleep(50); - - /* In OMAP44xx HWMOD would take care of resetting the module */ - if (cpu_is_omap44xx()) - _omap_dss_reset(); } /* autoidle */ |