
Dear Wenyou Yang,
Wenyou Yang wenyou.yang@atmel.com writes:
Convert the driver to the driver model while retaining the existing legacy code. This allows the driver to support boards that have converted to driver model as well as those that have not.
Signed-off-by: Wenyou Yang wenyou.yang@atmel.com Reviewed-by: Simon Glass sjg@chromium.org Reviewed-by: Jaehoon Chung jh80.chung@samsung.com Reviewed-by: Heiko Schocher hs@denx.de
Changes in v11:
- Due the removal of unnecessary arguments for sdhci_setup_cfg(), change accordingly.
Changes in v10:
- Add Reviewed-by tag.
Changes in v9:
- Add Reviewed-by tag.
Changes in v8:
- Make atmel_sdhci_get_clk() to get clock device.
- Use ulong type for gck_rate.
- Remove meaningless type casting before dev->name.
Changes in v7:
- Add support for using driver model for block devices and MMC operations.
- Change clk_client.h -> clk.h to adapt to clk API conversion.
Changes in v6:
- Remove unnecessary white space.
- Use sdhci_read(), instead of readl().
- Remove the local variables min_clk.
Changes in v5:
- Add Reviewed-by tag.
Changes in v4:
- Update the clk API based on [PATCH] clk: convert API to match reset/mailbox fstyle (http://patchwork.ozlabs.org/patch/625342/).
- Remove check on dev_get_parent() return.
- Fixed the return value, such as -ENODEV->-EINVAL.
Changes in v3:
- Remove the redundant log print.
Changes in v2:
- Add clock support, include enabling peripheral clock and generated clock.
- Retain the existing legacy code to support boards which have not converted to driver model.
drivers/mmc/Kconfig | 10 ++++ drivers/mmc/atmel_sdhci.c | 123 ++++++++++++++++++++++++++++++++++++++++++++++ include/sdhci.h | 2 + 3 files changed, 135 insertions(+)
applied to u-boot-atmel/master, thanks!
Best regards, Andreas Bießmann