Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311230
b: refs/heads/master
c: b8f15b7
h: refs/heads/master
v: v3
  • Loading branch information
Paul Walmsley committed Jun 22, 2012
1 parent 0a57ec2 commit a6b1881
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9a47d32d5c4b91a4ce4c459f3b7b0290185e7578
refs/heads/master: b8f15b7e1dd3638d35cfff85571df1d7ea96e35e
11 changes: 11 additions & 0 deletions trunk/arch/arm/mach-omap2/cm.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,15 @@
*/
#define MAX_MODULE_READY_TIME 2000

/*
* MAX_MODULE_DISABLE_TIME: max duration in microseconds to wait for
* the PRCM to request that a module enter the inactive state in the
* case of OMAP2 & 3. In the case of OMAP4 this is the max duration
* in microseconds for the module to reach the inactive state from
* a functional state.
* XXX FSUSB on OMAP4430 takes ~4ms to idle after reset during
* kernel init.
*/
#define MAX_MODULE_DISABLE_TIME 5000

#endif
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-omap2/cminst44xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,9 @@ int omap4_cminst_wait_module_idle(u8 part, u16 inst, s16 cdoffs, u16 clkctrl_off

omap_test_timeout((_clkctrl_idlest(part, inst, cdoffs, clkctrl_offs) ==
CLKCTRL_IDLEST_DISABLED),
MAX_MODULE_READY_TIME, i);
MAX_MODULE_DISABLE_TIME, i);

return (i < MAX_MODULE_READY_TIME) ? 0 : -EBUSY;
return (i < MAX_MODULE_DISABLE_TIME) ? 0 : -EBUSY;
}

/**
Expand Down

0 comments on commit a6b1881

Please sign in to comment.