1 |
786 |
skrzyp |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# devs_disk_mmc.cdl
|
4 |
|
|
#
|
5 |
|
|
# Support for MMC cards
|
6 |
|
|
#
|
7 |
|
|
# ====================================================================
|
8 |
|
|
## ####ECOSGPLCOPYRIGHTBEGIN####
|
9 |
|
|
## -------------------------------------------
|
10 |
|
|
## This file is part of eCos, the Embedded Configurable Operating System.
|
11 |
|
|
## Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
|
12 |
|
|
##
|
13 |
|
|
## eCos is free software; you can redistribute it and/or modify it under
|
14 |
|
|
## the terms of the GNU General Public License as published by the Free
|
15 |
|
|
## Software Foundation; either version 2 or (at your option) any later
|
16 |
|
|
## version.
|
17 |
|
|
##
|
18 |
|
|
## eCos is distributed in the hope that it will be useful, but WITHOUT
|
19 |
|
|
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
20 |
|
|
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
21 |
|
|
## for more details.
|
22 |
|
|
##
|
23 |
|
|
## You should have received a copy of the GNU General Public License
|
24 |
|
|
## along with eCos; if not, write to the Free Software Foundation, Inc.,
|
25 |
|
|
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
26 |
|
|
##
|
27 |
|
|
## As a special exception, if other files instantiate templates or use
|
28 |
|
|
## macros or inline functions from this file, or you compile this file
|
29 |
|
|
## and link it with other works to produce a work based on this file,
|
30 |
|
|
## this file does not by itself cause the resulting work to be covered by
|
31 |
|
|
## the GNU General Public License. However the source code for this file
|
32 |
|
|
## must still be made available in accordance with section (3) of the GNU
|
33 |
|
|
## General Public License v2.
|
34 |
|
|
##
|
35 |
|
|
## This exception does not invalidate any other reasons why a work based
|
36 |
|
|
## on this file might be covered by the GNU General Public License.
|
37 |
|
|
## -------------------------------------------
|
38 |
|
|
## ####ECOSGPLCOPYRIGHTEND####
|
39 |
|
|
# ====================================================================
|
40 |
|
|
######DESCRIPTIONBEGIN####
|
41 |
|
|
#
|
42 |
|
|
# Author(s): bartv,jlarmour
|
43 |
|
|
# Date: 2004-04-25
|
44 |
|
|
#
|
45 |
|
|
#####DESCRIPTIONEND####
|
46 |
|
|
# ====================================================================
|
47 |
|
|
|
48 |
|
|
cdl_package CYGPKG_DEVS_DISK_MMC {
|
49 |
|
|
display "Disk driver for MMC cards"
|
50 |
|
|
doc ecos-ref/devs-disk-mmc-part.html
|
51 |
|
|
|
52 |
|
|
include_dir cyg/io
|
53 |
|
|
|
54 |
|
|
parent CYGPKG_IO_DISK_DEVICES
|
55 |
|
|
active_if CYGPKG_IO_DISK
|
56 |
|
|
|
57 |
|
|
cdl_interface CYGINT_DEVS_DISK_MMC_SPI_CONNECTORS {
|
58 |
|
|
active_if CYGPKG_IO_SPI
|
59 |
|
|
display "Number of MMC connectors accessed via SPI"
|
60 |
|
|
}
|
61 |
|
|
|
62 |
|
|
cdl_component CYGPKG_DEVS_DISK_MMC_SPI {
|
63 |
|
|
display "Access an MMC card via an SPI bus"
|
64 |
|
|
default_value { CYGINT_DEVS_DISK_MMC_SPI_CONNECTORS > 0 }
|
65 |
|
|
compile -library=libextras.a mmc_spi.c
|
66 |
|
|
requires CYGPKG_ERROR CYGPKG_LIBC_STRING
|
67 |
|
|
description "
|
68 |
|
|
This option enables support for accessing an MMC card via an
|
69 |
|
|
SPI bus."
|
70 |
|
|
|
71 |
|
|
define_proc {
|
72 |
|
|
puts $::cdl_system_header "/***** MMC/SPI disk driver output start *****/"
|
73 |
|
|
puts $::cdl_system_header "#ifndef CYGDAT_DEVS_DISK_CFG"
|
74 |
|
|
puts $::cdl_system_header "#define CYGDAT_DEVS_DISK_CFG "
|
75 |
|
|
puts $::cdl_system_header "#endif"
|
76 |
|
|
puts $::cdl_system_header "/***** MMC/SPI disk driver output end *****/"
|
77 |
|
|
}
|
78 |
|
|
|
79 |
|
|
cdl_option CYGDAT_DEVS_DISK_MMC_SPI_DISK0_NAME {
|
80 |
|
|
display "Device name for the MMC/SPI disk 0 device"
|
81 |
|
|
flavor data
|
82 |
|
|
default_value { "\"/dev/mmcdisk0/\"" }
|
83 |
|
|
description "
|
84 |
|
|
This is the device name used to access the raw disk device
|
85 |
|
|
in eCos, for example for mount operations. Note that the
|
86 |
|
|
trailing slash must be present."
|
87 |
|
|
}
|
88 |
|
|
}
|
89 |
|
|
|
90 |
|
|
cdl_option CYGIMP_DEVS_DISK_MMC_SPI_POLLED {
|
91 |
|
|
display "Run the driver in polled mode rather than interrupt-driven"
|
92 |
|
|
default_value !CYGPKG_KERNEL
|
93 |
|
|
description "
|
94 |
|
|
By default the MMC disk driver will operate in
|
95 |
|
|
interrupt-driven mode if the kernel is present,
|
96 |
|
|
i.e. if the application is likely to be
|
97 |
|
|
multi-threaded. Otherwise it will operate in polled
|
98 |
|
|
mode."
|
99 |
|
|
|
100 |
|
|
}
|
101 |
|
|
cdl_option CYGPKG_DEVS_DISK_MMC_SPI_IDLE_RETRIES_WAIT {
|
102 |
|
|
display "Idle to operational retry wait"
|
103 |
|
|
flavor booldata
|
104 |
|
|
default_value 10000
|
105 |
|
|
description "
|
106 |
|
|
|
107 |
|
|
This option sets how long to wait between retries of
|
108 |
|
|
attempts to change the card state from idle to
|
109 |
|
|
operational. It is measured in microseconds."
|
110 |
|
|
}
|
111 |
|
|
}
|
112 |
|
|
|
113 |
|
|
# EOF devs_disk_mmc.cdl
|