1# Copyright 2023 Nikhef 2# SPDX -License-Identifier: Apache-2.0 3 4config SAM_HSMCI 5 bool "ATMEL SAM HSMCI driver" 6 default y 7 depends on DT_HAS_ATMEL_SAM_HSMCI_ENABLED 8 select SDHC_SUPPORTS_NATIVE_MODE 9 help 10 Enable the ATMEL SAM HSMCI MMC/SD card driver. 11 12if SAM_HSMCI 13 14config SAM_HSMCI_PDCMODE 15 bool "Use PDC if available" 16 default y if SOC_SERIES_SAM4E 17 help 18 Use peripheral DMA controller, if supported 19 20config SAM_HSMCI_PWRSAVE 21 bool "Power save during card inactive" 22 default y 23 help 24 Power-save mode reduces the clock-speed during SD card 25 inactivity. 26 27if SAM_HSMCI_PWRSAVE 28 29config SAM_HSMCI_PWRSAVE_DIV 30 int "Divisor value of clock when in power-save mode" 31 default 7 32 help 33 SD clock freqeuncy is divided by 2**(N+1) where N 34 is the divisor value. Valid values are 0 to 7. 35 36endif # SAM_HSMCI_PWRSAVE 37 38endif # SAM_HSMCI 39