Johannes Poehlmann | 242b476 | 2017-07-25 13:27:11 +0200 | [diff] [blame] | 1 | /* MFD cell driver data for the DS1WM driver |
| 2 | * |
| 3 | * to be defined in the MFD device that is |
| 4 | * using this driver for one of his sub devices |
| 5 | */ |
Philipp Zabel | a23a175 | 2009-02-17 10:06:41 +0100 | [diff] [blame] | 6 | |
| 7 | struct ds1wm_driver_data { |
| 8 | int active_high; |
Philipp Zabel | 7d33ccb | 2009-02-17 10:09:19 +0100 | [diff] [blame] | 9 | int clock_rate; |
Johannes Poehlmann | 242b476 | 2017-07-25 13:27:11 +0200 | [diff] [blame] | 10 | /* in milliseconds, the amount of time to |
| 11 | * sleep following a reset pulse. Zero |
| 12 | * should work if your bus devices recover |
| 13 | * time respects the 1-wire spec since the |
| 14 | * ds1wm implements the precise timings of |
| 15 | * a reset pulse/presence detect sequence. |
| 16 | */ |
Jean-François Dagenais | f607e7f | 2011-07-08 15:39:44 -0700 | [diff] [blame] | 17 | unsigned int reset_recover_delay; |
Johannes Poehlmann | 242b476 | 2017-07-25 13:27:11 +0200 | [diff] [blame] | 18 | |
Johannes Poehlmann | baa8055 | 2017-07-25 13:27:12 +0200 | [diff] [blame^] | 19 | /* Say 1 here for big endian Hardware |
| 20 | * (only relevant with bus-shift > 0 |
| 21 | */ |
| 22 | bool is_hw_big_endian; |
| 23 | |
Johannes Poehlmann | 242b476 | 2017-07-25 13:27:11 +0200 | [diff] [blame] | 24 | /* left shift of register number to get register address offsett. |
| 25 | * Only 0,1,2 allowed for 8,16 or 32 bit bus width respectively |
| 26 | */ |
| 27 | unsigned int bus_shift; |
Philipp Zabel | a23a175 | 2009-02-17 10:06:41 +0100 | [diff] [blame] | 28 | }; |