Linux Kernel
3.7.1
|
#include <mcfqspi.h>
Data Fields | |
int(* | setup )(struct mcfqspi_cs_control *) |
void(* | teardown )(struct mcfqspi_cs_control *) |
void(* | select )(struct mcfqspi_cs_control *, u8, bool) |
void(* | deselect )(struct mcfqspi_cs_control *, u8, bool) |
struct mcfqspi_cs_control - chip select control for the coldfire qspi driver : setup the control; allocate gpio's, etc. May be NULL. : finish with the control; free gpio's, etc. May be NULL. : output the signals to select the device. Can not be NULL. : output the signals to deselect the device. Can not be NULL.
The QSPI module has 4 hardware chip selects. We don't use them. Instead platforms are required to supply a mcfqspi_cs_control as a part of the platform data for each QSPI master controller. Only the select and deselect functions are required.
void(* teardown)(struct mcfqspi_cs_control *) |