aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_hwmod_2430_data.c
diff options
context:
space:
mode:
authorAvinash.H.M <avinashhm@ti.com>2011-03-03 16:22:46 -0500
committerPaul Walmsley <paul@pwsan.com>2011-03-10 05:23:55 -0500
commitd73d65fab1c29c3c0f9736aed9cb55ea53843b00 (patch)
treeb78045b2977e67936ccbb2a61a5e8dd3a4d83513 /arch/arm/mach-omap2/omap_hwmod_2430_data.c
parent8985b63d072413f0446fd2d0d654795f2d683323 (diff)
omap: hwmod: add syss reset done flags to omap2, omap3 hwmods
Some of the omap2, omap3 peripherals support software reset. This can be done through the softreset bit in sysconfig register. The reset status can be checked through resetdone bit of sysstatus register. syss_has_reset_status is added to the hwmod database of peripherals which have resetdone bit in sysstatus register. Cc: Rajendra Nayak <rnayak@ti.com> Cc: Paul Walmsley <paul@pwsan.com> Cc: Benoit Cousson <b-cousson@ti.com> Cc: Kevin Hilman <khilman@ti.com> Reviewed-by: Govindraj.R <govindraj.raja@ti.com> Signed-off-by: Avinash.H.M <avinashhm@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod_2430_data.c')
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_2430_data.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_2430_data.c b/arch/arm/mach-omap2/omap_hwmod_2430_data.c
index 8ecfbcde13ba..115eed51b521 100644
--- a/arch/arm/mach-omap2/omap_hwmod_2430_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_2430_data.c
@@ -307,7 +307,7 @@ static struct omap_hwmod_class_sysconfig omap2430_wd_timer_sysc = {
307 .sysc_offs = 0x0010, 307 .sysc_offs = 0x0010,
308 .syss_offs = 0x0014, 308 .syss_offs = 0x0014,
309 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SOFTRESET | 309 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SOFTRESET |
310 SYSC_HAS_AUTOIDLE), 310 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
311 .sysc_fields = &omap_hwmod_sysc_type1, 311 .sysc_fields = &omap_hwmod_sysc_type1,
312}; 312};
313 313
@@ -348,7 +348,7 @@ static struct omap_hwmod_class_sysconfig uart_sysc = {
348 .syss_offs = 0x58, 348 .syss_offs = 0x58,
349 .sysc_flags = (SYSC_HAS_SIDLEMODE | 349 .sysc_flags = (SYSC_HAS_SIDLEMODE |
350 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET | 350 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
351 SYSC_HAS_AUTOIDLE), 351 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
352 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), 352 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
353 .sysc_fields = &omap_hwmod_sysc_type1, 353 .sysc_fields = &omap_hwmod_sysc_type1,
354}; 354};
@@ -474,7 +474,8 @@ static struct omap_hwmod_class_sysconfig i2c_sysc = {
474 .rev_offs = 0x00, 474 .rev_offs = 0x00,
475 .sysc_offs = 0x20, 475 .sysc_offs = 0x20,
476 .syss_offs = 0x10, 476 .syss_offs = 0x10,
477 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE), 477 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
478 SYSS_HAS_RESET_STATUS),
478 .sysc_fields = &omap_hwmod_sysc_type1, 479 .sysc_fields = &omap_hwmod_sysc_type1,
479}; 480};
480 481
@@ -672,7 +673,8 @@ static struct omap_hwmod_class_sysconfig omap243x_gpio_sysc = {
672 .sysc_offs = 0x0010, 673 .sysc_offs = 0x0010,
673 .syss_offs = 0x0014, 674 .syss_offs = 0x0014,
674 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE | 675 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
675 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE), 676 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
677 SYSS_HAS_RESET_STATUS),
676 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), 678 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
677 .sysc_fields = &omap_hwmod_sysc_type1, 679 .sysc_fields = &omap_hwmod_sysc_type1,
678}; 680};
@@ -844,7 +846,7 @@ static struct omap_hwmod_class_sysconfig omap2430_dma_sysc = {
844 .syss_offs = 0x0028, 846 .syss_offs = 0x0028,
845 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_MIDLEMODE | 847 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_MIDLEMODE |
846 SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_EMUFREE | 848 SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_EMUFREE |
847 SYSC_HAS_AUTOIDLE), 849 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
848 .idlemodes = (MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART), 850 .idlemodes = (MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
849 .sysc_fields = &omap_hwmod_sysc_type1, 851 .sysc_fields = &omap_hwmod_sysc_type1,
850}; 852};