Skip to content

Commit

Permalink
can: c_can: Add RAMINIT register information to driver data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roger Quadros authored and Marc Kleine-Budde committed Nov 17, 2014
1 parent 1515109 commit bbf9143
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/net/can/c_can/c_can.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,18 @@ enum c_can_dev_id {
BOSCH_D_CAN,
};

struct raminit_bits {
u8 start;
u8 done;
};

struct c_can_driver_data {
enum c_can_dev_id id;

/* RAMINIT register description. Optional. */
const struct raminit_bits *raminit_bits; /* Array of START/DONE bit positions */
u8 raminit_num; /* Number of CAN instances on the SoC */
bool raminit_pulse; /* If set, sets and clears START bit (pulse) */
};

/* c_can private data structure */
Expand Down

0 comments on commit bbf9143

Please sign in to comment.