summaryrefslogtreecommitdiff
path: root/drivers/spi/ich.h
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2016-02-01 01:40:38 -0800
committerBin Meng <bmeng.cn@gmail.com>2016-02-05 12:47:20 +0800
commit6e670b5c4d198c0c5715a2fe0c7980c9e6ca95c5 (patch)
tree78b7a6445ef3b66c5b65a4b205b0a00dfd288e35 /drivers/spi/ich.h
parent1f9eb59d273983ba8c65368120285ac6425476f7 (diff)
spi: ich: Change PCHV_ to ICHV_
The ICH SPI controller supports two variants, one of which is ICH7 compatible and the other is ICH9 compatible. Change 'pch_version' to 'ich_version' to better match its original name. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jagan Teki <jteki@openedev.com> Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/spi/ich.h')
-rw-r--r--drivers/spi/ich.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/spi/ich.h b/drivers/spi/ich.h
index 6344e80d63..bd0a820809 100644
--- a/drivers/spi/ich.h
+++ b/drivers/spi/ich.h
@@ -127,8 +127,13 @@ struct spi_trans {
#define SPI_OPCODE_WREN 0x06
#define SPI_OPCODE_FAST_READ 0x0b
+enum ich_version {
+ ICHV_7,
+ ICHV_9,
+};
+
struct ich_spi_platdata {
- enum pch_version ich_version; /* Controller version, 7 or 9 */
+ enum ich_version ich_version; /* Controller version, 7 or 9 */
};
struct ich_spi_priv {