Haojian Zhuang | 06249dc | 2016-03-18 22:14:16 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Haojian Zhuang | 06249dc | 2016-03-18 22:14:16 +0800 | [diff] [blame] | 5 | */ |
| 6 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 7 | #ifndef DW_MMC_H |
| 8 | #define DW_MMC_H |
Haojian Zhuang | 06249dc | 2016-03-18 22:14:16 +0800 | [diff] [blame] | 9 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 10 | #include <drivers/mmc.h> |
Haojian Zhuang | a885d5e | 2018-08-04 18:06:52 +0800 | [diff] [blame] | 11 | |
Haojian Zhuang | 06249dc | 2016-03-18 22:14:16 +0800 | [diff] [blame] | 12 | typedef 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, Loh | 986e51d | 2019-03-12 14:36:19 +0800 | [diff] [blame] | 19 | enum mmc_device_type mmc_dev_type; |
Haojian Zhuang | 06249dc | 2016-03-18 22:14:16 +0800 | [diff] [blame] | 20 | } dw_mmc_params_t; |
| 21 | |
Haojian Zhuang | a885d5e | 2018-08-04 18:06:52 +0800 | [diff] [blame] | 22 | void dw_mmc_init(dw_mmc_params_t *params, struct mmc_device_info *info); |
Haojian Zhuang | 06249dc | 2016-03-18 22:14:16 +0800 | [diff] [blame] | 23 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 24 | #endif /* DW_MMC_H */ |