]> Git Repo - J-u-boot.git/blobdiff - include/dwmmc.h
Merge tag 'u-boot-atmel-2021.10-a' of https://source.denx.de/u-boot/custodians/u...
[J-u-boot.git] / include / dwmmc.h
index 58110aa3e7183cd43b9ab5fc38386e78e6406d9b..5fc8ed8395f5b9cf0b2f579299b93915aede72a5 100644 (file)
@@ -10,6 +10,7 @@
 #include <asm/cache.h>
 #include <asm/io.h>
 #include <mmc.h>
+#include <linux/bitops.h>
 
 #define DWMCI_CTRL             0x000
 #define        DWMCI_PWREN             0x004
@@ -173,7 +174,7 @@ struct dwmci_host {
        struct mmc *mmc;
        void *priv;
 
-       void (*clksel)(struct dwmci_host *host);
+       int (*clksel)(struct dwmci_host *host);
        void (*board_init)(struct dwmci_host *host);
 
        /**
@@ -255,10 +256,10 @@ static inline u8 dwmci_readb(struct dwmci_host *host, int reg)
  * ...
  *
  * Inside U_BOOT_DRIVER():
- *     .platdata_auto_alloc_size = sizeof(struct rockchip_mmc_plat),
+ *     .plat_auto      = sizeof(struct rockchip_mmc_plat),
  *
  * To access platform data:
- *     struct rockchip_mmc_plat *plat = dev_get_platdata(dev);
+ *     struct rockchip_mmc_plat *plat = dev_get_plat(dev);
  *
  * See rockchip_dw_mmc.c for an example.
  *
This page took 0.032889 seconds and 4 git commands to generate.