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