forked from xuos/xiuos
change XIDATONG_SDHC_AUTOMOUNT to XIDATONG_SDIO_AUTOMOUNT for sd card
This commit is contained in:
parent
e78af7f85b
commit
90d57368d1
|
@ -24,34 +24,34 @@ config XIDATONG_SDRAM
|
||||||
---help---
|
---help---
|
||||||
Activate DCD configuration of SDRAM
|
Activate DCD configuration of SDRAM
|
||||||
|
|
||||||
config XIDATONG_SDHC_AUTOMOUNT
|
config XIDATONG_SDIO_AUTOMOUNT
|
||||||
bool "SDHC automounter"
|
bool "SD card automounter"
|
||||||
default n
|
default n
|
||||||
depends on FS_AUTOMOUNTER && IMXRT_USDHC
|
depends on FS_AUTOMOUNTER && IMXRT_USDHC
|
||||||
|
|
||||||
if XIDATONG_SDHC_AUTOMOUNT
|
if XIDATONG_SDIO_AUTOMOUNT
|
||||||
|
|
||||||
config XIDATONG_SDHC_AUTOMOUNT_FSTYPE
|
config XIDATONG_SDIO_AUTOMOUNT_FSTYPE
|
||||||
string "SDHC file system type"
|
string "SD card file system type"
|
||||||
default "vfat"
|
default "vfat"
|
||||||
|
|
||||||
config XIDATONG_SDHC_AUTOMOUNT_BLKDEV
|
config XIDATONG_SDIO_AUTOMOUNT_BLKDEV
|
||||||
string "SDHC block device"
|
string "SD card block device"
|
||||||
default "/dev/mmcsd0"
|
default "/dev/mmcsd0"
|
||||||
|
|
||||||
config XIDATONG_SDHC_AUTOMOUNT_MOUNTPOINT
|
config XIDATONG_SDIO_AUTOMOUNT_MOUNTPOINT
|
||||||
string "SDHC mount point"
|
string "SD card mount point"
|
||||||
default "/mnt/sdcard"
|
default "/mnt/sdcard"
|
||||||
|
|
||||||
config XIDATONG_SDHC_AUTOMOUNT_DDELAY
|
config XIDATONG_SDIO_AUTOMOUNT_DDELAY
|
||||||
int "SDHC debounce delay (milliseconds)"
|
int "SD card debounce delay (milliseconds)"
|
||||||
default 1000
|
default 1000
|
||||||
|
|
||||||
config XIDATONG_SDHC_AUTOMOUNT_UDELAY
|
config XIDATONG_SDIO_AUTOMOUNT_UDELAY
|
||||||
int "SDHC unmount retry delay (milliseconds)"
|
int "SD card unmount retry delay (milliseconds)"
|
||||||
default 2000
|
default 2000
|
||||||
|
|
||||||
endif # XIDATONG_SDHC_AUTOMOUNT
|
endif # XIDATONG_SDIO_AUTOMOUNT
|
||||||
|
|
||||||
config XIDATONG_USB_AUTOMOUNT
|
config XIDATONG_USB_AUTOMOUNT
|
||||||
bool "USB Mass Storage automounter"
|
bool "USB Mass Storage automounter"
|
||||||
|
|
|
@ -70,7 +70,7 @@ ifeq ($(CONFIG_USBHOST),y)
|
||||||
CSRCS += imxrt_usbhost.c
|
CSRCS += imxrt_usbhost.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_XIDATONG_SDHC_AUTOMOUNT),y)
|
ifeq ($(CONFIG_XIDATONG_SDIO_AUTOMOUNT),y)
|
||||||
CSRCS += imxrt_sdhc_automount.c
|
CSRCS += imxrt_sdhc_automount.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -119,7 +119,7 @@ static int nsh_sdmmc_initialize(void)
|
||||||
ret);
|
ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_XIDATONG_SDHC_AUTOMOUNT
|
#ifdef CONFIG_XIDATONG_SDIO_AUTOMOUNT
|
||||||
imxrt_automount_initialize();
|
imxrt_automount_initialize();
|
||||||
imxrt_usdhc_set_sdio_card_isr(sdmmc, imxrt_sdhc_automount_event, NULL);
|
imxrt_usdhc_set_sdio_card_isr(sdmmc, imxrt_sdhc_automount_event, NULL);
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -94,11 +94,11 @@ static const struct imxrt_automount_config_s g_sdhc_config =
|
||||||
{
|
{
|
||||||
.lower =
|
.lower =
|
||||||
{
|
{
|
||||||
.fstype = CONFIG_XIDATONG_SDHC_AUTOMOUNT_FSTYPE,
|
.fstype = CONFIG_XIDATONG_SDIO_AUTOMOUNT_FSTYPE,
|
||||||
.blockdev = CONFIG_XIDATONG_SDHC_AUTOMOUNT_BLKDEV,
|
.blockdev = CONFIG_XIDATONG_SDIO_AUTOMOUNT_BLKDEV,
|
||||||
.mountpoint = CONFIG_XIDATONG_SDHC_AUTOMOUNT_MOUNTPOINT,
|
.mountpoint = CONFIG_XIDATONG_SDIO_AUTOMOUNT_MOUNTPOINT,
|
||||||
.ddelay = MSEC2TICK(CONFIG_XIDATONG_SDHC_AUTOMOUNT_DDELAY),
|
.ddelay = MSEC2TICK(CONFIG_XIDATONG_SDIO_AUTOMOUNT_DDELAY),
|
||||||
.udelay = MSEC2TICK(CONFIG_XIDATONG_SDHC_AUTOMOUNT_UDELAY),
|
.udelay = MSEC2TICK(CONFIG_XIDATONG_SDIO_AUTOMOUNT_UDELAY),
|
||||||
.attach = imxrt_sdhc_attach,
|
.attach = imxrt_sdhc_attach,
|
||||||
.enable = imxrt_sdhc_enable,
|
.enable = imxrt_sdhc_enable,
|
||||||
.inserted = imxrt_sdhc_inserted
|
.inserted = imxrt_sdhc_inserted
|
||||||
|
|
|
@ -208,7 +208,7 @@ int imxrt_usbhost_initialize(void);
|
||||||
int imxrt_mmcsd_initialize(void);
|
int imxrt_mmcsd_initialize(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_XIDATONG_SDHC_AUTOMOUNT
|
#ifdef CONFIG_XIDATONG_SDIO_AUTOMOUNT
|
||||||
int imxrt_sdhc_automount_event(void *arg);
|
int imxrt_sdhc_automount_event(void *arg);
|
||||||
void imxrt_automount_initialize(void);
|
void imxrt_automount_initialize(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue