From e24773eb946e2c4cb5e828f055d45d92bd1a4f9f Mon Sep 17 00:00:00 2001 From: David Hendricks Date: Thu, 24 Oct 2013 21:40:52 -0700 Subject: [PATCH] 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 Change-Id: I844ebfcb6fbf16b2fc7f775086f2803e026f9d08 Reviewed-on: https://chromium-review.googlesource.com/174638 Reviewed-by: David Hendricks Commit-Queue: David Hendricks Tested-by: David Hendricks --- src/soc/nvidia/tegra124/spi.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/soc/nvidia/tegra124/spi.h b/src/soc/nvidia/tegra124/spi.h index 7ead772977..ca9fdd7e72 100644 --- a/src/soc/nvidia/tegra124/spi.h +++ b/src/soc/nvidia/tegra124/spi.h @@ -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;