tegra124: add frame header info to SPI channel struct
This adds a frame header byte and an enable switch to the SPI channel struct. The current use case is so that mainboard code can set the frame header for the CrOS EC. BUG=none BRANCH=none TEST=tested on nyan (with follow-up CLs) Signed-off-by: David Hendricks <dhendrix@chromium.org> Change-Id: I844ebfcb6fbf16b2fc7f775086f2803e026f9d08 Reviewed-on: https://chromium-review.googlesource.com/174638 Reviewed-by: David Hendricks <dhendrix@chromium.org> Commit-Queue: David Hendricks <dhendrix@chromium.org> Tested-by: David Hendricks <dhendrix@chromium.org>
This commit is contained in:
parent
36760a4463
commit
e24773eb94
1 changed files with 6 additions and 0 deletions
|
|
@ -49,6 +49,12 @@ enum spi_xfer_mode {
|
|||
struct tegra_spi_channel {
|
||||
struct spi_slave slave;
|
||||
struct tegra_spi_regs *regs;
|
||||
|
||||
/* stuff that is specific to the attached device */
|
||||
int rx_frame_header_enable;
|
||||
u8 frame_header;
|
||||
|
||||
/* context (used internally) */
|
||||
u8 *in_buf, *out_buf;
|
||||
struct apb_dma_channel *dma_out, *dma_in;
|
||||
enum spi_xfer_mode xfer_mode;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue