summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx233')
-rw-r--r--firmware/target/arm/imx233/sdmmc-imx233.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/sdmmc-imx233.h b/firmware/target/arm/imx233/sdmmc-imx233.h
new file mode 100644
index 0000000000..d5c2bccd84
--- /dev/null
+++ b/firmware/target/arm/imx233/sdmmc-imx233.h
@@ -0,0 +1,48 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2016 by Amaury Pouly
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21#ifndef __SDMMC_IMX233_H__
22#define __SDMMC_IMX233_H__
23
24#include "system.h"
25
26/** Information about SD/MMC slot */
27struct sdmmc_info_t
28{
29 int drive; /* drive number (for queries like storage_removable(drive) */
30 const char *slot_name; /* name of the slot: 'internal' or 'microsd' */
31 bool window; /* is window enabled for this slot? */
32 int bus_width; /* current bus width */
33 bool hs_capable; /* is device high-speed capable? */
34 bool hs_enabled; /* is high-speed enabled? */
35 bool has_sbc; /* device support SET_BLOCK_COUNT */
36};
37
38#if CONFIG_STORAGE & STORAGE_SD
39/* return information about a particular sd device (index=0..n-1) */
40struct sdmmc_info_t imx233_sd_get_info(int card_no);
41#endif
42
43#if CONFIG_STORAGE & STORAGE_MMC
44/* return information about a particular mmc device (index=0..n-1) */
45struct sdmmc_info_t imx233_mmc_get_info(int card_no);
46#endif
47
48#endif /* __SSP_IMX233_H__ */