Skip to content
Permalink
Browse files

Kconfig: Kconfig support i.MX RT USDHC

Add Kconifg options to support i.MXRT USDHC driver.

Signed-off-by: Jun Yang <jun.yang@nxp.com>
  • Loading branch information...
JunYangNXP authored and MaureenHelm committed Jul 4, 2019
1 parent 46106ec commit c6864dbea328ec3fecdaa6e4c41264cbb58e3bc5
Showing with 49 additions and 0 deletions.
  1. +10 −0 ext/hal/nxp/mcux/Kconfig
  2. +14 −0 soc/arm/nxp_imx/rt/Kconfig.soc
  3. +25 −0 subsys/disk/Kconfig
@@ -129,6 +129,16 @@ config HAS_MCUX_USB_EHCI
help
Set if the USB controller EHCI module is present in the SoC.

config HAS_MCUX_USDHC1
bool
help
Set if the USDHC instance 1 module is present in the SoC.

config HAS_MCUX_USDHC2
bool
help
Set if the USDHC2 instance 2 module is present in the SoC.

config HAS_MCUX_WDOG32
bool
help
@@ -26,6 +26,8 @@ config SOC_MIMXRT1015
select INIT_USB1_PLL
select INIT_ENET_PLL
select HAS_MCUX_USB_EHCI
select HAS_MCUX_USDHC1
select HAS_MCUX_USDHC2

config SOC_MIMXRT1021
bool "SOC_MIMXRT1021"
@@ -45,6 +47,8 @@ config SOC_MIMXRT1021
select INIT_USB1_PLL
select INIT_ENET_PLL
select HAS_MCUX_USB_EHCI
select HAS_MCUX_USDHC1
select HAS_MCUX_USDHC2

config SOC_MIMXRT1051
bool "SOC_MIMXRT1051"
@@ -64,6 +68,8 @@ config SOC_MIMXRT1051
select INIT_SYS_PLL
select INIT_USB1_PLL
select HAS_MCUX_USB_EHCI
select HAS_MCUX_USDHC1
select HAS_MCUX_USDHC2

config SOC_MIMXRT1052
bool "SOC_MIMXRT1052"
@@ -85,6 +91,8 @@ config SOC_MIMXRT1052
select INIT_USB1_PLL
select INIT_VIDEO_PLL if DISPLAY_MCUX_ELCDIF
select HAS_MCUX_USB_EHCI
select HAS_MCUX_USDHC1
select HAS_MCUX_USDHC2

config SOC_MIMXRT1061
bool "SOC_MIMXRT1061"
@@ -103,6 +111,8 @@ config SOC_MIMXRT1061
select INIT_SYS_PLL
select INIT_USB1_PLL
select HAS_MCUX_USB_EHCI
select HAS_MCUX_USDHC1
select HAS_MCUX_USDHC2

config SOC_MIMXRT1062
bool "SOC_MIMXRT1062"
@@ -123,6 +133,8 @@ config SOC_MIMXRT1062
select INIT_USB1_PLL
select INIT_VIDEO_PLL if DISPLAY_MCUX_ELCDIF
select HAS_MCUX_USB_EHCI
select HAS_MCUX_USDHC1
select HAS_MCUX_USDHC2

config SOC_MIMXRT1064
bool "SOC_MIMXRT1064"
@@ -143,6 +155,8 @@ config SOC_MIMXRT1064
select INIT_USB1_PLL
select INIT_VIDEO_PLL if DISPLAY_MCUX_ELCDIF
select HAS_MCUX_USB_EHCI
select HAS_MCUX_USDHC1
select HAS_MCUX_USDHC2

endchoice

@@ -107,6 +107,31 @@ config DISK_ACCESS_SPI_SDHC
help
File system on a SDHC card accessed over SPI.

config DISK_ACCESS_USDHC
bool "NXP i.MXRT USDHC driver"
depends on (HAS_MCUX_USDHC1 || HAS_MCUX_USDHC2)
help
File system on a SDHC card accessed over
NXP USDHC.

if DISK_ACCESS_USDHC

config DISK_ACCESS_USDHC1
bool "NXP i.MXRT USDHC instance 1"
depends on HAS_MCUX_USDHC1
help
File system on a SDHC card accessed over
USDHC instance 1.

config DISK_ACCESS_USDHC2
bool "NXP i.MXRT USDHC instance 2"
depends on HAS_MCUX_USDHC2
help
File system on a SDHC card accessed over
USDHC instance 2.

endif # DISK_ACCESS_USDHC

config DISK_SDHC_VOLUME_NAME
string "SDHC Disk mount point or drive name"
default "SDHC"

0 comments on commit c6864db

Please sign in to comment.
You can’t perform that action at this time.