]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: spl: Move priv/plat structs to headers
authorSimon Glass <sjg@chromium.org>
Sat, 19 Dec 2020 17:39:59 +0000 (10:39 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 5 Jan 2021 19:24:41 +0000 (12:24 -0700)
With the new of-platdata, these need to be available to dt_platdata.c
so must be in header files. Move them.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/spi/ich.c
drivers/spi/ich.h

index e02850e9f22063fcedf8385a13683bc916e09855..1cd410493b099c6e8d30efb98bf1f251beb86718 100644 (file)
 #define debug_trace(x, args...)
 #endif
 
-struct ich_spi_plat {
-#if CONFIG_IS_ENABLED(OF_PLATDATA)
-       struct dtd_intel_fast_spi dtplat;
-#endif
-       enum ich_version ich_version;   /* Controller version, 7 or 9 */
-       bool lockdown;                  /* lock down controller settings? */
-       ulong mmio_base;                /* Base of MMIO registers */
-       pci_dev_t bdf;                  /* PCI address used by of-platdata */
-       bool hwseq;                     /* Use hardware sequencing (not s/w) */
-};
-
 static u8 ich_readb(struct ich_spi_priv *priv, int reg)
 {
        u8 value = readb(priv->base + reg);
index 23c7827740bb9b33a0d5f8b495c3e733dcaf327a..8fd150d44a4c35214d4f92b8eb4fb76b88dac129 100644 (file)
@@ -230,4 +230,15 @@ struct ich_spi_priv {
        struct udevice *pch;    /* PCH, used to control SPI access */
 };
 
+struct ich_spi_plat {
+#if CONFIG_IS_ENABLED(OF_PLATDATA)
+       struct dtd_intel_fast_spi dtplat;
+#endif
+       enum ich_version ich_version;   /* Controller version, 7 or 9 */
+       bool lockdown;                  /* lock down controller settings? */
+       ulong mmio_base;                /* Base of MMIO registers */
+       pci_dev_t bdf;                  /* PCI address used by of-platdata */
+       bool hwseq;                     /* Use hardware sequencing (not s/w) */
+};
+
 #endif /* _ICH_H_ */