[U-Boot] [PATCH 4/7] omap_hsmmc: implement driver check for card detection

Nikita Kiryanov nikita at compulab.co.il
Wed Dec 19 07:58:44 CET 2012


On 12/19/2012 01:52 AM, Tom Rini wrote:
> On Mon, Dec 03, 2012 at 02:19:44PM +0200, Nikita Kiryanov wrote:
>
>> Implement driver check for card detection.
>>
>> Signed-off-by: Nikita Kiryanov <nikita at compulab.co.il>
>> Signed-off-by: Igor Grinberg <grinberg at compulab.co.il>
>
>> -	ret = omap_mmc_init(0, 0, 0);
>> +	ret = omap_mmc_init(0, 0, 0, -1);
>
> Everyone passes -1 here, including the follow-up patch for cm_t35.  Why
> do we need the change?
>

This change is useful because on OMAP it's a fair assumption
that card detect (and write protect) signal will be ascertained via
a GPIO, though it is not a certainty.

Everybody who is not cm_t35 get a -1 because I did not try to
figure out if they really do use GPIOs for card detect.
cm_t35 gets a -1 because it does not use OMAP GPIOs for card detect,
but relies on those of the PMIC instead.

-- 
Regards,
Nikita.


More information about the U-Boot mailing list