X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=doc%2Fdriver-model%2FUDM-mmc.txt;h=97f83a77764e34d65bca79c271b2c9c27dc5e971;hb=d7dd4fffde5cbf6a047a904fe45a9b41b40054ea;hp=bed430643bf4a3ce8eb1a3f3158197eaefe586e2;hpb=5675b509165b67465a20e5cf71e07f40b449ef0c;p=oweals%2Fu-boot.git diff --git a/doc/driver-model/UDM-mmc.txt b/doc/driver-model/UDM-mmc.txt index bed430643b..97f83a7776 100644 --- a/doc/driver-model/UDM-mmc.txt +++ b/doc/driver-model/UDM-mmc.txt @@ -107,7 +107,7 @@ struct mmc { /* DRIVER: Function used to submit command to the card */ int (*send_cmd)(struct mmc *mmc, - struct mmc_cmd *cmd, struct mmc_data *data); + struct mmc_cmd *cmd, struct mmc_data *data); /* DRIVER: Function used to configure the host */ void (*set_ios)(struct mmc *mmc); @@ -139,7 +139,7 @@ provided by the MMC driver: struct mmc_driver_ops { /* Function used to submit command to the card */ int (*send_cmd)(struct mmc *mmc, - struct mmc_cmd *cmd, struct mmc_data *data); + struct mmc_cmd *cmd, struct mmc_data *data); /* DRIVER: Function used to configure the host */ void (*set_ios)(struct mmc *mmc); /* Function used to initialize the host */ @@ -206,7 +206,7 @@ struct mmc_card_props { The probe() function will then register the MMC driver by calling: mmc_device_register(struct instance *i, struct mmc_driver_ops *o, - struct mmc_driver_params *p); + struct mmc_driver_params *p); The struct mmc_driver_params will have to be dynamic in some cases, but the driver shouldn't modify it's contents elsewhere than in probe() call. @@ -220,100 +220,100 @@ As for the legacy drivers, these will either be converted or removed altogether. III) Analysis of in-tree drivers -------------------------------- - 1) arm_pl180_mmci.c - ------------------- + arm_pl180_mmci.c + ---------------- Follows the new API and also has a good encapsulation of the whole driver. The conversion here will be simple. - 2) atmel_mci.c - -------------- + atmel_mci.c + ----------- This driver uses the legacy API and should be removed unless converted. It is probably possbible to replace this driver with gen_atmel_mci.c . No conversion will be done on this driver. - 3) bfin_sdh.c - ------------- + bfin_sdh.c + ---------- Follows the new API and also has a good encapsulation of the whole driver. The conversion here will be simple. - 4) davinci_mmc.c - ---------------- + davinci_mmc.c + ------------- Follows the new API and also has a good encapsulation of the whole driver. The conversion here will be simple. - 5) fsl_esdhc.c - -------------- + fsl_esdhc.c + ----------- Follows the new API and also has a good encapsulation of the whole driver. The conversion here will be simple, unless some problem appears due to the FDT component of the driver. - 6) ftsdc010_esdhc.c - ------------------- + ftsdc010_esdhc.c + ---------------- Follows the new API and also has a good encapsulation of the whole driver. The conversion here will be simple. - 7) gen_atmel_mci.c - ------------------ + gen_atmel_mci.c + --------------- Follows the new API and also has a good encapsulation of the whole driver. The conversion here will be simple. - 8) mmc_spi.c - ------------ + mmc_spi.c + --------- Follows the new API and also has a good encapsulation of the whole driver. The conversion here will be simple. - 9) mv_sdhci.c - ------------- + mv_sdhci.c + ---------- This is a component of the SDHCI support, allowing it to run on Marvell Kirkwood chip. It is probable the SDHCI support will have to be modified to allow calling functions from this file based on information passed via platform_data. - 10) mxcmmc.c - ------------ + mxcmmc.c + -------- Follows the new API and also has a good encapsulation of the whole driver. The conversion here will be simple. - 11) mxsmmc.c - ------------ + mxsmmc.c + -------- Follows the new API and also has a good encapsulation of the whole driver. The conversion here will be simple. - 12) omap_hsmmc.c - ---------------- + omap_hsmmc.c + ------------ Follows the new API and also has a good encapsulation of the whole driver. The conversion here will be simple. - 13) pxa_mmc.c - ------------- + pxa_mmc.c + --------- This driver uses the legacy API and is written in a severely ad-hoc manner. This driver will be removed in favor of pxa_mmc_gen.c, which is proved to work better and is already well tested. No conversion will be done on this driver anymore. - 14) pxa_mmc_gen.c - ----------------- + pxa_mmc_gen.c + ------------- Follows the new API and also has a good encapsulation of the whole driver. The conversion here will be simple. - 15) s5p_mmc.c - ------------- + s5p_mmc.c + --------- Follows the new API and also has a good encapsulation of the whole driver. The conversion here will be simple. - 16) sdhci.c - ----------- + sdhci.c + ------- Follows the new API and also has a good encapsulation of the whole driver. The conversion here will be simple, though it'd be necessary to modify this driver to also support the Kirkwood series and probably also Tegra series of CPUs. See the respective parts of this section for details. - 17) sh_mmcif.c - -------------- + sh_mmcif.c + ---------- Follows the new API and also has a good encapsulation of the whole driver. The conversion here will be simple. - 18) tegra2_mmc.c - ---------------- + tegra2_mmc.c + ------------ Follows the new API and also has a good encapsulation of the whole driver. The conversion here will be simple.