aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_hwmod_2420_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_2420_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_2420_data.c')
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_2420_data.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_2420_data.c b/arch/arm/mach-omap2/omap_hwmod_2420_data.c
index b85c630b64d..e8046b4ec6a 100644
--- a/arch/arm/mach-omap2/omap_hwmod_2420_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_2420_data.c
@@ -308,7 +308,7 @@ static struct omap_hwmod_class_sysconfig omap2420_wd_timer_sysc = {
308 .sysc_offs = 0x0010, 308 .sysc_offs = 0x0010,
309 .syss_offs = 0x0014, 309 .syss_offs = 0x0014,
310 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SOFTRESET | 310 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SOFTRESET |
311 SYSC_HAS_AUTOIDLE), 311 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
312 .sysc_fields = &omap_hwmod_sysc_type1, 312 .sysc_fields = &omap_hwmod_sysc_type1,
313}; 313};
314 314
@@ -349,7 +349,7 @@ static struct omap_hwmod_class_sysconfig uart_sysc = {
349 .syss_offs = 0x58, 349 .syss_offs = 0x58,
350 .sysc_flags = (SYSC_HAS_SIDLEMODE | 350 .sysc_flags = (SYSC_HAS_SIDLEMODE |
351 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET | 351 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
352 SYSC_HAS_AUTOIDLE), 352 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
353 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), 353 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
354 .sysc_fields = &omap_hwmod_sysc_type1, 354 .sysc_fields = &omap_hwmod_sysc_type1,
355}; 355};
@@ -475,7 +475,7 @@ static struct omap_hwmod_class_sysconfig i2c_sysc = {
475 .rev_offs = 0x00, 475 .rev_offs = 0x00,
476 .sysc_offs = 0x20, 476 .sysc_offs = 0x20,
477 .syss_offs = 0x10, 477 .syss_offs = 0x10,
478 .sysc_flags = SYSC_HAS_SOFTRESET, 478 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
479 .sysc_fields = &omap_hwmod_sysc_type1, 479 .sysc_fields = &omap_hwmod_sysc_type1,
480}; 480};
481 481
@@ -647,7 +647,8 @@ static struct omap_hwmod_class_sysconfig omap242x_gpio_sysc = {
647 .sysc_offs = 0x0010, 647 .sysc_offs = 0x0010,
648 .syss_offs = 0x0014, 648 .syss_offs = 0x0014,
649 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE | 649 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
650 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE), 650 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
651 SYSS_HAS_RESET_STATUS),
651 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), 652 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
652 .sysc_fields = &omap_hwmod_sysc_type1, 653 .sysc_fields = &omap_hwmod_sysc_type1,
653}; 654};
@@ -789,7 +790,7 @@ static struct omap_hwmod_class_sysconfig omap2420_dma_sysc = {
789 .syss_offs = 0x0028, 790 .syss_offs = 0x0028,
790 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_MIDLEMODE | 791 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_MIDLEMODE |
791 SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_EMUFREE | 792 SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_EMUFREE |
792 SYSC_HAS_AUTOIDLE), 793 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
793 .idlemodes = (MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART), 794 .idlemodes = (MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
794 .sysc_fields = &omap_hwmod_sysc_type1, 795 .sysc_fields = &omap_hwmod_sysc_type1,
795}; 796};