blob: 2004355259ad926f3af9acffea2f6d4cd21cc191 [file] [log] [blame]
Haojian Zhuang06249dc2016-03-18 22:14:16 +08001/*
2 * Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved.
3 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Haojian Zhuang06249dc2016-03-18 22:14:16 +08005 */
6
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef DW_MMC_H
8#define DW_MMC_H
Haojian Zhuang06249dc2016-03-18 22:14:16 +08009
Antonio Nino Diaze0f90632018-12-14 00:18:21 +000010#include <drivers/mmc.h>
Haojian Zhuanga885d5e2018-08-04 18:06:52 +080011
Haojian Zhuang06249dc2016-03-18 22:14:16 +080012typedef struct dw_mmc_params {
13 uintptr_t reg_base;
14 uintptr_t desc_base;
15 size_t desc_size;
16 int clk_rate;
17 int bus_width;
18 unsigned int flags;
Tien Hock, Loh986e51d2019-03-12 14:36:19 +080019 enum mmc_device_type mmc_dev_type;
Haojian Zhuang06249dc2016-03-18 22:14:16 +080020} dw_mmc_params_t;
21
Haojian Zhuanga885d5e2018-08-04 18:06:52 +080022void dw_mmc_init(dw_mmc_params_t *params, struct mmc_device_info *info);
Haojian Zhuang06249dc2016-03-18 22:14:16 +080023
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000024#endif /* DW_MMC_H */