[PATCH v2] mmc: dw_mmc: fix dw_mci_get_cd
zhangfei
zhangfei.gao at linaro.org
Thu Jan 16 07:34:47 EST 2014
On 01/16/2014 06:50 PM, Arnd Bergmann wrote:
> On Thursday 16 January 2014, Zhangfei Gao wrote:
>> --- a/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt
>> +++ b/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt
>> @@ -73,6 +73,8 @@ Optional properties:
>>
>> * caps2-mmc-hs200-1_2v: Supports mmc HS200 SDR 1.2V mode
>>
>> +* caps2-mmc-cd-active-high: cd pin is high when card present
>> +
>> * broken-cd: as documented in mmc core bindings.
>>
>> * vmmc-supply: The phandle to the regulator to use for vmmc. If this is
>
> No, don't introduce a new flag when there is already one defined
> in the generic mmc binding.
Got it.
Update with "cd-inverted".
if (of_get_property(np, "cd-inverted", NULL))
pdata->caps2 |= MMC_CAP2_CD_ACTIVE_HIGH;
Thanks
More information about the linux-arm-kernel
mailing list