Convert CONFIG_SAMSUNG_ONENAND to Kconfig
[platform/kernel/u-boot.git] / include / mvebu_mmc.h
index 7fb71f7..e75c3fa 100644 (file)
@@ -1,11 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * Marvell MMC/SD/SDIO driver
  *
  * (C) Copyright 2012
  * Marvell Semiconductor <www.marvell.com>
  * Written-by: Maen Suleiman, Gerald Kerma
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #ifndef __MVEBU_MMC_H__
 #define MMC_CAP_SDIO_IRQ                       (1 << 3)
 /* Talks only SPI protocols */
 #define MMC_CAP_SPI                            (1 << 4)
-/* Needs polling for card-detection */
-#define MMC_CAP_NEEDS_POLL                     (1 << 5)
 /* Can the host do 8 bit transfers */
 #define MMC_CAP_8_BIT_DATA                     (1 << 6)
 
-/* Nonremovable e.g. eMMC */
-#define MMC_CAP_NONREMOVABLE                   (1 << 8)
 /* Waits while card is busy */
 #define MMC_CAP_WAIT_WHILE_BUSY                        (1 << 9)
 /* Allow erase/trim commands */
 /* Hardware reset */
 #define MMC_CAP_HW_RESET                       (1 << 31)
 
-struct mvebu_mmc_cfg {
-       u32     mvebu_mmc_base;
-       u32     mvebu_mmc_clk;
-       u8      max_bus_width;
+struct mvebu_mmc_plat {
+       void *iobase;
        struct mmc_config cfg;
+       struct mmc mmc;
 };
 
-/*
- * Functions prototypes
- */
-
-int mvebu_mmc_init(bd_t *bis);
-
 #endif /* __MVEBU_MMC_H__ */