Hi Nirmal
cd logic can be internal and using gpio as described in sect.3.3.6 Device Tree Binding
attached Linux Manual. If using gpio, it can be changed in sd/emmc driver source.
If internal - using CDPL bit in PRES_STATE (Present State) register of uSDHC module.
Regarding "cd-inverted macro at the U-boot" suggest to post it on uboot mail list
U-Boot Info Page
Please note that for boot ROM uses pinmuxing described in sect.6.1.5.2.4 IOMUX configuration for SD/MMC
i.MX8MQ Reference Manual and cd polarity can not be changed.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------