dw_mmc.h 492 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef DW_MMC_H
  7. #define DW_MMC_H
  8. #include <drivers/mmc.h>
  9. typedef struct dw_mmc_params {
  10. uintptr_t reg_base;
  11. uintptr_t desc_base;
  12. size_t desc_size;
  13. int clk_rate;
  14. int bus_width;
  15. unsigned int flags;
  16. enum mmc_device_type mmc_dev_type;
  17. } dw_mmc_params_t;
  18. void dw_mmc_init(dw_mmc_params_t *params, struct mmc_device_info *info);
  19. #endif /* DW_MMC_H */