diff options
author | Roger Quadros <rogerq@ti.com> | 2014-11-07 09:49:17 -0500 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-11-17 06:19:27 -0500 |
commit | bbf914300509f038c807360d755bd606785be6c9 (patch) | |
tree | 10d1a49a2f180ac73aa58f8c2d8415b6b20c4d5d /drivers/net/can/c_can/c_can.h | |
parent | 15151090579cab7c49d8af54a52f798ce8bda001 (diff) |
can: c_can: Add RAMINIT register information to driver data
Some platforms (e.g. TI) need special RAMINIT register handling.
Provide a way to store RAMINIT register description in driver data.
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/c_can/c_can.h')
-rw-r--r-- | drivers/net/can/c_can/c_can.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/can/c_can/c_can.h b/drivers/net/can/c_can/c_can.h index 26c975d914e3..3f111f4f0f6e 100644 --- a/drivers/net/can/c_can/c_can.h +++ b/drivers/net/can/c_can/c_can.h | |||
@@ -169,8 +169,18 @@ enum c_can_dev_id { | |||
169 | BOSCH_D_CAN, | 169 | BOSCH_D_CAN, |
170 | }; | 170 | }; |
171 | 171 | ||
172 | struct raminit_bits { | ||
173 | u8 start; | ||
174 | u8 done; | ||
175 | }; | ||
176 | |||
172 | struct c_can_driver_data { | 177 | struct c_can_driver_data { |
173 | enum c_can_dev_id id; | 178 | enum c_can_dev_id id; |
179 | |||
180 | /* RAMINIT register description. Optional. */ | ||
181 | const struct raminit_bits *raminit_bits; /* Array of START/DONE bit positions */ | ||
182 | u8 raminit_num; /* Number of CAN instances on the SoC */ | ||
183 | bool raminit_pulse; /* If set, sets and clears START bit (pulse) */ | ||
174 | }; | 184 | }; |
175 | 185 | ||
176 | /* c_can private data structure */ | 186 | /* c_can private data structure */ |