aboutsummaryrefslogtreecommitdiff
path: root/include/pch.h
diff options
context:
space:
mode:
authorBin Meng2016-02-01 01:40:41 -0800
committerBin Meng2016-02-05 12:47:21 +0800
commitd02be99e6774b99c27b7d4304865c7f45e1ac4b4 (patch)
tree158ab527315a42bde5f46c10ff6c56f277e150bc /include/pch.h
parent254e6779258f9f3aa8ba67fb4506fd570fae9687 (diff)
dm: pch: Remove pch_get_version op
pch_get_version op was only used by the ich spi controller driver, and does not really provide a good identification of pch controller so far, since we see plenty of Intel PCH chipsets and one differs from another a lot, which is not simply either a PCHV_7 or PCHV_9. Now that ich spi controller driver was updated to not get such info from pch, the pch_get_version op is useless now. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/pch.h')
-rw-r--r--include/pch.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/include/pch.h b/include/pch.h
index 79f49bd5f67..f3899d822ff 100644
--- a/include/pch.h
+++ b/include/pch.h
@@ -8,12 +8,6 @@
#ifndef __pch_h
#define __pch_h
-enum pch_version {
- PCHV_UNKNOWN,
- PCHV_7,
- PCHV_9,
-};
-
#define PCH_RCBA 0xf0
#define BIOS_CTRL_BIOSWE BIT(0)
@@ -30,13 +24,6 @@ struct pch_ops {
int (*get_sbase)(struct udevice *dev, ulong *sbasep);
/**
- * get_version() - get the PCH version
- *
- * @return version, or -ENOSYS if unknown
- */
- enum pch_version (*get_version)(struct udevice *dev);
-
- /**
* set_spi_protect() - set whether SPI flash is protected or not
*
* @dev: PCH device to adjust
@@ -59,13 +46,6 @@ struct pch_ops {
int pch_get_sbase(struct udevice *dev, ulong *sbasep);
/**
- * pch_get_version() - get the PCH version
- *
- * @return version, or -ENOSYS if unknown
- */
-enum pch_version pch_get_version(struct udevice *dev);
-
-/**
* set_spi_protect() - set whether SPI flash is protected or not
*
* @dev: PCH device to adjust