summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/ssp-imx233.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx233/ssp-imx233.h')
-rw-r--r--firmware/target/arm/imx233/ssp-imx233.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/firmware/target/arm/imx233/ssp-imx233.h b/firmware/target/arm/imx233/ssp-imx233.h
index a463c04a20..c168d5997c 100644
--- a/firmware/target/arm/imx233/ssp-imx233.h
+++ b/firmware/target/arm/imx233/ssp-imx233.h
@@ -7,7 +7,7 @@
7 * \/ \/ \/ \/ \/ 7 * \/ \/ \/ \/ \/
8 * $Id$ 8 * $Id$
9 * 9 *
10 * Copyright (C) 2011 by amaury Pouly 10 * Copyright (C) 2011 by Amaury Pouly
11 * 11 *
12 * Based on Rockbox iriver bootloader by Linus Nielsen Feltzing 12 * Based on Rockbox iriver bootloader by Linus Nielsen Feltzing
13 * and the ipodlinux bootloader by Daniel Palffy and Bernard Leach 13 * and the ipodlinux bootloader by Daniel Palffy and Bernard Leach
@@ -170,8 +170,15 @@ void imx233_ssp_setup_ssp2_sd_mmc_pins(bool enable_pullups, unsigned bus_width,
170/* after callback is fired, imx233_ssp_sdmmc_setup_detect needs to be called 170/* after callback is fired, imx233_ssp_sdmmc_setup_detect needs to be called
171 * to enable detection again. If first_time is true, the callback will 171 * to enable detection again. If first_time is true, the callback will
172 * be called if the sd card is inserted when the function is called, otherwise 172 * be called if the sd card is inserted when the function is called, otherwise
173 * it will be called on the next insertion change. */ 173 * it will be called on the next insertion change.
174void imx233_ssp_sdmmc_setup_detect(int ssp, bool enable, ssp_detect_cb_t fn, bool first_time); 174 * By default, sd_detect=1 means sd inserted; invert reverses this behaviour */
175void imx233_ssp_sdmmc_setup_detect(int ssp, bool enable, ssp_detect_cb_t fn,
176 bool first_time, bool invert);
177/* needs prior setup with imx233_ssp_sdmmc_setup_detect */
178bool imx233_ssp_sdmmc_is_detect_inverted(int spp);
179/* raw value of the detect pin */
180bool imx233_ssp_sdmmc_detect_raw(int ssp);
181/* corrected value given the invert setting */
175bool imx233_ssp_sdmmc_detect(int ssp); 182bool imx233_ssp_sdmmc_detect(int ssp);
176/* SD/MMC requires that the card be provided the clock during an init sequence of 183/* SD/MMC requires that the card be provided the clock during an init sequence of
177 * at least 1msec (or 74 clocks). Does NOT touch the clock so it has to be correct. */ 184 * at least 1msec (or 74 clocks). Does NOT touch the clock so it has to be correct. */